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

Don't rerun test with --lf #1324

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Don't rerun test with --lf #1324

wants to merge 1 commit into from

Conversation

Carreau
Copy link
Member

@Carreau Carreau commented Feb 13, 2025

I think this is an anti pattern,

  1. we are already using flaky, so flaky test should be marked as such.

  2. if it fails on first run and pass on --lf, this indicate that the
    test are relying on a global state that should either:

    • be investigated
    • is known, and then should be given a specific marker to be ran separately.

The only advantage is to delay finding issues.

--

This is just a suggestion and my reasoning, I can be convince otherwise. See #1323, and thanks to @davidbrochart for pointing out that there was the --lf.

I think this is an anti patern,

1) we are already using flaky, so flaky test should be marked as such.
2) if it fails on first run and pass on --lf, this indicate that the
   test are relying on a global state that should either:
     - be investigated
     - is known, and then should be given a specific marker to be ran
       separately.

The only advantage is to delay finding issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants