Repository navigation
qa/standalone: parenthesize expression in calc() - #72822
Conversation
There was a problem hiding this comment.
might want to drop Claude-Session: https://claude.ai/code/session_01Y5rP5Sdw4CTBdJgdspuCyN from the commit message, as, IMHO, it does not provide values to reviewers or our posterity.
Agreed. Feel free to add "needs-qa" when this has been addressed. |
calc() expands to "BEGIN{print <expr>}". When <expr> contains a
relational operator, as in the delays() callers, gawk rejects the
unparenthesized '<' in the print list with a syntax error.
Wrapping the expression in parentheses makes comparisons evaluate
to 1/0 and leaves arithmetic callers unchanged.
Fixes: https://tracker.ceph.com/issues/81893
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Willem Jan Withagen <[email protected]>
6dd661f to
c53a763
Compare
|
This PR has been added to wip-bharath1-testing-20261027.065658-main. |
|
probably needs umbrella backport? |
Questionable. I submitted this fix, to get ride of an error in logging out put. |
calc() expands to "BEGIN{print }". When contains a relational operator, as in the delays() callers, gawk rejects the unparenthesized '<' in the print list with a syntax error. Wrapping the expression in parentheses makes comparisons evaluate to 1/0 and leaves arithmetic callers unchanged.
Fixes: https://tracker.ceph.com/issues/81893
Signed-off-by: Willem Jan Withagen [email protected]
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.