Skip to content

Free 152 test lines by sharing setup and retaining behavior checks - #1732

Merged
mergify[bot] merged 2 commits into
mainfrom
lean178/575-r49-test-refill
Nov 26, 2026
Merged

mergify[bot] merged 2 commits into
mainfrom
lean178/575-r49-test-refill

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Free 152 test lines by sharing setup and retaining behavior checks

Context and goal

  • Goal: Free 152 lines in the shared test budget so ready changes can move through delivery.
  • Problem: Separate tests repeated the same setup or asserted behavior already exercised by a retained case.
  • Context: Shared fixtures cover receipt setup, Mergify request replays, and account execution. Parameterized cases keep the distinct inputs for PR readiness, branch collisions, configuration, and reviewer output.

Refs #575

Acceptance

Notes

Each mutation ran in a separate source snapshot and was restored before the corresponding normal run.

Product mutation Retained failures
Discard GitHub stdout diagnostics 1
Accept a review of an older head 1
Treat resolved review threads as open 4
Treat a forbidden queue lookup as absent 1
Discard declared check inputs 2
Drop the shared-network sandbox flag 2
Omit the base SHA from receipt settings 2
Strip branch-name whitespace 1
Skip detection of an existing task branch 1
Discard Codex CLI model claims 2
Miscount deleted lines in review chunks 4
Apply managed-account admission to explicit auth 2

The corresponding restored tests passed for all 12 mutations.

Base

main @ c81807a
Base: c81807a

Validation

Recorded for 18738b983a35

  • 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, 18738b9, approve

eowca and others added 2 commits November 26, 2026 09:53
Architecture-Review: unchanged; the patch only changes tests and retains the delivery and trust behavior.
Co-Authored-By: Codex <noreply@openai.com>
Architecture-Review: unchanged; the conflict resolution carries the landed CPU-grant case into the shared test fixture.
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 claude on 18738b983a35ebfaa5b5eaa9a94571e7caf06e24, 48.4s: 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
@pytest.mark.parametrize("state", [
".claude", ".codex", ".claude.json", "custom-claude", "custom-codex", "secure-storage",
".claude", ".codex", ".claude.json", "custom-claude", "custom-codex", "secure-storage", "blank-secure-storage",
])

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: The blank-secure-storage case runs four duplicate parameter combinations

The test is parameterized by state × exposure, so adding blank-secure-storage creates five cases. Only exact tests something new. It unsets CLAUDE_CONFIG_DIR and checks that a blank CLAUDE_SECURESTORAGE_CONFIG_DIR keeps the default ~/.claude protected. In the other four (ancestor, descendant, alias, repository), CLAUDE_CONFIG_DIR stays set to custom-claude and the protected path becomes host/.claude. That makes them the same as the existing .claude cases, except for a blank secure-storage variable that does not affect how .claude is protected. These four cases add sandbox runs without catching anything new, and the if blank and exposure == "exact" branch makes the function harder to read. Not blocking. To fix, either skip the blank state for exposures other than exact, or unset CLAUDE_CONFIG_DIR for every blank case so each one checks that default ~/.claude stays protected.

@eowca
eowca marked this pull request as ready for review November 26, 2026 09:21
@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 3973d04 at 09:25 UTC

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

So far

  • ✅ Entered the queue Thu 26 Nov, 09:21 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1758
  • ✅ Merged 09:25 · 3973d04 · 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 3973d04 into main Nov 26, 2026
18 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/575-r49-test-refill branch November 26, 2026 09:26
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