Repository navigation
test(lifecycle): skip the p-native-codex user cell without Codex CLI >= 0.163.0 - #4378
Merged
Daniel Meppiel (danielmeppiel) merged 3 commits intoNov 20, 2026
Merged
Conversation
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 20, 2026 15:28
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The Codex guard probes a different executable from the install environment and accepts versions or failed probes that production qualification rejects, causing required test cells to fail rather than skip.
2 open issues
What changed in this PR
This PR adds a prerequisite guard for the user-scope p-native-codex lifecycle cell, preparing it to become required when #4154 is fixed.
Changes:
- Probes Codex availability and version, adding a descriptive skip reason when the prerequisite is unmet.
- Centralizes cell marks while preserving the existing strict expected failures for #4154 and #4153.
| File | Description |
|---|---|
tests/lifecycle/world/test_world.py |
Adds the Codex prerequisite probe and applies skip and expected-failure marks to lifecycle cells. |
Review effort: Balanced
…>= 0.163.0 The cell's post-approval install runs the real Codex CLI; once #4154 flips it to required it cannot pass without one, so it is skipped with a reason that names the missing or too-old binary. The strict xfail on #4154 is unchanged. Co-authored-by: Copilot App <[email protected]>
…UIRE_CODEX Co-authored-by: Copilot App <[email protected]>
… codex ahead of the world trap - Probe with production qualification (is_qualified_codex_version: prereleases of the floor refused) and the probe's exit status; a failed probe counts as absent. - The qualified codex goes ahead of the world's exit-91 trap for this cell only; other cells keep the trap. - Without one the cell is skipped locally and FAILS under CI or APM_REQUIRE_CODEX. - Unit cases: floor, later, floor prerelease, older, failed probe; CI fail vs local skip. Co-authored-by: Copilot App <[email protected]>
Daniel Meppiel (danielmeppiel)
force-pushed
the
danielmeppiel-t1-codex-cell-guard
branch
from
November 20, 2026 15:57
5be2e27 to
967176e
Compare
Daniel Meppiel (danielmeppiel)
deleted the
danielmeppiel-t1-codex-cell-guard
branch
November 20, 2026 15:58
This was referenced Nov 20, 2026
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.

Refs #4154
At user scope, the
p-native-codexworld cell's post-approval install runs the real Codex CLI. Once #4275 (#4154) lands and flips that cell to required, it cannot pass on a runner without Codex CLI >= 0.163.0. This adds a skip guard now, so the flip cannot turn CI red. The skip reason names the binary:needs the Codex CLI (codex) >= 0.163.0 on PATH; none found, or the version that was found.The strict xfail on #4154 is unchanged. The p-parent and p-parent2 user cells (#4153) stay, because #4138 closed without merging.
Validation
pytest tests/lifecycle/world/test_world.py::test_each_package_installs_through_the_real_cliwithcodexabsent from PATH: 15 passed, 1 skipped (the codex user cell, with the reason above), 2 xfailed (install -g drops a transitive relative-path dependency without a diagnostic #4153). This was a single run with the host's codex 0.170.0 left off PATH, so only the skip branch was exercised.Steward pre-approval (A-C)
p-native-codexuser world cell gains a skip mark, applied only when Codex CLI >= 0.163.0 is not on PATH. This is outside A-C (an environment-conditional skip), so it was disclosed to the steward in one line before landing. The apm approve cannot find a native Claude or Codex plugin parked by the executables gate at user scope #4154 strict xfail is unchanged.Steward condition
The skip never applies when
CIorAPM_REQUIRE_CODEXis set. On CI, a runner without Codex CLI >= 0.163.0 fails the cell loudly instead of silently losing coverage. The skip reason names the version found, or says that none was found. Locally, without codex: skipped. WithCI=true: not skipped.