Skip to content

Deduplicate configuration, process and budget tests - #1906

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/575-deduplicate-small-test-fixtures
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/575-deduplicate-small-test-fixtures

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Deduplicate configuration, process and budget tests

Context and goal

  • Goal: Free 30 lines under the test cap by reusing existing test setup.
  • Problem: Several tests repeat configuration rejection checks, subprocess setup, or size gate setup.
  • Context: Consolidating these cases clears room for new regressions while keeping the existing assertions.

Refs #575

Acceptance

  • Remove at least 30 net test lines with zero source changes.
  • Preserve the subprocess environment and stream assertions, the configuration path cases, and the size gate ratchet cases.
  • Match the exact production line and branch coverage from the focused baseline.

Assertion audit

I listed the distinct assertions in each changed test and verified that they are still checked by the surviving tests.

  • Configuration. test_invalid_content checks the same forbidden paths and requires the same must not expose error. test_ro_path_boundary still checks that each allowed path is returned in the exact one-element tuple.
  • Subprocesses. test_run_captures_streams_and_allowlisted_environment requires exactly the retained and explicitly added variables, with the secret and absent variable excluded. It still checks exit code 3, nonnegative duration, the working directory, the argument containing spaces, and stderr in both split and merged modes. The ASCII-locale test still checks ASCII and replacement encoding in the child and the exact UTF-8 bytes in the parent.
  • Size budget. The Unicode, unstaged-deletion, and failed git show cases retain their count and exit assertions. test_complexity_ratchet retains the new-over-cap, hold, shrink, and growth decisions and checks that the PEP 758 case with repeated context managers exits successfully and reports zero over-cap functions and regressions. Both documentation caps still reject growth and accept an unchanged over-cap document.

Validation

Recorded for 39e982848d25

  • 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
  • Focused before-and-after runs against 411045f matched exactly. Configuration hit 678 lines and 88 arcs and process tests hit 585 lines and 5 arcs. The budget script hit 28 shell lines and 75 lines and 101 arcs in its embedded Python.

Base

main @ 6b72f82
Base: 6b72f82


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

Review

  • primary, claude, 39e9828, approve

@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 39e982848d257fdb01a86b312456302e487ba4c2, 27.4s: approve (0 critical, 0 important, 0 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.

@eowca
eowca marked this pull request as ready for review November 26, 2026 13:48
@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 1cb9945 at 13:54 UTC

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

So far

  • ✅ Entered the queue Thu 26 Nov, 13:49 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1913
  • ✅ Merged 13:54 · 1cb9945 · 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

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

@mergify
mergify Bot merged commit 1cb9945 into main Nov 26, 2026
20 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/575-deduplicate-small-test-fixtures branch November 26, 2026 13:55
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