Repository navigation
test: track the pinned Codex version in native hook pressure - #184817
Conversation
Read the expected CLI version from the Codex plugin manifest so runtime bumps cannot leave a stale exact-version assertion. Follow-up to #181823.
|
🦞👀 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 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: needs maintainer review before merge. What this changesThis PR derives the native-hook pressure test’s expected Codex version from the Codex plugin’s pinned dependency. Example: The managed Codex binary reports codex-cli 0.164.0.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a stale test expectation still present on current main, preserves exact binary-version verification, and introduces no identified defect. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe QA Lab pressure suite starts an isolated Gateway, exercises native Codex tool calls, and checks the running app-server binary’s reported version against the managed package pin. flowchart LR
A[Codex plugin manifest] --> B[Expected version]
C[QA pressure scenario] --> D[Isolated Gateway]
D --> E[Codex app server]
E --> F[Observed binary version]
B --> G[Exact equality assertion]
F --> G
Technical reviewBest possible solution: Use the existing plugin manifest as the expected pin while retaining exact verification of the observed running binary. Do we have a high-confidence way to reproduce the issue? Source establishes the mismatch between the 0.164.0 managed pin and current main’s 0.162.1 assertion; no target code was executed during this read-only review. Is this the best way to solve the issue? This is the smallest complete repair: it reuses the existing manifest and file-reading API without adding helpers, duplicate policy, or weaker matching. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c152c5976b21. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +4. Total +4 across 1 file. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 26, 2026, 1:06 PM ET / 17:06 UTC. |
…w#184817) Read the expected CLI version from the Codex plugin manifest so runtime bumps cannot leave a stale exact-version assertion. Follow-up to openclaw#181823.
* test(release): track pinned Codex version in hook pressure Adapt main #184817 to the release fixture. Co-authored-by: RomneyDa <[email protected]> * test(release): give scheduler canary explicit auth Adapt main #182343 to the release fixture. Co-authored-by: RomneyDa <[email protected]> * test(gateway): align scheduler canary fixture auth Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: RomneyDa <[email protected]> Co-authored-by: roboclaw-bot <[email protected]>
What Problem This Solves
The native-hook pressure tests still expected
codex-cli 0.162.1after #181823 upgraded the managed runtime to0.164.0, causing all three policy modes to fail their version assertion.User Impact
No runtime behavior changes. The tests continue to require the exact pinned Codex version and now follow future pin updates automatically.
Why This Change Was Made
Read
@openai/codexfromextensions/codex/package.jsonusing the test's existing repository root and file-reading API. This removes the duplicated version literal without weakening the assertion. The change is limited to five added test lines and one replacement; no production code or new test scaffolding.Evidence
Reproduced the old assertion mismatch against the installed managed binary: actual
codex-cli 0.164.0, expectedcodex-cli 0.162.1.Evaluated the new manifest-derived expression and verified exact equality with both
codex-cli 0.164.0and the installed binary's--versionoutput.Ran the file's fast executable-link test: passed, 27 ms test time / 82.16 s cold wall time. The three Linux-only Gateway scenarios were skipped on macOS; no local Docker was used.
Formatting, syntax lint, and
git diff --checkpassed. Local type-aware lint could not prepare declarations because the requested external virtual store is outside the checkout; PR CI supplies type-aware coverage.No other stale hardcoded
codex-cli 0.16test literals remain.Isolated Codex review: no actionable findings through P2.
Exact-head CI passed: run 40363200617, head
b1b33569b377d0579cef31d6122cd98734625bcc. The separate hosted advisory review was canceled before any steps executed; the isolated review above completed successfully.