Skip to content

Improve flaky tests#477

Merged
emlun merged 2 commits into
mainfrom
flaky-tests
May 19, 2026
Merged

Improve flaky tests#477
emlun merged 2 commits into
mainfrom
flaky-tests

Conversation

@emlun

@emlun emlun commented May 19, 2026

Copy link
Copy Markdown
Member

emlun added 2 commits May 19, 2026 15:23
We had a "Gave up after 9 successful property evaluations" failure on GitHub
actions, so a factor 20 seems to be _just_ a bit too restrictive.

Why discard property evaluations here? The purpose of these tests are to verify
that whenever `finishAssertion` succeeds, the `AssertionResult` is internally
consistent and consistent with the request `username` and `userHandle` (if any).
For that sake, it is relevant to have the generators be more generous with
generating combinations that _shouldn't_ succeed `finishAssertion` but do
anyway, such as the edge case that was the cause of YSA-2026-02.
This prevents the unit test XML reports from containing large stdout
logs which are not used for anything but crash the default settings of
EnricoMi/publish-unit-test-result-action@v2 .

This was originally done in commit cdf9513 and
then undone for no apparent reason in efa4b00.
The tests added in efa4b00 do not use any of
the features of `slf4j-test`; it appears the dependency was re-added solely for
capturing log output.
@emlun emlun requested a review from fdennis May 19, 2026 13:47
@emlun emlun self-assigned this May 19, 2026
@github-actions

Copy link
Copy Markdown

Test Results

2 381 tests  +84   2 373 ✅ +84   1m 7s ⏱️ +7s
   47 suites + 1       8 💤 ± 0 
   47 files   ± 0       0 ❌ ± 0 

Results for commit 6fbc56e. ± Comparison against base commit b2b1b18.

@emlun emlun merged commit 6fbc56e into main May 19, 2026
20 checks passed
@emlun emlun deleted the flaky-tests branch May 19, 2026 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants