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
17adc242
Unverified
Commit
17adc242
authored
Oct 27, 2021
by
JJ Kasper
Committed by
GitHub
Oct 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update test traces to only run on retry (#30459)
parent
00c53d63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
run-tests.js
run-tests.js
+14
-12
No files found.
run-tests.js
View file @
17adc242
...
...
@@ -228,7 +228,7 @@ async function main() {
)
const
children
=
new
Set
()
const
runTest
=
(
test
=
''
,
usePolling
,
isFinalRun
)
=>
const
runTest
=
(
test
=
''
,
isFinalRun
)
=>
new
Promise
((
resolve
,
reject
)
=>
{
const
start
=
new
Date
().
getTime
()
let
outputChunks
=
[]
...
...
@@ -250,16 +250,18 @@ async function main() {
...
process
.
env
,
// run tests in headless mode by default
HEADLESS
:
'true'
,
TRACE_PLAYWRIGHT
:
'true'
,
// ...(usePolling
// ? {
// // Events can be finicky in CI. This switches to a more
// // reliable polling method.
// CHOKIDAR_USEPOLLING: 'true',
// CHOKIDAR_INTERVAL: 500,
// WATCHPACK_POLLING: 500,
// }
// : {}),
...(
isFinalRun
?
{
// only trace on final run as previous traces
// are removed anyways
TRACE_PLAYWRIGHT
:
'true'
,
// Events can be finicky in CI. This switches to a more
// reliable polling method.
// CHOKIDAR_USEPOLLING: 'true',
// CHOKIDAR_INTERVAL: 500,
// WATCHPACK_POLLING: 500,
}
:
{}),
},
}
)
...
...
@@ -330,7 +332,7 @@ async function main() {
for
(
let
i
=
0
;
i
<
numRetries
+
1
;
i
++
)
{
try
{
console
.
log
(
`Starting
${
test
}
retry
${
i
}
/
${
numRetries
}
`
)
const
time
=
await
runTest
(
test
,
i
>
0
,
i
===
numRetries
)
const
time
=
await
runTest
(
test
,
i
===
numRetries
)
timings
.
push
({
file
:
test
,
time
,
...
...
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