mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4501] [Benchmark] run.command is shell-quoted #5071
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5071
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4501
Author: @coryjett
Created: 10/28/2026
Status: 🔄 Open
Base:
main← Head:fix-bench-command-quote📝 Commits (1)
114cff9bench: run.command is shell-quoted (#4494)📊 Changes
2 files changed (+7 additions, -1 deletions)
View changed files
📝
strata_cli/cli.py(+4 -1)📝
tests/terminal/test_bench_standard.py(+3 -0)📄 Description
Problem and result
Fixes #4494.
run.commandin results.json was the arguments joined with spaces, so a report from--track-notes "Strata 0.2.7 official Linux release, engine 0.1.52. Tuned: ..."reads--track-notes Strata 0.2.7 official Linux release, ... --background headless server; ...(the run in #4468): areader cannot tell where an argument ends, and the line cannot be run again.
After: the arguments are quoted as a shell takes them back,
shlex.joinon POSIX andsubprocess.list2cmdlineon Windows, before the existing redaction.
Related discussion
#4494
Approach
Two lines in
strata_cli/cli.py(bench run) and animport shlex. Redaction still runs on the joinedstring, so a quoted home path is replaced as before.
Validation
Passed:
python3.12 -m unittest tests.terminal.test_bench_standard tests.terminal.test_bench: Ran 93 tests in 65.229s, OK (1 skipped).Strata Control 0.1.52's bundled Python 3.12.15, Ubuntu 26.10, this branch (main
46c152a1+ this commit).CommandLineTests.test_the_options_reach_the_report(asserts--track-notes '0.2.0 release, setup choices'inrun.command) against main'scli.py(production file stashed, test kept): Ran 1 test in 0.892s FAILED (failures=1)Failed:
Not run:
list2cmdlinebranch; the test expects double quotes there).Limits
bench report.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.