Repository navigation
fix(install): make dry-run offline and probe-free - #2027
Merged
Merged
Conversation
gerchowl
force-pushed
the
bugfix/2021-install-dry-run-flake
branch
from
November 4, 2026 05:33
d82cb2e to
f6e2105
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Make
install.sh --dry-runfast and deterministic offline. A timestamped trace reproduced a 12.857 s dry run, including 12.814 s inpodman info, exceeding the existing 10 s test timeout.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
<latest-release>placeholders; explain PATH-only runtime selection and possible fallback on a real run.--previewfor resolved releases and runtime health, and keep direnv output free of runtime-health disclosures. Pin the container deferred-checks disclosure in regression tests.Changelog Entry
Testing
Round 2: mutant M5 (remove container deferred disclosure) rejected: 3 container cases failed, direnv passed (pytest exit 1); restored source.
Round 2: new plan/disclosure assertions failed in all four modes before implementation (exit 1).
Round 2: utility and direnv installer pytest tests: 69 passed (exit 0); installer Bats: 114 passed (exit 0);
nix develop --command just docsexited 0.RED: four new regression cases failed (exit 1), recording
gh api,git ls-remote,docker info, andpodman info.GREEN:
uv run --with pytest-xdist pytest tests/test_utils.py -n 4with isolated external basetemp: 37 passed (exit 0).nix develop --command uv run --with pytest-xdist pytest tests/test_install_direnv_host.py tests/test_utils.py -n 4with isolated external basetemp: 69 passed (exit 0).nix develop --command bats tests/bats/install.bats: 114 passed (exit 0).Timestamped
bash -x: before default 12.857 s / direnv 0.456 s; after default 0.045 s / direnv 0.046 s.unshare -rn: before exit 1 (runtime probe); after default and direnv exit 0, 0.043 s each.Tests pass locally (
just test)Manual testing performed (describe below)
Manual Testing Details
Ran the installer against an empty temporary target with timestamped shell tracing, then repeated with networking disabled using
unshare -rn. No files were created.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Refs: #2021