Skip to content

Upload test failure artifacts in CI#3998

Merged
nstepien merged 10 commits intomainfrom
ciartifacts
Mar 10, 2026
Merged

Upload test failure artifacts in CI#3998
nstepien merged 10 commits intomainfrom
ciartifacts

Conversation

@nstepien
Copy link
Copy Markdown
Collaborator

@nstepien nstepien commented Mar 9, 2026

No description provided.

@nstepien nstepien self-assigned this Mar 9, 2026
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 9, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.41%. Comparing base (5e1ac44) to head (7f12e6c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3998   +/-   ##
=======================================
  Coverage   97.41%   97.41%           
=======================================
  Files          37       37           
  Lines        1470     1470           
  Branches      471      471           
=======================================
  Hits         1432     1432           
  Misses         38       38           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@nstepien nstepien marked this pull request as ready for review March 10, 2026 02:28
@nstepien nstepien requested a review from amanmahajan7 as a code owner March 10, 2026 02:28
@nstepien nstepien changed the title Upload test failure screenshots and traces in CI Upload test failure artifacts in CI Mar 10, 2026
Comment thread .github/workflows/ci.yml
with:
name: test-artifacts
path: |
test/browser/**/__screenshots__/**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we add visual screenshots and failed screenshots in the same directory? Wonder if we should change screenshotDirectory for browser tests? I think we may have to upload https://vitest.dev/guide/cli.html#attachmentsdir. Can you check if the diff screenshots are uploaded

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we add visual screenshots and failed screenshots in the same directory?

This only captures screenshots from failed tests (test/browser), this won't upload screenshots from visual tests (tests/visual).

Wonder if we should change screenshotDirectory for browser tests?

No need, we can already target them with the test/browser path.

I think we may have to upload https://vitest.dev/guide/cli.html#attachmentsdir

Done

Can you check if the diff screenshots are uploaded

It does now.
https://github.com/Comcast/react-data-grid/actions/runs/22916570893/artifacts/5855351059

@nstepien nstepien requested a review from amanmahajan7 March 10, 2026 18:09
Comment thread .github/workflows/ci.yml
name: test-artifacts
path: |
test/browser/**/__screenshots__/**
test/browser/**/__traces__/**
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test/browser/**/__traces__/**

Do we generate traces?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not. I kept it in case we ever want to enable and debug them.

@nstepien nstepien merged commit cffce82 into main Mar 10, 2026
2 checks passed
@nstepien nstepien deleted the ciartifacts branch March 10, 2026 20:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants