Skip to content

Share fixtures and cases across delivery tests - #1527

Closed
eowca wants to merge 2 commits into
mainfrom
lean178/575-dedupe-delivery-scenarios
Closed

eowca wants to merge 2 commits into
mainfrom
lean178/575-dedupe-delivery-scenarios

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #1555, which uses the same checked head and can receive a fresh primary review.

Share fixtures and cases across delivery tests

Context and goal

  • Goal: Remove at least 242 net test lines by sharing fixtures and parameterizing existing scenarios.
  • Problem: Repeated CLI actions, fake clocks, and publication setup require the same maintenance in multiple tests.
  • Context: This completes the test-only size reduction started in Deduplicate delivery test cases and fixtures #1455.

Refs #575

Acceptance

  • The test size budget reports at least 242 fewer lines.
  • The collected case count and executed source lines and branches match the base.
  • Every edit is under tests/.

Base

main @ 2a11772
Base: 2a11772

Validation

Recorded for c609651664ca (unverified, run loopzero check)

  • 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

(filled by loopzero check)

Review

(filled by loopzero review)


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

  • primary, codex, a954b02, request_changes

Coverage comparison

Slotted pytest --cov=loopzero --cov-branch on base 2a11772608255c31ed22eef0327400773dd29484 and head c609651664ca5ee675538857a0735793cd423871:

  • Test budget: 13,615 → 13,372 lines (−243).
  • Both suites: 1,937 cases, 1,928 passed, 9 skipped.
  • Both suites: 4,502/4,748 source lines and 1,600/1,792 branch arcs.
  • The added and removed sets of executed source lines and branch arcs are empty for every file.

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

@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 codex on a954b027e56e0ca6d31c1e54552660376dbe6879, 142.5s: request_changes (1 critical, 0 important, 0 suggestion)

Same-family fallback: independent reviewers failed: claude: not authenticated. Cross-family review is preferred.

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model gpt-6.2-astra (effort medium); CLI-reported model gpt-6.2-astra (effort medium); configured model gpt-6.2-astra (effort medium)
Raw reviewer output
Native Codex transcript retained in the restricted local review receipt; public evidence is publisher-derived, not backend attestation. Exact raw SHA256: 174a7fd5374f6c0f1c216946392e403dc4e23d9cdecb8c438a65e6d9884a564a

Comment thread tests/test_cli.py
return code, captured.out, captured.err


def poll_clock(monkeypatch, *, start=0.0, jitter=None, after_sleep=None, patch_sleep=True):

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

No file location given by the reviewer; anchored here.

critical: Provide the base-to-head comparison of executed lines and branches

The size budget confirms 244 fewer test lines, both revisions collect 1,942 cases, and all edits are under tests/. The remaining acceptance criterion is unverified. The PR’s Validation section and discussion contain no comparison of executed source lines or branches. Run both suites with the same branch-coverage settings and record the set differences for src/loopzero in the PR. Both the added and removed sets should be empty for lines and branch arcs.

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