Skip to content
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

Feat/fixup e2e test #5122

Merged
merged 1 commit into from
Dec 12, 2024
Merged

Feat/fixup e2e test #5122

merged 1 commit into from
Dec 12, 2024

Conversation

johnrwatson
Copy link
Contributor

@johnrwatson johnrwatson commented Dec 12, 2024

I'm unclear why, but this
if: ${{ failure() && github.ref == 'refs/heads/main' }}

Was not triggering if there was a failure on main, nor when I changed it to my branch did it fire correctly. I tried both conditions individually, and they both fired correctly, so something about the && not being honoured correctly with a failure condition within the github workflow.

As a workaround I've moved the comparison logic for both e2e tests for branch into the shell, which should evaluate more accurately.

NB: the other comparison
if: ${{ failure() && env.last_exit_code == '53' }}
has the same bug

@github-actions github-actions bot added the A-ci Area: CI configuration files and scripts label Dec 12, 2024
@johnrwatson johnrwatson marked this pull request as ready for review December 12, 2024 22:13
@johnrwatson johnrwatson added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit bae71c3 Dec 12, 2024
13 of 23 checks passed
@johnrwatson johnrwatson deleted the feat/fixup-e2e-test branch December 12, 2024 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ci Area: CI configuration files and scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants