Skip to content

command: pass the budget on as a plain number - #6

Merged
rok merged 1 commit into
mainfrom
command-budget
Nov 15, 2026
Merged

rok merged 1 commit into
mainfrom
command-budget

Conversation

@rok

@rok rok commented Nov 15, 2026

Copy link
Copy Markdown
Member

Follow-up to #5, which was merged before this commit was pushed.

  • budget=030 went to the bench workflow as typed, where the shell arithmetic that adds to it reads a leading zero as octal (24 minutes; 08 would be an error). The parser now passes 30.
  • A budget written with a non-ASCII digit such as ² passed isdigit() and then crashed int(). It is now refused like any other bad budget.
  • The "which commit?" refusal now reads "no commit was named".

Tested

python -m pytest -q tools: 19 passed, with the parser test extended for both cases. A dry run of tools/command.py with budget=030 against apache/arrow reported a 30 minute budget.

The workflow itself has still not been exercised on GitHub by this change.

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.
@rok
rok merged commit 36905ae into main Nov 15, 2026
@rok

rok commented Nov 15, 2026

Copy link
Copy Markdown
Member Author

@github-actions bench main filter=bit-util budget=30

@github-actions

Copy link
Copy Markdown

Dispatched: apache/arrow@ab5b42237dfe14d683bc74ecbddf71109a0c6633 on amd64-c6a-4xlarge-linux, filter bit-util, budget 30 minutes. Runs

@rok
rok deleted the command-budget branch November 28, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant