Repository navigation
Deduplicate GitHub and reviewer test setup - #1885
Conversation
Co-Authored-By: Codex <noreply@openai.com>
|
At source base |
There was a problem hiding this comment.
loopzero primary review by claude on 4894e64b640f5a4783ed1101bfbd2f6a0d2f9bc4, 24.5s: approve (0 critical, 0 important, 1 suggestion)
Settings per native call (launch configuration and CLI claims, not backend attestation):
- Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)
Native Claude output is retained in the restricted local review receipt.
| *((version, None) for version in ("codex-cli 0.168.0", "codex-cli 1.0.0-beta.1", "custom build", "")), | ||
| *(("codex-cli 0.161.0", failure) for failure in ("nonzero", "missing", "timeout")), | ||
| ]) | ||
| def test_codex_version_probe(fake_bin, tmp_path, monkeypatch, version, failure): |
There was a problem hiding this comment.
suggestion: Merged version-probe test now branches on its parameters
test_codex_version_probe puts two different scenarios in one test: successful version observation and probe failure. They are separated by if failure is None: ... return. test_merged_branch_history_requires_consistent_evidence (tests/test_github.py) does the same thing by switching reason on detail. Coverage and assertions are kept: the default codex-cli 0.161.0 matches what the failure cases used before, mark_ready lines are still run by test_generic_failure_carries_command_and_tail, and the files-read GET assertion still exists at test_github.py:401. The cost is that a failing case ID no longer tells you which scenario broke, and both tests are harder to read. This is fine as a trade for line budget. If headroom allows later, use explicit pytest.param(..., id=...) ids so the failure scenarios are named in reports.
|
@Mergifyio queue |
✅ Merged into
|
|
No description provided. |
Deduplicate GitHub and reviewer test setup
Context and goal
Acceptance
Base
Base: 98538be
Validation
Recorded for
4894e64b640fuv run --group dev ruff check src tests: exit 0uv run --group dev tach check: exit 0uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0scripts/size_budget.sh: exit 0uv run --group dev pytest -q: exit 0Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.Review