Skip to content

Share fixtures and cases across delivery tests - #1555

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

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

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Superseded by #1586 after resolving upstream test conflicts.

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

Supersedes #1527 after merging main. The replacement uses the same checked commit.

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

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.

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.

@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 c609651664ca5ee675538857a0735793cd423871, 100.3s: approve (0 critical, 0 important, 1 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: 5c984f4fd4ebe38723737adb55e0e0314fcf993aba8176a285d7ca6b30ab9686

Comment thread tests/test_cli.py
def dispatch(_config, _wt, _head, _base, command, _timeout):
calls.append(command)
if interrupt and cut == "second stage" and len(calls) == 2:
if interrupt and cut != "final validation" and len(calls) == (5 if changed_inputs else 2):

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: Trigger checkpoint interruptions by stage name

The changed-inputs case interrupts on the fifth dispatch because the warm-up run executes three commands first. Adding a warm-up stage would move the interruption to a different command. Select the command to interrupt for each stage-interruption case and compare it with command, keeping the call-history assertion to verify which stages were reused.

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