Merged
Conversation
f17761d to
7e1c182
Compare
Collaborator
Author
theengineear
commented
Mar 1, 2025
| timeout: 10000, | ||
| // opt-in to the new Chrome headless implementation | ||
| // ref: https://developer.chrome.com/articles/new-headless/ | ||
| headless: 'new', |
Collaborator
Author
There was a problem hiding this comment.
I think this setting is outdated now?
theengineear
commented
Mar 1, 2025
| args: [ | ||
| // Disables interactive prompt: Do you want to the application Chromium.app to accept incoming network connections? | ||
| // ref: https://github.com/puppeteer/puppeteer/issues/4752#issuecomment-586599843 | ||
| '--disable-features=DialMediaRouteProvider', |
Collaborator
Author
There was a problem hiding this comment.
I checked the linked issue and it seemed like it was closed.
theengineear
commented
Mar 1, 2025
| ], | ||
| // These args fix “Error: Failed to launch the browser process!” when | ||
| // run in GitHub. We are only running our own code here, so this is ok. | ||
| args: ['--no-sandbox', '--disable-setuid-sandbox'], |
Collaborator
Author
There was a problem hiding this comment.
Would love a cross-check on this one. I think this is what we need to do now in GitHub based on our settings?
Collaborator
Author
|
@klebba — Would you mind taking a look at this? |
theengineear
added a commit
that referenced
this pull request
Mar 1, 2025
See #272 for a discussion on our tests in GH.
theengineear
added a commit
that referenced
this pull request
Mar 1, 2025
See #272 for a discussion on our tests in GH.
7e1c182 to
7b08ace
Compare
Collaborator
Author
|
Back to passing now that underlying tests are actually fixed (versus just not running at all). |
Previously, the tests weren’t actually being run by GitHub actions for some time now. They would run locally, but the browser would silently fail to launch in GitHub when the action was run. Additionally, we now “Bail out!” within “test.js” if any exceptions are caught — these are magic words that our TAP parser will recognize and they instruct the parser to immediately consider the test a failure.
7b08ace to
e35fec0
Compare
theengineear
commented
Mar 6, 2025
| } catch (err) { | ||
| // Ensure that we “Bail out!” (see TAP specification) if script fails. Note | ||
| // that the tap stream is being read on stdout. | ||
| console.log('Bail out!'); // eslint-disable-line no-console |
Collaborator
Author
There was a problem hiding this comment.
FYI @klebba — we should bake this sort of thing into all our test.js files across projects.
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



Previously, the tests weren’t actually being run by GitHub actions for some time now. They would run locally, but the browser would silently fail to launch in GitHub when the action was run.
Additionally, we now “Bail out!” within “test.js” if any exceptions are caught — these are magic words that our TAP parser will recognize and they instruct the parser to immediately consider the test a failure.