Skip to content

test(install): stop downloading a release the advice test does not need - #1232

Merged
Chemaclass merged 1 commit into
mainfrom
fix/install-test-network-cost
Aug 14, 2026
Merged

test(install): stop downloading a release the advice test does not need#1232
Chemaclass merged 1 commit into
mainfrom
fix/install-test-network-cost

Conversation

@Chemaclass

Copy link
Copy Markdown
Member

🤔 Background

Related #1231

test_the_recovery_advice_names_a_form_the_parser_accepts says it needs no network. Its first run does not; its retry named a non-existent path, so it parsed, passed the destination check and downloaded the release — 10.27s, fifth-slowest test in the suite, and a network dependency it should not have.

💡 Changes

  • Point the retry at a second blocked path: reaching the destination check is itself proof the parser accepted the form, since that is the stage after parsing
  • Assert it reached that check, so the test cannot silently start passing for a different reason
  • 10.27s → 1.58s locally, and the test no longer touches the network; mutation-checked that reverting the advice to -d still fails it

The retry named a path that does not exist, so it parsed, passed the
destination check, created the folder and downloaded the release -- 10.27s in
the profile, and a network dependency the test's own comment denied having.

What the assertion needs is proof the parser accepted the form, and reaching
the destination check is that proof: it is the stage after parsing. Point the
retry at a second blocked path instead. 10.27s -> 1.58s.

Closes #1231
@Chemaclass Chemaclass added the bug Something isn't working label Aug 14, 2026
@Chemaclass Chemaclass self-assigned this Aug 14, 2026
@Chemaclass
Chemaclass merged commit 52375ec into main Aug 14, 2026
37 checks passed
@Chemaclass
Chemaclass deleted the fix/install-test-network-cost branch August 14, 2026 10:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant