IdempotencyTests is flaky on Windows
See original GitHub issueStarting ~~with the merge of https://github.com/lampepfl/dotty/pull/11210~~ (EDIT: actually long before that, see comments below), it looks like test_windows_full has been failing IdempotencyTests from time to time, from https://github.com/lampepfl/dotty/runs/2178741539:
Test 'CheckPosIdempotency from idempotency/check' failed with output:
Idempotency test failed between out\idempotency\posIdempotency1\pos\i6507b\Test.tasty and out\idempotency\posIdempotency2\pos\i6507b\Test.tasty
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at dotty.tools.vulpix.ChildJVMMain.runMain(ChildJVMMain.java:40)
at dotty.tools.vulpix.ChildJVMMain.main(ChildJVMMain.java:47)
Caused by: java.lang.AssertionError: assertion failed: Failed 1 idempotency checks (out of 5116)
at scala.runtime.Scala3RunTime$.assertFailed(Scala3RunTime.scala:8)
at IdempotencyCheck$.checkIdempotency(IdempotencyCheck.scala:70)
at Test$.main(CheckPosIdempotency.scala:4)
at Test.main(CheckPosIdempotency.scala)
... 6 more
@bishabosha could you investigate this (I’ve forwarded you the access information for the Windows machine if you want to investigate there)? /cc @liufengyun
Issue Analytics
- State:
- Created 2 years ago
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Preempting Flaky Tests via Non-Idempotent-Outcome Tests
To proactively detect, i.e., preempt, flaky tests, we propose to detect non-idempotent-outcome (NIO) tests, a novel category related to flaky tests. In ...
Read more >How to Fix Flaky Tests - Semaphore CI
Randomly failing tests are the hardest to debug. Here's a framework you can use to fix them and keep your test suite healthy....
Read more >Flaky tests - GitLab Docs
It's a test that sometimes fails, but if you retry it enough times, it passes, eventually. What are the potential cause for a...
Read more >A Survey of Flaky Tests - ACM Digital Library
Tests that fail inconsistently, without changes to the code under test, are described as flaky. Flaky tests do not give a clear indication ......
Read more >Manage flaky tests - Azure Pipelines - Microsoft Learn
A flaky test is a test that provides different outcomes, such as pass or fail, even when there are no changes in the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The discrepancy seems to be in the positions section:
The output files from this test run: i11885-output.zip
It looks like the test filter does not work well due to the difference in path separators on Windows (#11950). I’ll have a look.