USHIFT-7420: Enable CI Doctor to use JSON based PCP graphs - #252
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 |
WalkthroughThe ChangesPCP JSON metrics transition
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 markdownlint-cli2 (0.23.1)plugins/microshift-ci/agents/prow-job-analyzer.mdmarkdownlint-cli2 v0.23.1 (markdownlint v0.41.1) ... [truncated 1262 characters] ... node:internal/modules/esm/resolve:271:11) plugins/microshift-ci/scripts/pcp-graphs/README.mdmarkdownlint-cli2 v0.23.1 (markdownlint v0.41.1) ... [truncated 1262 characters] ... node:internal/modules/esm/resolve:271:11) plugins/microshift-ci/skills/doctor/SKILL.mdmarkdownlint-cli2 v0.23.1 (markdownlint v0.41.1) ... [truncated 1262 characters] ... node:internal/modules/esm/resolve:271:11) 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: 4
🤖 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/microshift-ci/agents/prow-job-analyzer.md`:
- Line 100: Update the causal_chain guidance and the high-confidence rule so
binary evidence is handled consistently: either disallow binary links in causal
chains or explicitly define when a binary link with :1 and an empty quote can
qualify for high confidence. Ensure the rules at causal_chain and confidence
guidance agree without weakening quoted artifact-line or metric-data
requirements.
In `@plugins/microshift-ci/scripts/pcp-graphs/README.md`:
- Around line 51-56: Document the complete PCP prerequisite contract by adding
the PCP Python module import check and its supported installation method to the
prerequisite and installation guidance in
plugins/microshift-ci/scripts/pcp-graphs/README.md (lines 51-56), and add the
same prerequisite to plugins/microshift-ci/skills/doctor/SKILL.md (line 220),
matching the checks performed by doctor.sh graphs.
- Around line 98-103: Update the “Adding a New Metric Type” procedure to cover
the standalone dashboard path: require adding extraction logic to
generate-dashboard.sh and registering the new JSON file in
create-pcp-dashboard.py alongside the existing metric files. If the procedure is
intentionally limited to the CI Doctor report, state that scope explicitly
instead; keep the documented steps accurate without duplicating derived
configuration.
In `@plugins/microshift-ci/skills/doctor/SKILL.md`:
- Around line 81-86: Document partial metric extraction handling: in
plugins/microshift-ci/skills/doctor/SKILL.md lines 81-86, describe per-file
extraction failures and require validation of each available output. In
plugins/microshift-ci/agents/prow-job-analyzer.md line 20, state that graphs_dir
may contain a partial metric set; at line 39, validate available JSON and
timestamp spacing, then record absent metrics in analysis_gaps rather than
treating them as negative evidence.
🪄 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: bab9ac5c-e461-473a-9ea7-edbbda9c2d2e
📒 Files selected for processing (5)
.claude-plugin/marketplace.jsonplugins/microshift-ci/.claude-plugin/plugin.jsonplugins/microshift-ci/agents/prow-job-analyzer.mdplugins/microshift-ci/scripts/pcp-graphs/README.mdplugins/microshift-ci/skills/doctor/SKILL.md
|
/lgtm |
Summary by CodeRabbit
New Features
Documentation
Chores