example-recording reports wrong status if parallel job fails
MikeMcC399 opened this issue ยท comments
Current
The example-recording.yml workflow passes back a success status to GitHub in the parallel
job whether or not the Cypress tests from the project examples/recording pass or fail.
This shows as inconsistent status reporting:
Desired
The example-recording.yml should pass back a status to GitHub from the parallel
job that correctly reflects the pass or fail status from running tests against Cypress project examples/recording.
Steps to reproduce
- Modify examples/recording/cypress/e2e/spec-a.cy.js to introduce a deliberate failure condition by adding the following to the test spec:
assert.fail('This is a deliberate error')
-
Manually trigger a run of workflows/example-recording.yml by clicking on "Run workflow".
-
After the workflow run has completed examine the logs and note that the
group
job has failed, whereas bothparallel (1)
andparallel (2)
are marked with a green tick as though they had passed. In the Annotation section it shows that one of theparallel
jobs failed, so the reported status is inconsistent.
Suggestion
Remove continue-on-error: true
from example-recording.yml which causes the Cypress error to be ignored. (See jobs.<job_id>.steps[*].continue-on-error.)
github-action/.github/workflows/example-recording.yml
Lines 58 to 60 in 36589a7
Add if: always()
to the parallel
job, into the step with the name "Print Cypress Cloud URL". (See jobs.<job_id>.steps[*].if.)
๐ This issue has been resolved in version 6.6.1 ๐
The release is available on:
Your semantic-release bot ๐ฆ๐