Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is the purpose of this PR
Adds a GitHub Actions workflow to confirm the flakiness of
cz.habarta.typescript.generator.TaggedUnionsTest.testTaggedUnionsWithInterfaces
in thetypescript-generator
project, as part of the IDoFT flaky test task (Part Three).Why the test fails
The test likely relies on non-deterministic iteration order (e.g., HashMap keys) in generated TypeScript output, causing intermittent failures when shuffled by NonDex.
How to reproduce the test failure
Run the GitHub Actions workflow in this PR or locally:
mvn -pl typescript-generator-core edu.illinois:nondex-maven-plugin:2.1.1:nondex -Dtest=cz.habarta.typescript.generator.TaggedUnionsTest#testTaggedUnionsWithInterfaces -DnondexRuns=50
The test fails intermittently due to order-dependent assertions.
Expected results
The normal test run passes consistently, while the NonDex run fails intermittently, confirming the test is flaky.
Actual results
In the CI run ([link to Actions run, e.g., https://github.com/ndeneh93/typescript-generator/actions/runs/XXXXX]), the normal test passed, and the NonDex test failed X/50 runs, confirming flakiness.
Description of changes
Added
.github/workflows/flaky-test.yml
to run the test normally and with NonDex, verifying its flaky behavior in CI.