-
Notifications
You must be signed in to change notification settings - Fork 16
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
[irods/irods#3727] Remove ASSERT_* (and bzero) usage (main) #2027
Conversation
companion PR to irods/irods#6155 |
1e8571e
to
8f4ad03
Compare
Putting this back in draft. I do'nt think I actually finished it |
This change depends on #2041 |
#2041 is now merged |
Confirmed that this builds, haven't run tests yet. |
The test hook and suite need some work in order to run with python3 for main, so I will open a separate PR based on this branch for that. Unfortunately, main no longer builds because of use of the deprecated ASSERT_* macros, so we need to get this in first. I'll update once I get tests to run |
Okay, went with a different plan :) The latest force-push should be treated as a brand new set of changes, because they are. In addition to removing ASSERT_* from the codebase, this changeset allows the test suite to be run in parallel in the testing environment. I have shown that 3 of the 6 test suites in |
I confirmed that all of the tests passed. There was an interaction between the tests which caused some to fail, but I've captured this in #2057 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This all looks straight-forward.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had a couple of comments where I agreed with the comments in the code. Please remove those code sections as requested.
Addressed the comments! |
Looks good to me. |
Trimmed down externals installed as these are provided in irods-dev and irods-runtime packages or were not needed for this plugin.
Add --test, --skip-setup, and --teardown-minio options to test hook. --skip-setup skips downloading and starting the MinIO service which means that the user running the test assumes that MinIO is already running in the configuration expected by the tests. --teardown-minio will terminate the MinIO processes after running the tests. --skip-setup and --teardown-minio are incompatible parameters because the process object returned from subprocess.Popen must be available to execute the termination logic, which is only the case when setup is performed on the same test hook invocation. Also replaced usage of deprecated features of MinIO: - Replaced usage of MINIO_ACCESS_KEY and MINIO_SECRET_KEY with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD - Started using --console-address to explicitly specify the API port for the MinIO server Also uses python3 in the test hook.
Squashed and #'d and mergin |
Tests need to be run