CONSOLE-5306: Surface Playwright report link in Prow Spyglass#16743
CONSOLE-5306: Surface Playwright report link in Prow Spyglass#16743rhamilto wants to merge 2 commits into
Conversation
- Derive the ci-operator step name from JOB_NAME to build a direct URL to the Playwright HTML report instead of using a wildcard that doesn't resolve in a browser. - Write a custom-link-playwright-report.html artifact so the Spyglass html lens renders a clickable link on the Prow job page. - Ensure failure elements always have text content to prevent the Spyglass JUnit lens from rendering <nil>. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@rhamilto: This pull request references CONSOLE-5306 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
WalkthroughThe Playwright JUnit reporter now derives step-specific report links from CI variables, writes a custom HTML link next to JUnit output, normalizes empty failure text, and the integration test script copies the standard JUnit report under a new artifact name. ChangesPlaywright reporting updates
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 14 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (14 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/test e2e-playwright |
1 similar comment
|
/test e2e-playwright |
18e47da to
e4d6034
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
frontend/integration-tests/test-playwright-e2e.sh (1)
117-118: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low valueAlign the artifact naming convention.
playwright-standard-junit.xmlis the only filename here that uses the*-junitsuffix, while the sibling artifact still uses thejunit-*prefix. Keeping both on one convention would make the artifact set easier to scan.🤖 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 `@frontend/integration-tests/test-playwright-e2e.sh` around lines 117 - 118, The artifact naming in the Playwright test script is inconsistent because the standard JUnit file uses a different naming pattern than the sibling artifact. Update the copy target in the test-results handling block of the shell script so it follows the same convention as the other JUnit artifact, and keep the echoed message in sync with the new filename.
🤖 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.
Nitpick comments:
In `@frontend/integration-tests/test-playwright-e2e.sh`:
- Around line 117-118: The artifact naming in the Playwright test script is
inconsistent because the standard JUnit file uses a different naming pattern
than the sibling artifact. Update the copy target in the test-results handling
block of the shell script so it follows the same convention as the other JUnit
artifact, and keep the echoed message in sync with the new filename.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: 27b5d73b-0728-41dc-8b14-c53485cf6290
📒 Files selected for processing (2)
frontend/e2e/reporters/prow-junit-reporter.tsfrontend/integration-tests/test-playwright-e2e.sh
🚧 Files skipped from review as they are similar to previous changes (1)
- frontend/e2e/reporters/prow-junit-reporter.ts
|
/test e2e-playwright |
- Remove explicit copy of custom-link HTML to $ARTIFACT_DIR since the bulk test-results copy already places it where the Spyglass html lens regex matches, causing a duplicate section. - Add padding and pink link color to match the Prow Spyglass theme. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
/test e2e-playwright |
|
/test e2e-gcp-console |
|
@rhamilto: This PR has been marked as verified by DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto 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 |
|
@rhamilto: This pull request references CONSOLE-5306 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
@rhamilto: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Analysis / Root cause:
The Playwright HTML report URL printed in CI logs used a wildcard (
*) for the ci-operator step name, which doesn't resolve in a browser. Additionally, the Spyglass JUnit lens renders<nil>for failed tests that have no error details (e.g. tests that never executed due to a prior timeout). Prow Spyglass also showed duplicate Flaky Tests and Failed Tests sections because JUnit XML files in the bulk-copiedplaywright-test-results/subdirectory were being picked up alongside the intended top-leveljunit-playwright.xml.Solution description:
JOB_NAMEandPULL_BASE_REFto build a direct, resolvable URL to the Playwright HTML report.custom-link-playwright-report.htmlartifact that the Spyglasshtmllens renders as a clickable link on the Prow job page.<failure>elements always have text content to prevent the Spyglass JUnit lens from rendering<nil>.junit-playwright-standard.xmltoplaywright-standard-junit.xmlso it doesn't match Prow'sjunit*.xmlglob.*.xmlfiles from the bulkplaywright-test-results/copy to prevent Prow from recursively discovering duplicate JUnit files.font-size: 14pxandcolor: #ff9999.Screenshots / screen recording:
Screen.Recording.2026-07-09.at.9.04.39.PM.mov
Test setup:
Changes only affect CI reporter output. Verify on the next Prow Playwright job run.
Test cases:
playwright-report/index.html<nil>playwright-test-results/subdirectory)Browser conformance:
Additional info:
N/A
Reviewers and assignees: