USHIFT-7419: CI Doctor: --prepared argument - #253
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pmtk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
Warning Review limit reached
Next review available in: 52 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
WalkthroughThe doctor skills now accept ChangesPrepared doctor workflow
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 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 `@plugins/lvms-ci/skills/doctor/SKILL.md`:
- Around line 41-43: Update the --prepared branches in
plugins/lvms-ci/skills/doctor/SKILL.md (lines 41-43) and
plugins/microshift-ci/skills/doctor/SKILL.md (lines 40-42) to validate
prepare-summary.json immediately after reading and parsing it, including JSON
validity, required fields, workdir, and the branch-specific release/PR data
(LVMS: release info and PR info; MicroShift: source paths plus release/PR info).
Fail closed with the shared error handling before proceeding to Step 2, keep
each failure policy beside its read/parse action, and add applicable positive
and negative coverage per CONTRIBUTING.md.
In `@plugins/microshift-ci/skills/doctor/SKILL.md`:
- Around line 75-78: Update the prepared-mode flow in the doctor skill to
validate <WORKDIR>/graphs/<build_id> for every job with PCP data before
launching agents or proceeding to Step 2. Detect missing graph output using the
contract in the PCP graph-generation documentation, and stop or clearly report
each affected job instead of allowing analysis or finalization to continue
without graphs; document this guard and failure behavior between the phases.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: 4ef046d1-77e9-4855-b122-ed6d395eb78d
📒 Files selected for processing (2)
plugins/lvms-ci/skills/doctor/SKILL.mdplugins/microshift-ci/skills/doctor/SKILL.md
| **If `--prepared` was passed**: skip this step entirely (graphs were already generated externally). Proceed to Step 2. | ||
|
|
||
| **Otherwise**: | ||
|
|
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift
Validate pre-generated PCP graphs before skipping Step 1b.
Prepared mode trusts the external graph generation without checking <WORKDIR>/graphs/<build_id>. Later, Step 2 omits graphs_dir when the directory is absent. The analyzer can therefore run without graphs, and finalization cannot embed graph files that are missing.
Check the expected graph directory for each job with PCP data before launching agents. Stop or report the affected jobs when graph output is missing.
Per plugins/docs/SKILL-GUIDELINES.md, document failure cases and guard checks between phases. plugins/microshift-ci/scripts/pcp-graphs/README.md:61-69 defines the graph output contract.
🤖 Prompt for 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.
In `@plugins/microshift-ci/skills/doctor/SKILL.md` around lines 75 - 78, Update
the prepared-mode flow in the doctor skill to validate
<WORKDIR>/graphs/<build_id> for every job with PCP data before launching agents
or proceeding to Step 2. Detect missing graph output using the contract in the
PCP graph-generation documentation, and stop or clearly report each affected job
instead of allowing analysis or finalization to continue without graphs;
document this guard and failure behavior between the phases.
Source: Path instructions
1b2f2a0 to
1d7447b
Compare
--prepared means that the artifacts were already prefetch and there is no need to waste tokens on running deterministic commands
f3efe75 to
42baf52
Compare
--prepared means that the artifacts were already prefetch and there is no need to waste tokens on running deterministic commands
Summary by CodeRabbit
New Features
--preparedsupport to doctor workflows.Documentation