Skip to content

test(bootstrap): cover download failure codes and absent binaries - #18

Open
taigrr wants to merge 1 commit into
masterfrom
cd/download-failure-tests-20261203
Open

taigrr wants to merge 1 commit into
masterfrom
cd/download-failure-tests-20261203

Conversation

@taigrr

@taigrr taigrr commented Dec 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Expand failed-download sandbox coverage from 4 to 32 cases across farmer/sprout and latest/v1.0.5.
  • Exercise DNS (6), HTTP (22), timeout (28), and interrupted-transfer (56) exits, with and without an existing executable.
  • Assert exact exit propagation, binary preservation/absence, config contents, temporary-file cleanup, and no service calls; bound subprocess execution to 10 seconds.
  • Test-only change; pending uninstall PR fix(bootstrap): allow uninstall on unsupported architectures #17 is untouched. Existing config is preseeded in all scenarios; this does not exercise first-time configuration creation.

Validation

  • Baseline and final Python unittest suite pass (72 sandbox scenarios final).
  • ShellCheck, shfmt, Black, Ruff, current/latest parity and git diff checks pass.
  • Mutation normalizing curl failures to exit 1 causes all 32 download cases to fail; restored scripts pass unchanged.
  • No live install or service operations performed.

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