Repository navigation
command: pass the budget on as a plain number - #6
Merged
Merged
Conversation
budget=030 went to the bench workflow as typed, where the shell arithmetic that adds to it reads a leading zero as octal. A budget written with a non-ASCII digit passed isdigit() and then crashed int(); it is now refused like any other bad budget.
Member
Author
|
@github-actions bench main filter=bit-util budget=30 |
|
Dispatched: apache/arrow@ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #5, which was merged before this commit was pushed.
budget=030went to thebenchworkflow as typed, where the shell arithmetic that adds to it reads a leading zero as octal (24 minutes;08would be an error). The parser now passes30.²passedisdigit()and then crashedint(). It is now refused like any other bad budget.Tested
python -m pytest -q tools: 19 passed, with the parser test extended for both cases. A dry run oftools/command.pywithbudget=030against apache/arrow reported a 30 minute budget.The workflow itself has still not been exercised on GitHub by this change.