Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Remove the unit-tests directory. #138

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

clumens
Copy link

@clumens clumens commented Apr 22, 2024

This code doesn't work and hasn't been touched in several years. There are other ways to test booth that do work, and the fact that no one has fixed these tests means that no one thinks they are important enough to get working. So, remove them.

@clumens
Copy link
Author

clumens commented Apr 22, 2024

As discussed in email, the unit-tests directory doesn't appear to do anything useful. Our options are leave it alone (which is what fooled me), try to fix it (which doesn't seem like a priority given it hasn't been touched in years), or remove it. Here's a patch that does the last.

@jfriesse
Copy link
Member

retest this please

@jfriesse
Copy link
Member

jfriesse commented Apr 23, 2024

@clumens I can agree with removing unmaintained tests. Just note it is failing and there are two reasons:

  1. Make rpm fails (it is trying to package now non-existing directory)
  2. make check fails on kernel 6.9 - I'm investigating this one. It looks like netlink interface now behaves a little bit different and booth handles it incorrectly. I'm working on smaller patch to fix this problem but longer term I would recommend to rewrite the code to use getifaddrs - it is more portable and hopefully more stable interface.

This code doesn't work and hasn't been touched in several years.  There
are other ways to test booth that do work, and the fact that no one has
fixed these tests means that no one thinks they are important enough to
get working.  So, remove them.

Signed-off-by: Chris Lumens <[email protected]>
@clumens
Copy link
Author

clumens commented Apr 23, 2024

1. Make rpm fails (it is trying to package now non-existing directory)

Fixed.

2. make check fails on kernel 6.9 - I'm investigating this one. It looks like netlink interface now behaves a little bit different and booth handles it incorrectly. I'm working on smaller patch to fix this problem but longer term I would recommend to rewrite the code to use getifaddrs - it is more portable and hopefully more stable interface.

If you want to file an issue to deal with switching to getifaddrs, go for it. I'll take a look at some point. My current plan is to work on the crm_ticket stuff, then look through any refactoring/cleanup issues, then start to look at these kinds of improvements.

@jfriesse
Copy link
Member

@clumens Perfect. I've fixed rawhide issue - #139 so I think it make sense to review/merge this first, rebase this PR on top of new main head and run CI again.

RFE Issue filled #140.

@jfriesse jfriesse merged commit 1dc9418 into ClusterLabs:main Apr 24, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants