Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Bump Node to
v18.18.1
; Remove puppeteer #7274Bump Node to
v18.18.1
; Remove puppeteer #7274Changes from all commits
9a67186
908fbd9
d606b47
b89e5fe
7514cd8
4252d88
3820f9b
1012b27
06b46b0
5f8b874
6d01521
9e04999
509b13e
fd1dea9
b532bea
66526b8
4edbee5
01c7bce
72cd3cb
1bcd40f
e24cb34
9d5cb93
04e4d16
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
I removed the command to call our older Puppeteer tests to run a11y checks against the docs pages. I haven't removed the script because it'll be repurposed with Cypress at some point in the future.
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.
I would strongly rather see us rip it all out now (the script file, the
start-test-server-and-a11y-test
script, and the@axe-core/puppeteer
+puppeteer
dependencies.There's honestly very little chance we'll end up using Puppeteer in the future. We'll likely either use Cypress E2E testing directly to test our docs, or we'll use Playwright instead (since Playwright is more lightweight and actually supports M1 machines).
There's virtually no upside to keeping Puppeteer in our dependencies - it causes issues for devs on arm64 machines and it increases CI load times installing a dependency we're not even using.
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.
Puppeteer, script, and deps should be removed now. I wasn't 💯 that the
start-test-server
command in the package.json file was specific to Puppeteer, so it stayed in. Happy to remove it if it seems unnecessary.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.
start-test-server
is specific to puppeteer/the a11y script, please nuke it!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.
I'm also fairly sure we can rip out the
webpack-dev-server
dependency as well once that's gone; the script is the only thing using it. The wins just keep on coming 🎉 💥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.
Yes on
start-test-server
but we'll need to keepwebpack-dev-server
to runyarn start
. Adding it back now as I bump the.nvmrc
.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.
Lol fuck I totally missed that
webpack serve
is powered bywebpack-dev-server
, I just did a basic grep for the package name 🤦 Sorry!!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.
Hey, I missed it too. Adding it back in a jiffy.
This file was deleted.
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.
I'm not confident this change is 1:1 - in particular
-G audio,video
seems potentially odd that we've lost it. Do you mind explaining how/why this works, and also pushing up a Cypress test change to fail deliberately so we can ensure that screenshots/artifacts are still captured?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.
I pulled the commands apart this morning with some help from the Linux man pages. To the best of my understanding we're safe to remove the commands as are. the
-G audio,video
was being used to assign thepptruser
to the audio and video groups to enable audio and video recordings.Cypress does allow video recordings, but the feature is turned off by default. If we want to start video recording in the future, we'd need to add back the
-G audio,video
to thenode
user.I've pushed a commit d606b47 that purposely fails a Cypress test. The
should output a screenshotDocker image captures screenshots and they're uploaded by the Buildkite runner under theArtifacts
tab.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.
Let's do that pre-emptively please. I'd like the ability to quickly set Cypress in CI to emit videos for easier debugging if necessary via
cypress.json
without having to know linux/docker settings or getting confused as to why no videos are being output.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.
Done!