You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add --test-mode for resilient bootstrap with failure handling
Add --test-mode flag that enables resilient bootstrapping by marking failed
packages as pre-built and continuing until all packages are processed. Uses
optimal n+1 retry logic with comprehensive failure reporting including exception
types, messages, and per-package context.
Major changes:
- Enhanced BuildResult dataclass with req, resolved_version, and exception
tracking for detailed failure analysis
- Refactored pre_built_override from Settings to WorkContext for proper
separation of static config vs runtime state
- Introduced public WorkContext.package_build_info() API, replacing direct
Settings access across commands (bootstrap, build, graph, list-overrides)
- Fixed build-parallel command to use new public API
- Added 4 essential test scenarios in test_bootstrap_test_mode.py
Benefits:
- Discover all build failures in one run rather than stopping on first failure
- Support mixed source/binary dependency workflows
- Better error context for debugging failed builds
- Cleaner API boundaries between configuration and runtime context
Fixes#713
Co-developed-with: Cursor IDE with Claude 4.0 Sonnet
Signed-off-by: Lalatendu Mohanty <[email protected]>
0 commit comments