Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
239471c8
Unverified
Commit
239471c8
authored
Jan 19, 2026
by
Hendrik Liebau
Committed by
GitHub
Jan 19, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci] Exclude `test/production` from deploy tests (#88763)
parent
97532172
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
13 deletions
+19
-13
get-changed-tests.mjs
scripts/get-changed-tests.mjs
+9
-6
test-new-tests.mjs
scripts/test-new-tests.mjs
+9
-3
deploy-tests-manifest.json
test/deploy-tests-manifest.json
+1
-4
No files found.
scripts/get-changed-tests.mjs
View file @
239471c8
...
@@ -17,7 +17,7 @@ export default async function getChangedTests() {
...
@@ -17,7 +17,7 @@ export default async function getChangedTests() {
if
(
isCanary
)
{
if
(
isCanary
)
{
console
.
log
(
`Skipping flake detection for canary`
)
console
.
log
(
`Skipping flake detection for canary`
)
return
{
devTests
:
[],
prodTests
:
[]
}
return
{
devTests
:
[],
prodTests
:
[]
,
deployTests
:
[]
}
}
}
const
diffRevision
=
await
getDiffRevision
()
const
diffRevision
=
await
getDiffRevision
()
...
@@ -44,6 +44,7 @@ export default async function getChangedTests() {
...
@@ -44,6 +44,7 @@ export default async function getChangedTests() {
// and if any fail it's flakey
// and if any fail it's flakey
const
devTests
=
[]
const
devTests
=
[]
const
prodTests
=
[]
const
prodTests
=
[]
const
deployTests
=
[]
for
(
let
file
of
changedFiles
)
{
for
(
let
file
of
changedFiles
)
{
// normalize slashes
// normalize slashes
...
@@ -54,10 +55,11 @@ export default async function getChangedTests() {
...
@@ -54,10 +55,11 @@ export default async function getChangedTests() {
.
catch
(()
=>
false
)
.
catch
(()
=>
false
)
if
(
fileExists
&&
file
.
match
(
/^test
\/
.*
?\.
test
\.(
js|ts|tsx
)
$/
))
{
if
(
fileExists
&&
file
.
match
(
/^test
\/
.*
?\.
test
\.(
js|ts|tsx
)
$/
))
{
if
(
if
(
file
.
startsWith
(
'test/e2e/'
))
{
file
.
startsWith
(
'test/e2e/'
)
||
devTests
.
push
(
file
)
file
.
startsWith
(
'test/integration/'
)
prodTests
.
push
(
file
)
)
{
deployTests
.
push
(
file
)
}
else
if
(
file
.
startsWith
(
'test/integration/'
))
{
devTests
.
push
(
file
)
devTests
.
push
(
file
)
prodTests
.
push
(
file
)
prodTests
.
push
(
file
)
}
else
if
(
file
.
startsWith
(
'test/prod'
))
{
}
else
if
(
file
.
startsWith
(
'test/prod'
))
{
...
@@ -74,11 +76,12 @@ export default async function getChangedTests() {
...
@@ -74,11 +76,12 @@ export default async function getChangedTests() {
{
{
devTests
,
devTests
,
prodTests
,
prodTests
,
deployTests
,
},
},
null
,
null
,
2
2
)
)
)
)
return
{
devTests
,
prodTests
,
commitSha
}
return
{
devTests
,
prodTests
,
deployTests
,
commitSha
}
}
}
scripts/test-new-tests.mjs
View file @
239471c8
...
@@ -41,9 +41,15 @@ async function main() {
...
@@ -41,9 +41,15 @@ async function main() {
/** @type import('execa').Options */
/** @type import('execa').Options */
const
EXECA_OPTS_STDIO
=
{
...
EXECA_OPTS
,
stdio
:
'inherit'
}
const
EXECA_OPTS_STDIO
=
{
...
EXECA_OPTS
,
stdio
:
'inherit'
}
const
{
devTests
,
prodTests
,
commitSha
}
=
await
getChangedTests
()
const
{
devTests
,
prodTests
,
deployTests
,
commitSha
}
=
await
getChangedTests
()
let
currentTests
=
testMode
===
'dev'
?
devTests
:
prodTests
let
currentTests
=
testMode
===
'dev'
?
devTests
:
testMode
===
'deploy'
?
deployTests
:
prodTests
/**
/**
@type {Array<string[]>}
@type {Array<string[]>}
...
...
test/deploy-tests-manifest.json
View file @
239471c8
...
@@ -46,10 +46,7 @@
...
@@ -46,10 +46,7 @@
}
}
},
},
"rules"
:
{
"rules"
:
{
"include"
:
[
"include"
:
[
"test/e2e/**/*.test.{t,j}s{,x}"
],
"test/e2e/**/*.test.{t,j}s{,x}"
,
"test/production/**/*.test.{t,j}s{,x}"
],
"exclude"
:
[
"exclude"
:
[
"test/e2e/cancel-request/stream-cancel.test.ts"
,
"test/e2e/cancel-request/stream-cancel.test.ts"
,
"test/e2e/new-link-behavior/material-ui.test.ts"
,
"test/e2e/new-link-behavior/material-ui.test.ts"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment