【问题标题】:Re-run Cypress test in Github Actions does not work在 Github Actions 中重新运行 Cypress 测试不起作用
【发布时间】:2022-08-04 22:53:16
【问题描述】:

我在 Github 中有一个 cypress 工作流程,它运行良好。但是,当 e2e 测试由于某种原因失败并且我想使用 re-run all jobs 按钮(如下)重新运行它们时,会出现以下消息:

The run you are attempting to access is already complete and will not accept new groups.

The existing run is: https://dashboard.cypress.io/projects/abcdef/runs

When a run finishes all of its groups, it waits for a configurable set of time before finally completing. You must add more groups during that time period.

The --tag flag you passed was: 
The --group flag you passed was: core

我应该对我的配置进行哪些更改才能使这些成为可能?有时,e2e 会因为稍后修复的后端错误而失败。

我想这样做而不是 force e2e 提交。

    标签: continuous-integration cypress github-actions


    【解决方案1】:

    我以前也面临同样的问题。 我认为您可以尝试传递 GITHUB_TOKEN 或添加自定义构建 ID。它解决了我的问题。希望它有帮助。 https://github.com/cypress-io/github-action#custom-build-id

    【讨论】:

      【解决方案2】:

      检查您的 Cypress Dashboard 订阅计划。我的免费计划已满(500 次免费测试,我在 3 个不同的浏览器中运行 57 次测试,所以它很快就满了,因为这是一次运行 171 次测试),之后它不允许我继续运行更多平行测试。测试继续运行,但在第一个浏览器中的 4 台机器中的 1 台机器和其他 2 个浏览器的阶段开始失败,我能够通过在配置中传递 continueOnError: true 来允许 CI 不失败

      【讨论】:

        猜你喜欢
        • 2021-11-15
        • 1970-01-01
        • 2020-03-24
        • 1970-01-01
        • 2019-10-19
        • 2021-03-20
        • 1970-01-01
        • 2021-06-25
        • 2022-11-06
        相关资源
        最近更新 更多