ci: auto-create GitHub issues on nightly e2e failure#620
Conversation
|
Warning Review limit reached
Next review available in: 52 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. 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: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe reusable E2E workflow now classifies infrastructure and test failures, exposes the classification, and uploads JSON results. The nightly workflow consumes this output to extract failed tests and create deduplicated, labelled GitHub issues. ChangesNightly E2E reporting
Estimated code review effort: 4 (Complex) | ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 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 |
20e7a1e to
c8f09c6
Compare
|
👀 |
c8f09c6 to
6e7afc8
Compare
- add create-issue job to e2e-nightly.yaml that files a GitHub issue on any failure, labelled nightly-failure/nightly-infrastructure + e2e - add failure classification output to e2e-common.yaml (infrastructure vs test vs none) and JSON results artifact upload - add JSON reporter to playwright config for machine-readable results - ensure labels exist before creating issues - no duplicate issues — checks for existing open issues before creating Closes Kuadrant#586 Signed-off-by: R-Lawton <rlawton@redhat.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
6e7afc8 to
3d24259
Compare
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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 @.github/workflows/e2e-common.yaml:
- Around line 94-105: Update the Classify failure step so its fallback branch
classifies any unhandled failure as infrastructure rather than none, while
preserving the existing tests/tests-full classification and successful-run
behavior. Ensure earlier install/startup step failures receive
type=infrastructure.
In @.github/workflows/e2e-nightly.yaml:
- Line 23: Update the checkout step using actions/checkout@v4 to disable
persisted credentials by setting persist-credentials to false; if the job has no
other need for repository files, remove the checkout step instead.
- Around line 8-10: Move the issues: write and actions: read permissions from
the workflow-level configuration into the create-issue job, leaving the e2e job
without those elevated permissions while preserving the create-issue job’s
access for gh issue, gh label, and artifact download operations.
🪄 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: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 0733fc1d-642b-4b75-be1c-a5de4f7b30da
📒 Files selected for processing (3)
.github/workflows/e2e-common.yaml.github/workflows/e2e-nightly.yamle2e/playwright.config.ts
Summary
infrastructure(setup/cluster) ortest(playwright) and labels accordinglyChanges
e2e-nightly.yaml—create-issuejob files issues labellednightly-failure/nightly-infrastructure+e2ee2e-common.yaml— added failure classification output (infrastructurevstestvsnone) and JSON results artifact uploade2e/playwright.config.ts— added JSON reporter for machine-readable test resultsVerification
Tested on fork with a deliberate failing test:
Test plan
workflow_dispatchand verify the workflow runs successfullyCloses #586
Summary by CodeRabbit
New Features
Bug Fixes