Repository navigation
[java] Automatically save screenshots & page sources for failed tests - #16904
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||||
|
Is screenshot something that we can upload from CI or is this just for debugging locally? |
48b5f79 to
71c1e19
Compare
Screenshots will be stored both locally and on GitHub Actions: - name: Upload failed test logs
uses: actions/upload-artifact@v5
with:
name: test-logs-${{ inputs.os }}-${{ inputs.name }}-${{ inputs.browser }}
path: |
build/failures/**
bazel-testlogs/**/*.html
bazel-testlogs/**/*.png |
8bdf741 to
b2cd1a2
Compare
e9dba9d to
32ed852
Compare
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||
just in case, it might help with debugging of flaky tests.
32ed852 to
e0ac8ad
Compare
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||
User description
💥 What does this PR do?
🔄 Types of changes
PR Type
Enhancement, Tests
Description
Automatically save screenshots and page sources on test failures
Display current URL, page title, and artifact links in console
Show test name on blank page before each test execution
Reduce CI test scope and flaky test retry attempts for faster feedback
Diagram Walkthrough
File Walkthrough
3 files
Add test failure artifact capture and loggingInclude test name in blank page URL parameterDisplay test name on blank page with styling4 files
Add failing assertion for testing purposesAdd failing assertion for testing purposesAdd failing assertion for testing purposesAdd failing assertion for testing purposes2 files
Reduce test scope and flaky retry attemptsDisable dotnet, python, ruby, rust CI workflows3 files
Update upload artifact action to v5Update upload artifact action to v5Update upload artifact action to v5