colossal-oxygen-29599
02/08/2023, 11:49 AMvideo: true versus video: false in the cypress config.
Moreover, I'm having a hard time diagnosing/debugging whether the agents are under-resourced, or perhaps the thing slowing down our tests are DNS-resolution/networking errors.
Can anyone advise?
using cypress@12.5.1 with typescript and the following config:
typescript
import registerCypressGrep from '@cypress/grep/src/plugin';
import { defineConfig } from 'cypress';
import dotenvPlugin from 'cypress-dotenv';
// eslint-disable-next-line import/no-default-export
export default defineConfig({
video: false,
trashAssetsBeforeRuns: true,
// numTestsKeptInMemory: 5,
pageLoadTimeout: 60_000,
videoUploadOnPasses: false,
videoCompression: 16,
e2e: {
// eslint-disable-next-line @typescript-eslint/naming-convention
setupNodeEvents(_on, config) {
// implement node event listeners here
config = dotenvPlugin(config, { debug: true }, true);
registerCypressGrep(config);
return config;
},
},
reporter: 'cypress-multi-reporters',
reporterOptions: {
reporterEnabled: 'spec, mocha-junit-reporter',
mochaJunitReporterReporterOptions: {
mochaFile: 'cypress/results/results-[hash].xml',
},
},
});powerful-orange-86819
02/08/2023, 2:14 PMcolossal-oxygen-29599
02/08/2023, 2:27 PMnpm cicolossal-oxygen-29599
02/08/2023, 2:28 PMvideo: true is so much slower than video: falsecolossal-oxygen-29599
02/08/2023, 2:29 PMvideo: true and not balloon our test timescolossal-oxygen-29599
02/08/2023, 2:32 PMcolossal-oxygen-29599
02/08/2023, 2:33 PM[
{
model: 'Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz',
speed: 2593,
times: { user: 98890, nice: 5550, sys: 45210, idle: 2636230, irq: 0 }
},
{
model: 'Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz',
speed: 2593,
times: { user: 102730, nice: 4600, sys: 51960, idle: 2591190, irq: 0 }
},
{
model: 'Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz',
speed: 2593,
times: { user: 98470, nice: 3220, sys: 51790, idle: 2532840, irq: 0 }
},
{
model: 'Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz',
speed: 2593,
times: { user: 102000, nice: 6260, sys: 48390, idle: 2575770, irq: 0 }
}
]colossal-oxygen-29599
02/08/2023, 2:33 PM[41067:0208/143100.569053:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
Displaying Cypress info...
Detected 2 browsers installed:
2. Chromium
- Name: chromium
- Channel: stable
- Version: 102.0.5005.0
- Executable: chromium-browser
Note: to run these browsers, pass <name>:<channel> to the '--browser' field
Examples:
- cypress run --browser chromium
- cypress run --browser chrome
Learn More: https://on.cypress.io/launching-browsers
Proxy Settings: none detected
Environment Variables:
CYPRESS_PROJECT_ID: 3b281n
CYPRESS_RECORD_KEY: <redacted>
Application Data: /home/AzDevOps/.config/cypress/cy/development
Browser Profiles: /home/AzDevOps/.config/cypress/cy/development/browsers
Binary Caches: /home/AzDevOps/.cache/Cypress
Cypress Version: 12.5.1 (stable)
System Platform: linux (Ubuntu - 22.04)
System Memory: 16.8 GB free 15.4 GBcolossal-oxygen-29599
02/08/2023, 2:36 PMvideo: false and 3:37 with video: true. (and often video: true leads to such slow performance, tests fail)miniature-window-79139
03/20/2023, 8:16 PMadventurous-dream-20049
04/03/2023, 10:46 PMadventurous-dream-20049
04/03/2023, 10:49 PMvideo:true requires additional time to compress and process every video. My recommendation would be to remove any video options from your cypress.config and instead add the option to upload video specs conditionally if your team would like to videos of failed/flaky tests:
https://docs.cypress.io/api/plugins/after-spec-api#Delete-the-recorded-video-if-the-spec-passed
https://docs.cypress.io/api/plugins/after-spec-api#Delete-the-recorded-video-if-no-tests-retriedcolossal-oxygen-29599
04/03/2023, 10:50 PMcolossal-oxygen-29599
04/03/2023, 10:51 PMcolossal-oxygen-29599
04/03/2023, 10:52 PMadventurous-dream-20049
04/03/2023, 10:52 PMadventurous-dream-20049
04/03/2023, 10:53 PM