Skip to content

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.

in addition:

  1. --lf reruns the test without qt5 or qt6, so don't actually rerun many test.
  2. If there is a segfault in qt5 (which there is in main), then qt6 is not ran at all – and actually there were failures !

So this is actually bad as it hides errors.

If at least it was cov:test||cov:test --lf it would make more sens, but here it's plainly wrong.

--

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

@Carreau Carreau force-pushed the no-lf branch 3 times, most recently from 04f99f1 to b5de665 Compare February 19, 2025 13:27
@Carreau Carreau changed the title Don't rerun test with --lf Don't rerun test with --lf it hides failures. Feb 19, 2025
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.
@Carreau
Copy link
Member Author

Carreau commented Feb 20, 2025

Ok, It's annoying to wait.

@Carreau Carreau merged commit 367d3d0 into ipython:main Feb 20, 2025
29 of 30 checks passed
@Carreau Carreau added this to the 7.0 milestone Feb 23, 2025
ianthomas23 pushed a commit to ianthomas23/ipykernel that referenced this pull request May 23, 2025
ianthomas23 pushed a commit to ianthomas23/ipykernel that referenced this pull request Jul 15, 2025
@ianthomas23 ianthomas23 mentioned this pull request Jul 15, 2025
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