Repository navigation
Speed up app-host test CI - #6914
austinywang wants to merge 10 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThe ChangesApp-host unit-test CI workflow
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 25✅ Passed checks (25 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
test_shell_integration_preserves_empty_path_components sourced the shell integration with the crafted PATH supplied via the subprocess environment. On some self-hosted macOS runners /etc/zshenv runs path_helper even under `zsh -f`, rewriting PATH from /etc/paths* before the `-c` body runs, so the integration script saw the runner's real PATH instead of the test value and the assertion failed (shard 4/4 "Run CLI no-socket regressions"): zsh expected PATH '<shim>::<first>::<last>:' got '<shim>:/Users/runner/.cargo/bin:...:<first>:<last>' Set PATH inside the `-c` body (after all shell startup files have run) instead of through the environment, so the integration script deterministically sees the intended PATH on every runner. The code path under test — empty-component preservation during shim reordering, which uses only shell builtins — is exercised identically. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
With the build/test split, the "Run unit tests" step runs the prebuilt bundle via test-without-building with -disableAutomaticPackageResolution, so it can never emit "Could not resolve package dependencies": the resolution retry there was unreachable and its comment (still mentioning DerivedData clearing, which an earlier commit removed) was stale. Package resolution and its one-shot retry already live in the "Build app-host tests" step. Addresses Greptile review feedback on #6914. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
# Conflicts: # tests/test_claude_wrapper_user_binary_resolution.py
Fixes #6134
Summary
Local validation
Need help on this PR? Tag
/codesmithwith what you need. Autofix is disabled.Summary by cubic
Speeds up app-host unit-test CI by caching per-shard DerivedData and reusing one build via
test-without-building. Cuts duplicate builds and flakiness; fixes #6134.Refactors
actions/cache, keyed on Xcode version, Ghostty revision,Package.resolved, and project; add broader restore fallbacks.xcodebuild build-for-testing; run focused gates and shard tests withtest-without-building.Bug Fixes
Written for commit 2bf31b9. Summary will update on new commits.
Summary by CodeRabbit