-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Store screenshots of CI e2e failures as CI artifacts #26664
Conversation
Size Change: +174 B (0%) Total Size: 1.19 MB
ℹ️ View Unchanged
|
This would be great. Any thoughts on the best way to handle storing the images? Committing image files in git usually isn't a great option. I think I remember seeing that github can work with git-lfs, which might be an option, not sure if there's a cost involved: edit: commented too soon, I see this is using artifacts. |
@talldan yup I'm trying artifacts for the first pass, I'm open to other options as well. For now I'm just trying it to take the screenshots, somehow the obvious solutions don't seem to work. |
11a7597
to
21f4d35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is amazing!!! I was curious, have we looked into storing screen recordings as well?
At any rate, I'll approve it from my point of view since I don't see anything out of place and this will be very helpful. Just left some nitpicks about the promises
} | ||
|
||
/** | ||
* @copyright Tom Esterez (@testerez) https://github.com/smooth-code/jest-puppeteer/issues/131#issuecomment-424073620 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, also any concerns about copyright or licensing here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After your review I ended up starting from scratch so probably not, however there is still a degree of inspiration so I believe an acknowledgement note would be a nice thing to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CC @testerez - your idea from argos-ci/jest-puppeteer#131 (comment) is pretty awesome and inspired this PR, we would like to include an acknowledgement note - thoughts? :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Appreciate it, thanks!
Thanks for doing this! ❤️ What do you think about dumping |
Really cool, going to be amazingly helpful. Props! |
21f4d35
to
c9d9da5
Compare
@noisysocks I added capturing HTML snapshots :-) |
c9d9da5
to
42c60da
Compare
42c60da
to
d0e4737
Compare
This is awesome, great addition @adamziel. Major props 💯 |
@ellatrix I think what's missing is the setup bit, note how e2e tests use jest.config.js:
while performance tests don't:
I followed the trail of calls, and it seems like the command that executes these tests is:
which makes me believe adding the following line to
|
@adamziel Thanks! I think I added it correctly here? https://github.com/WordPress/gutenberg/pull/25775/files#diff-099a51d6bcb1f9eae0b587c6857bf79827750ae3dc210db79d736f65b6abc165 |
Description
This PR updates e2e testing workflow to ensure test failures are captured on screenshots for easier debugging.
Testing instructions
This PR purposefully breaks a test to trigger screenshot capture. To see if it works, go to e2e test failures and confirm you can see the following artifact: