Skip to content

tests: AllOf failing immediately if fail-fast#5673

Merged
phisco merged 1 commit into
crossplane:masterfrom
phisco:all-of-fail-fast
May 14, 2024
Merged

tests: AllOf failing immediately if fail-fast#5673
phisco merged 1 commit into
crossplane:masterfrom
phisco:all-of-fail-fast

Conversation

@phisco

@phisco phisco commented May 10, 2024

Copy link
Copy Markdown
Contributor

Description of your changes

e2e-framework has its own fail-fast flag, see docs.

This makes funcs.AllOf aware of it, skipping the rest of the provided functions in fail-fast mode.

Fixes #5672.

I have:

Need help with this checklist? See the cheat sheet.

@phisco
phisco requested a review from a team as a code owner May 10, 2024 14:26
@phisco
phisco requested a review from turkenh May 10, 2024 14:26

@jbw976 jbw976 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks reasonable to me @phisco!! just a question about the flag from the gha workflows getting down into the test code...

Comment thread test/e2e/funcs/feature.go

// AllOf runs the supplied functions in order.
// AllOf runs the supplied functions in order. If a function fails the test and
// the environment is configured to fail fast (e2e-framework's -fail-fast flag)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks like we are specifying the intent to fail fast with -test.failfast -fail-fast in the e2e step https://github.com/crossplane/crossplane/blob/master/.github/workflows/ci.yml#L306C47-L306C72 - were you able to also verify that the flag is making it down into this testing context correctly?

@phisco phisco May 10, 2024

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yes, in our specific case, we do build our environment from flags, whether another user will pass down that correctly it's up to the user.

@phisco
phisco merged commit 0d0473e into crossplane:master May 14, 2024
@phisco
phisco deleted the all-of-fail-fast branch May 6, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e tests should fail fast

2 participants