Repository navigation
Run bootstrap.sh's Whole Main Flow Against a Stub Download and Stub Tools - #2589
Conversation
…ools TestKeptTreeEndToEnd runs bootstrap.sh --host with a stub curl serving a local tarball and stub tools failing at each stand-up step, and asserts the kept tree on disk: a failure before the skills step leaves the previous tree, a success leaves only the new one, and the previous tree is untouched until the skills step. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ve the Swap Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🟢 Approval recommended
The single-file test change covers the stated Linux scenarios, with no unresolved findings.
0 open findings
What changed in this PR
Adds whole-flow tests for the Linux bootstrap loader's kept-tree swap, addressing the bash portion of #1767. The PowerShell counterpart remains tracked in #2587.
Changes:
- Runs
bootstrap.sh --hostwith a local stub download and tools. - Checks tree state and cleanup after successful runs and failures at each stand-up step.
| File | Description |
|---|---|
tests/test_bootstrap.py |
Adds seven end-to-end tests for the Linux kept-tree flow. |
🧠 Review effort: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2589 +/- ##
========================================
Coverage 58.85% 58.85%
========================================
Files 16 16
Lines 8181 8181
========================================
Hits 4815 4815
Misses 3366 3366
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…, Table Carry Test (#2591) ## Summary Promotes develop to main, carrying: - #2588 Put the Managed Bin Directory on install-tools.sh's Own PATH When the Caller Omits It - #2589 Run bootstrap.sh's Whole Main Flow Against a Stub Download and Stub Tools - #2586 Pin the Table Carry Onto a Second-Format Lite Round That Finds Nothing - #2593 Assert the Lite Table-Carry Test's Own Premise Fixes #2257 Fixes #1767 Fixes #2282 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Adds
TestKeptTreeEndToEndtotests/test_bootstrap.py: option 1 of #1767 for the bash loader. It runs the realhost-setup/bootstrap.sh --host --yes --dir <scratch>with a scratch HOME, a stubcurlon PATH serving a local tarball, and stub tools inside that tarball that log what the kept tree held when they ran and fail at a chosen stand-up step. A stubmvrecords whether the previous tree is still held aside at the moment the new one moves into place. No change tobootstrap.shwas needed.Asserted from disk:
.new/.old/archive beside it, and the run stops at that step;skills-tree.newwith the old tree intact, and the skills installer runs from the swapped-inskills-tree;.oldwhen the new one moves into place;.old.Verification on this host (WSL2 Debian):
Ran 7 tests ... OKfor the class, and the whole moduleOK (skipped=46). Local mutations, reverted and never committed: swapping in unconditionally during download failed 8 cases, deleting the old tree before staging failed 5, and replacingmv "$tree" "$retired"withrm -rf "$tree"failed the new held-aside case.The PowerShell half is a
windowslane item: #2587.Closes on promotion: #1767
🤖 Generated with Claude Code