-
Notifications
You must be signed in to change notification settings - Fork 230
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
feat: support node 16; also test with node 15, drop testing of node 13 #2055
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ce31964
feat: support node 16; also test with node 15, drop testing of node 13
trentm a151e84
enable node 16/15 testing for the GH Actions tests as well
trentm d6a4085
Merge branch 'master' into trentm/node16
trentm c06f853
ensure OpenSSL SECLEVEL=0 for tests, required for http2.js test to pa…
trentm b621866
fix hang with POST-handler + @hapi/[email protected] + node v16; we can just …
trentm c0b8ad5
switching to hapi@20 means we need to skip out of hapi tests for node…
trentm 672a72a
avoid the openssl-config fix in NODE_OPTIONS for node v8 because of o…
trentm 94ce459
fix breakage
trentm 563bda1
yet another place to check hapi versions for skipping
trentm 80ea59f
correct that hapi package version check
trentm 7793282
correct this bash test
trentm dd960d6
fix logic for --openssl-config in NODE_OPTIONS; rejigger hapi compat …
trentm 6748685
tyops
trentm 7d8e67c
correct tav config for my test file renamings (serves me right)
trentm 5aa0889
Merge branch 'master' into trentm/node16
trentm 4430f84
Merge branch 'master' into trentm/node16
astorm 0e04422
Use the common hapi-version-compat check in this test case as well.
trentm 38eea4b
Add a changelog entry
trentm File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
NODEJS_VERSION: | ||
- "16" | ||
- "15" | ||
- "14" | ||
- "13" | ||
- "12" | ||
- "10" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
NODEJS_VERSION: | ||
- "16" | ||
- "16.0" | ||
- "15" | ||
- "14" | ||
- "14.0" | ||
- "13" | ||
- "12" | ||
- "12.0" | ||
- "10" | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
NODEJS_VERSION: | ||
- "16" | ||
- "15" | ||
- "14" | ||
- "13" | ||
- "12" | ||
- "10" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
NODEJS_VERSION: | ||
- "16" | ||
- "15" | ||
- "14" | ||
- "13" | ||
- "12" | ||
- "10" | ||
- "8" |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
package-lock=false | ||
|
||
# Workaround unresolvable peerDependencies between express-graphql, graphql, | ||
# and apollo-server-express. npm v7 (included with node v15) makes these | ||
# peerDependencies issues an install error. Until the community catches up | ||
# and resolves peerDependencies issues or apm-agent-nodejs.git's tests are | ||
# setup to not have competing deps in "devDependencies", we revert to the | ||
# pre-v7 behavior. | ||
# https://docs.npmjs.com/cli/v7/using-npm/config#legacy-peer-deps | ||
legacy-peer-deps=true |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use strict' | ||
|
||
var semver = require('semver') | ||
|
||
// 'hapi' and '@hapi/hapi' versions have some challenges with compat with | ||
// various versions of node. This method tells you if the current versions | ||
// are incompatible. | ||
function isHapiIncompat (moduleName) { | ||
var hapiVersion = require(`${moduleName}/package.json`).version | ||
|
||
// hapi 17+ requires Node.js 8.9.0 or higher | ||
if (semver.lt(process.version, '8.9.0') && semver.gte(hapiVersion, '17.0.0')) { | ||
return true | ||
} | ||
// hapi 19+ requires Node.js 12 or higher | ||
if (semver.lt(process.version, '12.0.0') && semver.gte(hapiVersion, '19.0.0')) { | ||
return true | ||
} | ||
|
||
// hapi does not work on early versions of Node.js 10 because of | ||
// https://github.com/nodejs/node/issues/20516 | ||
// | ||
// NOTE: Do not use semver.satisfies, as it does not match prereleases | ||
var parsed = semver.parse(process.version) | ||
if (parsed.major === 10 && parsed.minor >= 0 && parsed.minor < 8) { | ||
return true | ||
} | ||
|
||
return false | ||
} | ||
|
||
module.exports = isHapiIncompat |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# An OpenSSL config to provide to node for test runs. | ||
# | ||
# This sets the OpenSSL security level (SECLEVEL) to 0. The | ||
# "http2.createSecureServer()" tests in test/instrumentation/modules/http2.js | ||
# fail if SECLEVEL=2, which it is in some environments, e.g. the "node:16" | ||
# docker image. | ||
# | ||
# Based on https://github.com/nodejs/node/issues/36655 | ||
|
||
openssl_conf = openssl_init | ||
|
||
[openssl_init] | ||
ssl_conf = ssl_sect | ||
|
||
[ssl_sect] | ||
system_default = system_default_sect | ||
|
||
[system_default_sect] | ||
CipherString = DEFAULT:@SECLEVEL=0 |
Oops, something went wrong.
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.
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.
The "POST" handler test in test/instrumentation/modules/hapi.js hangs with
@hapi/[email protected]
and node 16. Let's just move to testing with the latest hapi (which does mean only testing with node v12 and later). The TAV tests cover the rest.