-
Notifications
You must be signed in to change notification settings - Fork 51
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
configure: relax flux-security version check #6673
Conversation
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.
LGTM!
Yay! Thanks! |
Problem: Tests in the testsuite may need to check for a minimum flux-security version, but there's no helper to do that. Add test_flux_security_version() to sharness.d/flux-sharness.sh that checks for a minimum flux-security verison if flux is configured with flux-security.
Problem: The sdexec module launches work as systemd transient units with Type=notify, which implies flux-security >= 0.14.0 is being used at runtime. However, we don't want to make this version of flux-security a hard requirement at this time. Add a runtime version check to the sdexec module and exit with an error if an incompatible flux-security version is found.
Problem: Tests that load the sdexec module require flux-security v0.14.0 or later, but this is not checked. Add checks to the sdexec tests for the correct flux-security version.
Problem: configure currently requires flux-security v0.14.0 or later, but this is only required for the sdexec module, only used in system instances and a few tests. Now that the sdexec module and tests have runtime checks for the flux-security version, relax the required version of flux-security back to v0.13.0. Note that v0.14.0 is still installed in CI and required in the debian control file.
84375af
to
8d61172
Compare
@Mergifyio requeue |
❌ This pull request head commit has not been previously disembarked from queue. |
@Mergifyio refresh |
✅ Pull request refreshed |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6673 +/- ##
=======================================
Coverage 83.85% 83.86%
=======================================
Files 533 533
Lines 88686 88695 +9
=======================================
+ Hits 74369 74381 +12
+ Misses 14317 14314 -3
|
Oh duh, I should have anticipated that problem, sorry. |
This PR relaxes the flux-security version check from v0.14.0 back to v0.13.0 since v0.14.0 is only required for the sdexec module when used to launch jobs in a system instance.
A test is added to the sdexec module to abort if a sufficient flux-security version isn't found at runtime, and a version check added to affected tests.
This allows flux-core to continue to be built on TOSS systems with flux-security v0.13.0 installed. We'll probably have to run with this version for a month at least, and it is nice to be able to build test versions of flux
--with-flux-security
.Fixes #6672