Skip to content

Commit f8bf891

Browse files
committed
ci: cap supported next version to be <15.4.1
The latest version of next, which was just releasd, breaks our CI. Until a proper fix can be implemented, don't test with this version in CI.
1 parent 590bba7 commit f8bf891

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

.github/workflows/apm-integrations.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ jobs:
769769
version:
770770
- 18
771771
- latest
772-
range: ['>=10.2.0 <11', '>=11.0.0 <13', '11.1.4', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0']
772+
range: ['>=10.2.0 <11', '>=11.0.0 <13', '11.1.4', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0 <15.4.1']
773773
include:
774774
- range: '>=10.2.0 <11'
775775
range_clean: gte.10.2.0.and.lt.11
@@ -785,7 +785,7 @@ jobs:
785785
range_clean: gte.14.0.0.and.lte.14.2.6
786786
- range: '>=14.2.7 <15'
787787
range_clean: gte.14.2.7.and.lt.15
788-
- range: '>=15.0.0'
788+
- range: '>=15.0.0 <15.4.1'
789789
range_clean: gte.15.0.0
790790
runs-on: ubuntu-latest
791791
env:

.github/workflows/appsec.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ jobs:
231231
version:
232232
- oldest
233233
- latest
234-
range: ['>=10.2.0 <11', '>=11.0.0 <13', '11.1.4', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0']
234+
range: ['>=10.2.0 <11', '>=11.0.0 <13', '11.1.4', '>=13.0.0 <14', '13.2.0', '>=14.0.0 <=14.2.6', '>=14.2.7 <15', '>=15.0.0 <15.4.1']
235235
include:
236236
- range: '>=10.2.0 <11'
237237
range_clean: gte.10.2.0.and.lt.11
@@ -247,7 +247,7 @@ jobs:
247247
range_clean: gte.14.0.0.and.lte.14.2.6
248248
- range: '>=14.2.7 <15'
249249
range_clean: gte.14.2.7.and.lt.15
250-
- range: '>=15.0.0'
250+
- range: '>=15.0.0 <15.4.1'
251251
range_clean: gte.15.0.0
252252
runs-on: ubuntu-latest
253253
env:

packages/datadog-instrumentations/src/next.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ addHook({
277277

278278
addHook({
279279
name: 'next',
280-
versions: ['>=13'],
280+
versions: ['>=13 <15.4.1'],
281281
file: 'dist/server/web/spec-extension/request.js'
282282
}, request => {
283283
shimmer.wrap(request.NextRequest.prototype, 'nextUrl', function (originalGet) {

packages/datadog-plugin-next/test/index.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ describe('Plugin', function () {
1919
const satisfiesStandalone = version => satisfies(version, '>=12.0.0')
2020

2121
// TODO: Figure out why 10.x tests are failing.
22-
withVersions('next', 'next', '>=11.1', version => {
22+
withVersions('next', 'next', '>=11.1 <15.4.1', version => {
2323
const pkg = require(`../../../versions/next@${version}/node_modules/next/package.json`)
2424

2525
const startServer = ({ withConfig, standalone }, schemaVersion = 'v0', defaultToGlobalService = false) => {

packages/datadog-plugin-next/test/integration-test/client.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('esm', () => {
1616
let proc
1717
let sandbox
1818
// match versions tested with unit tests
19-
withVersions('next', 'next', '>=11.1', version => {
19+
withVersions('next', 'next', '>=11.1 <15.4.1', version => {
2020
before(async function () {
2121
// next builds slower in the CI, match timeout with unit tests
2222
this.timeout(300 * 1000)

packages/dd-trace/test/appsec/index.next.plugin.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('test suite', () => {
1616

1717
const satisfiesStandalone = version => satisfies(version, '>=12.0.0')
1818

19-
withVersions('next', 'next', '>=11.1', version => {
19+
withVersions('next', 'next', '>=11.1 <15.4.1', version => {
2020
if (version === '>=11.0.0 <13' && NODE_MAJOR === 24 &&
2121
NODE_MINOR === 0 && NODE_PATCH === 0) {
2222
return // node 24.0.0 fails, but 24.0.1 works

0 commit comments

Comments
 (0)