Repository navigation
Reduce the comments added by PR #9979 - #10107
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
38d9cdb to
fd32e14
Compare
|
Codex Review: Didn't find any major issues. Keep them coming! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Comment and docstring reduction over the code #9979 added. Two passes, prepared while that PR was open and finished just after it merged, so they missed the merge.
Behaviour-free by construction: 102 insertions against 221 deletions, and every hunk is a comment, a docstring or whitespace.
Numbers
No docstring is deleted. Every function that had one still has one; the reduction is entirely from collapsing multi-line rationale blocks. The longest surviving docstring in the set is 8 lines, down from 11, and the rest are 1 to 4.
AST gate
comment_tools.py check --changed --base origin/main --strip-docstringsreports 12/12 OK, exit 0. Every extension in the diff is.py,.tsor.tsx, all of which the tool parses, so nothing is skipped past the gate.Worth recording for the next pass: with
--strip-docstringsa docstring edit compares equal but a deletion does not, because the helper blanks the string value and keeps theExprnode. That is why this pass shortens docstrings and never removes them.What was deliberately kept
Shorter was not the goal where a comment carried a fact the code does not state:
_choice_seedand its test keep the note that matching a literal-1alone left choice 0 random and cached while choice 1 was offset into a fixed, uncached seed. That is the reason the comparison masks to uint32, and it is the alternative-is-wrong fact._binary_image_runskeeps the whole "exit code is not the verdict" half.llama-quantizeanswering--versionwith a non-zero exit is a live trap, and the deliberate fail-open on a timeout or failed spawn is an invariant nothing else records.S1..S12marker shapes keep their date and PR citations. Nothing else records when each key arrived, which is the entire premise of a back-compat matrix.test_a_pre_runtime_asset_windows_cuda_install_is_not_asked_for_the_cudart_triokeeps "every Windows CUDA install today predatesruntime_asset". Without it the test reads as hypothetical rather than as a regression that would loop forever.Verification
tests/studio/install/and the zoo isolation suite: 3270 passedThe 11 failures in
test_rocm_support.pyvisible in a local full run are unrelated and reproduce identically onmain; they need an importableunsloththat the sandbox lacks.Note
Touches
tests/studio/install/test_keep_install_backcompat_9979.py, which #10106 also edits. Whichever lands second needs a trivial rebase.