Skip to content

Commit

Permalink
retry video compression in wk
Browse files Browse the repository at this point in the history
  • Loading branch information
flotwig committed Dec 9, 2022
1 parent bc7dbe2 commit 7e59bf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion system-tests/lib/system-tests.ts
Expand Up @@ -55,6 +55,7 @@ export type ItOptions = ExecOptions & {
* If a function is supplied, it will be executed instead of running the `systemTests.exec` function immediately.
*/
onRun?: (
this: Mocha.Context,
execFn: ExecFn,
browser: BrowserName
) => Promise<any> | any
Expand Down Expand Up @@ -528,7 +529,8 @@ const localItFn = function (title: string, opts: ItOptions) {
return systemTests.exec(ctx, _.extend({ originalTitle }, options, overrides, { browser }))
}

return options.onRun(execFn, browser, ctx)
// pass Mocha's this context to onRun
return options.onRun.call(this, execFn, browser, ctx)
})
}

Expand Down
7 changes: 6 additions & 1 deletion system-tests/test/video_compression_spec.js
Expand Up @@ -49,7 +49,12 @@ describe('e2e video compression', () => {
MS_PER_TEST,
},
},
async onRun (exec) {
async onRun (exec, browserName) {
if (browserName === 'webkit') {
// TODO(webkit): fix video recording flake in webkit
this.retries(15)
}

process.env.VIDEO_COMPRESSION_THROTTLE = 10

const { stdout } = await exec()
Expand Down

5 comments on commit 7e59bf9

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7e59bf9 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/linux-arm64/retry-flake-7e59bf92f3a3dc143f1f51ab7341ce5f6c7247ad/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7e59bf9 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/linux-x64/retry-flake-7e59bf92f3a3dc143f1f51ab7341ce5f6c7247ad/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7e59bf9 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/darwin-x64/retry-flake-7e59bf92f3a3dc143f1f51ab7341ce5f6c7247ad/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7e59bf9 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/darwin-arm64/retry-flake-7e59bf92f3a3dc143f1f51ab7341ce5f6c7247ad/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 7e59bf9 Dec 9, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/12.1.0/win32-x64/retry-flake-7e59bf92f3a3dc143f1f51ab7341ce5f6c7247ad/cypress.tgz

Please sign in to comment.