test: enable videos on tracing bots (#3930)
This commit is contained in:
parent
e15ac44ead
commit
fe41bbd303
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
|
|
@ -207,7 +207,7 @@ jobs:
|
||||||
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
# XVFB-RUN merges both STDOUT and STDERR, whereas we need only STDERR
|
||||||
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
# Wrap `npm run` in a subshell to redirect STDERR to file.
|
||||||
# Enable core dumps in the subshell.
|
# Enable core dumps in the subshell.
|
||||||
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx test-runner test/ --jobs=1 --forbid-only --timeout=30000 --global-timeout=5400000 --retries=3 --reporter=dot,json"
|
- run: xvfb-run --auto-servernum --server-args="-screen 0 1280x960x24" -- bash -c "ulimit -c unlimited && npx test-runner test/ --jobs=1 --forbid-only --timeout=60000 --global-timeout=5400000 --retries=3 --reporter=dot,json"
|
||||||
env:
|
env:
|
||||||
BROWSER: ${{ matrix.browser }}
|
BROWSER: ${{ matrix.browser }}
|
||||||
TRACING: true
|
TRACING: true
|
||||||
|
|
|
||||||
|
|
@ -278,9 +278,7 @@ defineTestFixture('context', async ({ browser, testOutputDir, testConfig }, runT
|
||||||
const contextOptions: BrowserContextOptions = {
|
const contextOptions: BrowserContextOptions = {
|
||||||
relativeArtifactsPath: path.relative(testConfig.outputDir, testOutputDir),
|
relativeArtifactsPath: path.relative(testConfig.outputDir, testOutputDir),
|
||||||
recordTrace: !!options.TRACING,
|
recordTrace: !!options.TRACING,
|
||||||
// TODO: enable videos. Currently, long videos are slowly processed by Chromium
|
recordVideos: !!options.TRACING,
|
||||||
// and (sometimes) Firefox, which causes test timeouts.
|
|
||||||
// recordVideos: !!options.TRACING,
|
|
||||||
};
|
};
|
||||||
const context = await browser.newContext(contextOptions);
|
const context = await browser.newContext(contextOptions);
|
||||||
await runTest(context);
|
await runTest(context);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue