Skip to content

Deduplicate GitHub and reviewer test setup - #1885

Merged
mergify[bot] merged 1 commit into
mainfrom
lean178/575-dedupe-github-runner-tests
Nov 26, 2026
Merged

mergify[bot] merged 1 commit into
mainfrom
lean178/575-dedupe-github-runner-tests

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Deduplicate GitHub and reviewer test setup

Context and goal

Acceptance

  • Preserve meaningful request, failure, and payload assertions while sharing fixture setup.
  • Before/after coverage of the two files loses zero executed source lines and branches.
  • Only the two assigned test files change.

Base

Base: 98538be

Validation

Recorded for 4894e64b640f

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

  • primary, claude, 4894e64, approve

Co-Authored-By: Codex <noreply@openai.com>
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

At source base 98538be1, the same two files ran with coverage.py 7.17.5 --branch --source=loopzero through the local heavy slot. Compared the exact (file,line) and (file,from,to) sets from the JSON reports. Both runs covered 2,236 source lines and 585 branches, with zero lost or added. Before: 461 tests passed. After: 458 passed. Moved the GET assertions into the existing empty-page case, kept the ready argv assertion in the normal CLI tests, and combined the marker/id, lookup rejection and version-probe setup. REST /pulls/{number}/files inspection found #1508, #1529, #1436, and #1380 touching the assigned files; their changed tests were left alone. Size gate: −40 tests, zero source.

@loopzero-feder-positronics loopzero-feder-positronics Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread tests/test_runners.py
*((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):

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@eowca
eowca marked this pull request as ready for review November 26, 2026 12:52
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as 3def474 at 12:58 UTC

6 min in the queue, 5 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 12:52 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1890
  • ✅ Merged 12:58 · 3def474 · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 3def474 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/575-dedupe-github-runner-tests branch November 26, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant