-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V2] When a test fail, a retry from gitlab didn't stop the job #475
Comments
It's because the director service considers this spec as already executed, so it doesn't send it to any runner with the same ci-build-id. Otherwise, other workers/test runners would constantly retry the failed tests. The workaround for this is to reset the failed spec file from the dashboard and then retry the job - the failed spec is then considered ready to run and will be picked up by the retried job. I'm not sure how it could work out-of-box. Director would have to know that the retried job wants to pick up only failed jobs. However, I'm not aware of any way to differentiate a standard GitLab job from a retried one. I think that Cypress dashboard is struggling with the same issue, especially if you look at this question https://forum.gitlab.com/t/get-unique-environment-variable-to-detect-a-retry-of-job/32520 asked by Cypress.io maintainer. I'd love to see any automated process to retry the failed tests when the GitLab job is retried but I doubt that such exists. |
Check out the last note on https://currents.dev/readme/concepts/cypress-ci-build-id#how-retrying-a-build-affects-ci-build-id |
@bastienmoulia @agoldis for GitLab you can vote for https://gitlab.com/gitlab-org/gitlab/-/issues/195618 With such a variable, the director service could have a function to register what jobs are initial workers for the test run and differentiate them from the retried jobs where failed tests could be re-run. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
Summary
Sorry cypress don't failed when there is no new tests to run and there is one that already failed
How to reproduce
Relevant logs / screenshots
Logs of the Retry:
![image](https://user-images.githubusercontent.com/686196/140491558-66af988a-287d-4efc-b154-b30e9b728bac.png)
Environment
latest
8.6
docker
all
The text was updated successfully, but these errors were encountered: