Repository navigation
improve: reduce package profile test setup - #155972
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 5:46 PM ET / 21:46 UTC. ClawSweeper reviewWhat this changesThe package acceptance profile tests reuse the existing tooling fixture directly, avoiding unused target repositories and command shims while preserving assertions. Merge readiness✅ Ready for maintainer review Keep open: this is a useful, narrowly scoped cleanup that current main still lacks. No actionable correctness or security defects were found. Priority: P3 Review scores
Verification
How this fits togetherPackage Acceptance selects validation suites from profile inputs. These tests execute its actual workflow step against isolated tooling copies and check the resulting suite selections and errors. flowchart LR
A[Profile test inputs] --> B[Tracked temporary directory]
C[Cached tooling template] --> D[Private tooling copy]
B --> D
D --> E[Workflow profile selection]
A --> E
E --> F[Output and error assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests 0. Total 0 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the existing private tooling-copy lifecycle and profile assertions while removing setup that the profile step never consumes. Do we have a high-confidence way to reproduce the issue? Not applicable to a product bug; source inspection confirms the unused fixture setup, and the PR reports a before/after subprocess comparison. Is this the best way to solve the issue? Yes. Reusing the existing tooling helper is the narrowest change and preserves per-invocation isolation, cleanup, and workflow-boundary assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d30f66fc26f9. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '7d7f977ccfc1ac177526232e4f4960febd010015': (91 commits) test: avoid unused target setup in package profile fixtures (#155972) fix(worktrees): batch snapshot metadata reads test(plugin-state): distinguish borrowed and foreign lifecycle owners refactor(agents): share external harness session and attempt machinery (#152181) chore(i18n): refresh native locales (#156006) chore(test): retain Doctor fixture settlement diagnostics (#155944) perf(codex): reuse unchanged inference request bytes (#155987) perf(test): prepare snapshot ownership subprocess imports (#155973) perf(test): consolidate channel registry coverage (#155014) fix(runtime): preserve Node worker dependencies and cleanup diagnostics (#155292) perf(test): prepare worktree GC child runtime (#155928) fix(ui): open browser cards after delayed panel renders (#153253) fix(update): retain the running updater by hard link instead of copying the package (#155977) feat(decisions): add explicit evaluation and Labs opt-in foundation (#155134) fix(state): preserve lifecycle custody across worker dispatch improve: reuse shared tooling fixtures and defer legacy updater proof (#155731) improve(ui): reduce real-Gateway test preparation (#155979) perf(state): move session RPC SQL off the Gateway main thread (#155740) docs(freebsd): explain native Codex runtime limits (#155980) fix(qa): count Code Mode nested tool activity as transcript tool evidence (#155976) ...
…#155972) Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Package Acceptance profile tests construct a target Git repository and command shims that their workflow step never uses.
User Impact
No user-visible behavior changes. The affected tests do less fixture setup while preserving all profile inputs and assertions.
Why This Change Was Made
Use the existing frozen tooling fixture directly, with a separate tracked temporary directory for each invocation. The same frozen tooling template and private copy lifecycle remain in place; only unused target setup is removed.
Evidence