Skip to content
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

add node 20 to e2e test pipeline #2106

Merged
merged 12 commits into from
May 8, 2024
Merged

add node 20 to e2e test pipeline #2106

merged 12 commits into from
May 8, 2024

Conversation

djskinner
Copy link
Contributor

No description provided.

Copy link

github-actions bot commented Mar 28, 2024

@bugsnag/browser bundle size diff

Minified Minfied + Gzipped
Before 44.83 kB 13.67 kB
After 44.83 kB 13.67 kB
± No change No change

code coverage diff

<temporarily disabled>

Generated by 🚫 dangerJS against 7cb9c46

@@ -1,7 +1,7 @@
{
"name": "bugsnag-test",
"dependencies": {
"restify": "^7.2.1",
"restify": "^11.1.0",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

works on node 18 and 20 but no longer on node 12

@@ -29,15 +29,15 @@ server.use(function (req, res, next) {
next()
})

server.get('/', function (req, res) {
server.get('/', function (req, res, next) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fix these runtime errors:

AssertionError [ERR_ASSERTION]: Handler [handler-1 on GET /sync/:message] is missing a third argument (the "next" callback) but is not an async function. Middleware handlers can be either async/await or callback-based.Callback-based (non-async) handlers should accept three arguments: (req, res, next). Async handler functions should accept maximum of 2 arguments: (req, res).

@@ -1,4 +1,4 @@
@skip_node_18
@skip_node_12
Copy link
Contributor Author

Choose a reason for hiding this comment

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

new restify version doesn't work on 12 because of a syntax error:

/Users/dan.skinner/bugsnag-js/test/node/features/fixtures/restify/node_modules/sonic-boom/index.js:393
    cb?.()

Comment on lines +16 to +17
optimization: {
minimize: false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

any version of webpack 4 on node 20 fails with Error message "error:0308010C:digital envelope routines::unsupported" to do with changes to lib ssl version being used by an older version of the terser plugin that comes with webpack. To work around this just disable minification as it's not necessary for our testing

@djskinner djskinner marked this pull request as ready for review May 2, 2024 10:05
@@ -1,4 +1,4 @@
@skip_node_18
Copy link
Contributor Author

Choose a reason for hiding this comment

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

18 was failing for the same reason as 20 (restify needed bumping) and it had been disabled a while back with the intention of coming back and fixing it, but that was forgotten about until now

Copy link
Member

@gingerbenw gingerbenw left a comment

Choose a reason for hiding this comment

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

looks good to me - while we're skipping node 12 in a few places, is this a good time to raise whether we actually should still support it @tomlongridge ? I believe it went out of support in April 2022

@djskinner djskinner merged commit 87ef8a8 into integration/v8 May 8, 2024
43 of 51 checks passed
@djskinner djskinner deleted the test-on-node-20 branch May 8, 2024 09:03
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.

2 participants