Repository navigation
computeFSClosure(): Recurse rather than loop - #542
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe non-flipDirection branch of ChangesClosure Traversal Refactor
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/libstore/misc.cc`:
- Around line 93-101: The top-level asio::co_spawn completion handler in doPaths
currently assigns ex unconditionally, which can overwrite an exception
previously stored by detached child tasks. Update that root completion lambda to
mirror the existing guarded handlers by only setting ex when the passed
std::exception_ptr is non-null, so errors raised by doPaths and its spawned
children are preserved.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
This way we start work on new paths as soon as possible, rather than waiting until all paths have been received. This is important for stores that don't implement queryPathInfos().
7656214 to
5601270
Compare
Motivation
Fixes an issue with #539: with stores like binary caches that don't implement a
queryPathInfos()that returns all paths at the same time, we shouldn't wait until all paths have been received but do a recursive call on the incoming path immediately.Context
Summary by CodeRabbit
Refactor
Bug Fixes