Skip to content

Isolate offline uv and candidate Git test fixtures - #1338

Closed
eowca wants to merge 3 commits into
mainfrom
lean178/1268-offline-uv-cache
Closed

eowca wants to merge 3 commits into
mainfrom
lean178/1268-offline-uv-cache

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The offline sandbox test uses a pytest-owned cache and the suite interpreter. Candidate attestation fixture setup uses the shared isolated Git helper and preserves the fixture history and fetch assertions.

Closes #1268
Closes #1266

Validation

Recorded for 4dd2b0d5dac1

  • 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
  • Real Bubblewrap passed with a disposable home and empty Python download directory. The inherited cache sentinel and its contents stayed unchanged.
  • Both candidate runs passed 76 tests and skipped nine optional replays. One run used empty Git configuration, and the other forced signing via synthetic system, global and inline configuration.
  • The full remote check passed. A local heavy-slot run is queued to produce the settings fingerprint required by readiness.

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

Review

  • primary, claude, f292887, approve

eowca and others added 2 commits November 26, 2026 02:22
Co-Authored-By: Codex <noreply@openai.com>
Co-Authored-By: Codex <noreply@openai.com>
@eowca
eowca marked this pull request as draft November 26, 2026 01:47

@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 f29288713874c934c1bb3e8822c372b403f35c3b, 33.0s: 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_sandbox.py
sandbox_ro=(str(Path(uv).parent), sys.base_prefix),
writable=(str(uv_cache),),
)
report = sandbox.run_checks(cfg, git_repo)

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: Isolation properties from the acceptance criteria are not asserted in the test

The acceptance criteria say the real Bubblewrap run uses a clean home, an empty Python download directory and an unchanged inherited cache sentinel. The test builds isolation into its structure: a tmp_path cache, UV_NO_CONFIG, UV_PYTHON_DOWNLOADS=never, an explicit UV_PYTHON and HOME=tmp_path for uv lock. It never asserts these properties, though. Per the Validation notes, the sentinel was only checked by hand. A later regression could go unnoticed, for example one where uv falls back to ~/.cache/uv because the sandbox drops UV_CACHE_DIR. The smallest fix: after run_checks, assert that uv_cache is non-empty, which shows the disposable cache was the one used. Optionally, also set UV_PYTHON_INSTALL_DIR to an empty tmp directory and assert it stays empty.

@eowca
eowca marked this pull request as ready for review November 26, 2026 01:56
@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

❌ Left the queue · checks fails with this pull request

1 min in the queue, less than a minute of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 02:11 · rule main · triggered by @eowca with the @mergifyio queue command
  • ❌ Checks failed · draft #1377
  • 🚫 Left the queue 02:12 · f292887

The failure is in this pull request. It failed tested alone on top of main.

Reason

The merge conditions cannot be satisfied due to failing checks

  • checks

Failing checks:

To get back in the queue

  • Push a fix: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, comment @mergifyio queue to queue it again as it is.

Merge conditions not met when it left the queue

  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = checks
    • check-skipped = checks
    • check-success = checks
2 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 = 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 mentioned this pull request Nov 26, 2026
10 of 30 tasks
@mergify mergify Bot added dequeued and removed queued labels Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Parked at approved head f29288713874c934c1bb3e8822c372b403f35c3b. The local gate and required source checks passed. loopzero merge --wait exited 1 after the Mergify candidate check counted 13,501 test lines against the 13,500 cap. Once main has enough test-line headroom, requeue with @mergifyio queue as the entire PR comment, then run loopzero merge --wait.

@mergify mergify Bot removed the dequeued label Nov 26, 2026
@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

❌ Left the queue · checks fails with this pull request

5 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 02:56 · rule main · triggered by @eowca with the @mergifyio queue command
  • ❌ Checks failed · draft #1442
  • 🚫 Left the queue 03:00 · 4dd2b0d

The failure is in this pull request. It failed tested alone on top of main.

Reason

The merge conditions cannot be satisfied due to failing checks

  • checks

Failing checks:

To get back in the queue

  • Push a fix: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, comment @mergifyio queue to queue it again as it is.

Merge conditions not met when it left the queue

  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = checks
    • check-skipped = checks
    • check-success = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility
    • check-success = Loop-zero Eligibility
1 merge condition met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required

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 mentioned this pull request Nov 26, 2026
10 of 30 tasks
@mergify mergify Bot added dequeued and removed queued labels Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Parked at approved head 4dd2b0d5dac1975587cb787cd212f9c73d1f69d5. The clean merge preserved approval and the full local check passed. The new Mergify candidate reached 13,859 test lines against a cap of 13,850. Its base was already at 13,850, and this PR adds nine lines. loopzero merge --wait exited 1. Requeue when main has at least nine lines of test-budget headroom.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Main now uses the shared isolated Git fixture, and merging it into this branch conflicts in tests/test_candidate.py. A candidate using main's fixture passed every size cap with 298 test lines of headroom. The offline uv test passed in real Bubblewrap with a disposable home and an unchanged inherited cache sentinel.

The existing approval covers f2928871. Resolving the conflict requires review, and the inherited merge at 4dd2b0d5 prevents a delta review under the current review workflow. Closing this PR and leaving #1268 open for a fresh delivery.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give the offline uv sandbox test a disposable cache Isolate candidate attestation test setup from global Git settings

1 participant