Repository navigation
Docs: python3 arena_cli.py, and no comment that zsh acts on (F9-12) - #55
Merged
Merged
Conversation
A stock Mac has no `python`, so `python arena_cli.py` failed there: 14 times in docs/hf-submission-lab.md and once in the README. They say python3 now, like the scripts' commands. zsh, macOS's shell, starts with interactivecomments off and parses a pasted full-line comment as a command named '#', so what follows ; runs, and a > in it creates or empties the file: - hf-submission-lab.md's commented launch line kept `> run-receipt.json`, which emptied an existing receipt on every paste of the block. The line keeps the command; the text above says to keep the receipt. - CONTRIBUTING's "Fast structural checks; Python standard library only." and "Empty trial must not score 1.0; normally it scores 0.0." ran "Python ..." and "normally ..." as commands. Each ; is now a full stop. Checked by pasting every shell block of the README, CONTRIBUTING, the starting kit, submissions/README.md and hf-submission-lab.md into a stock zsh (no user rc files, python3 stubbed): every command gets exactly its arguments.
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.
Round 9 funnel finding F9-12: the Arena's docs used bare
python(a stock Mac has onlypython3) and had pasted comments that zsh acts on. #54 moved the notes that followed commands; this finishes the job in this repo. The same fix is in posttrain.com's cookbook (benchflow-ai/posttrain-arena,web/r9-fixes) and on the Space (brancharena/r9-fixes, not pushed).Changes
docs/hf-submission-lab.md(14) andREADME.md(1):python arena_cli.py→python3 arena_cli.py.hf-submission-lab.md: the commented launch line loses> run-receipt.json, and the text above the block says to keep the receipt. With interactivecomments off (zsh's default), a pasted# ... > run-receipt.jsonstill runs its redirect, which emptied an existing receipt every time the block was pasted.CONTRIBUTING.md: two full-line comments had a;, so zsh ran "Python standard library only." and "normally it scores 0.0." as commands. Each;is now a full stop.Evidence
# a > f.txtcreatesf.txt,# a; touch xrunstouch x, and an apostrophe opens a quote that swallows the pasted lines after it.starting-kit/README.md,submissions/README.mdandhf-submission-lab.md, pasted into a stock zsh withpython3stubbed: each command gets exactly its arguments. The only errors areposttrainarena-train: command not found, because the stub skips thepip installthat provides it.arena_cli.pyruns on macOS's/usr/bin/python3(3.9.6): its 55 CLI tests pass there.Left as is: CONTRIBUTING's
python -m pipandpython -m pytestlines, which run inside the activated venv that the block creates. That venv providespython.