Fix: exclude alloc-only fanin from star markers#1374
Conversation
There was a problem hiding this comment.
Code Review
This pull request refines the logic for applying the star (⭐) marker in the dependency viewer, ensuring that a task is only marked if all of its predecessors are fire-marked (🔥) and at least one predecessor is not an allocation task. Unit tests have been updated to verify these changes. The review feedback suggests optimizing this logic by leveraging Python's short-circuiting to avoid unnecessary predecessor checks when not all predecessors are fire-marked.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe dependency viewer now emits “⭐” only when all predecessors are fire-marked and at least one is non-alloc. Tests cover alloc-only, mixed early-dispatch/alloc, and non-fire-ready predecessor cases. ChangesDependency star marker rules
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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 |
5d71962 to
c0042f8
Compare
Require at least one non-alloc predecessor before adding the star marker, while still treating alloc tasks as fire-marked sources. Cover alloc-only, mixed early-dispatch, and missing-fire fanin cases.
Summary
Testing
.venv/bin/python -m pytest tests/ut -q(594 passed, 2 skipped).venv/bin/python -m pytest tests/ut/py/test_deps_viewer.py -q(28 passed after rebase)ruff checkandruff format --checkon changed files