-
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
jobspec: replace minus operator to multiplication #1293
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1293 +/- ##
==========================================
- Coverage 78.02% 78.01% -0.02%
==========================================
Files 154 154
Lines 29104 29104
==========================================
- Hits 22709 22706 -3
- Misses 6395 6398 +3
|
Hmmm. I don't understand why this one line change causes a valgrind-related error.... https://travis-ci.org/flux-framework/flux-core/jobs/306163007#L9029 |
Looks like an unrelated transient error in czmq shutdown:
|
@dongahn: it would be nice to have a more descriptive commit message, for those of us who have not been following the jobspec design in detail.
Did you mean "replace minus operator with multiplcation"?
What specifically is out of compliance? Perhaps a quote from the spec would be useful here. |
Make the implementation come to compliance with RFC14's Content Rule section. It currently does not have the subtraction operator listed, but multiplication: === Content Rules $complex_range = { "min" : 1.., "max" : 1.., "operator" : ( :"+" | :"*" | : "^" ), "operand" : 1.., } === The role of an operator is: An operator applied between min and max which returns the next acceptable value. It seems using an operator that can return a decreased or the same next value doesn't make whole lot of sense to me. Tested with resource-query and this one-liner seems enough.
@garlick: OK, that makes sense. I forced a push. Hopefully this works. |
Strike that - github was saying it was out of date, but not now. |
Nice explanation @dongahn, makes sense to me! (Was likely just a typo in the orignal) My only suggestion is maybe we should add a test case to |
ok. should be easy enough. |
Make the implementation come to compliance with RFC14's JRC rule section.
Tested with resource-query and this one-liner seems enough.