-
Notifications
You must be signed in to change notification settings - Fork 107
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
Enhance logic to map ScramArch to OS #11088
Conversation
FYI @mapellidario Dario, if I am not wrong, you were working with this code (or the one in Scram.py). |
|
||
Returns: | ||
string to be matched for OS requirements for job | ||
:param scramArch: string of list of scramArches defined for a given job |
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.
may be it should be "string or list of ...." :-)
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.
Thanks! Typo fixed.
Jenkins results:
|
typo in the docstring
d83e8ba
to
dacc5b9
Compare
looks good |
Jenkins results:
|
Thanks for your review, Shahzad. |
Fixes #11081
Status
ready
Description
The previous logic was checking whether the first part of the ScramArch was
in
the ScramArch defined in the logic, which of course can fail if we test a substring like"el8" in "el888_amd64_gcc630"
. Of course, it's very likely to become a problem, but I think it's worth changing it.This PR changes it and now we check for equality.
Is it backward compatible (if not, which system it affects?)
YES
Related PRs
Meant to fix a typo in this PR: #11083, but now it became a minor refactoring.
External dependencies / deployment changes
None