• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agama-project / agama / 28265195004
83%

Build:
DEFAULT BRANCH: master
Ran 26 Jun 2026 09:07PM UTC
Jobs 3
Files 1038
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jun 2026 09:04PM UTC coverage: 83.118% (+0.002%) from 83.116%
28265195004

push

github

web-flow
fix(web): make DownloadFeedback timer tests deterministic (#3673)

## Problem

`DownloadFeedback.test.tsx` was intermittently failing in CI. The test
would pass for many runs, then fail without any related code changes,
making the failures difficult to reproduce and investigate.

## Root cause

The test relied on **real timers** for the success alert's auto-dismiss
behavior. Under CI load, this introduced a race condition:

* `waitFor` polls for the alert approximately every 50 ms.
* The alert is automatically dismissed after 10 ms via `setTimeout`.
* On a busy CI runner, the alert can appear and disappear between
polling intervals, causing the test to fail with **"Unable to find
alert"**.

On a typical development machine, the polling intervals are usually
short enough that the race rarely occurs. Under heavier CI load,
scheduling delays widen the gaps between polls, making the race
intermittent and difficult to reproduce locally.

Running the original test in a loop while saturating the CPU reproduced
the issue within a few iterations. The updated test remained stable
under the same conditions.

## Fix

The test now uses **fake timers**, making the alert dismissal
deterministic. The timeout only fires when the test explicitly advances
the clock, eliminating the race condition. Timing becomes a controlled
input rather than a source of nondeterministic behavior.

---

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

4887 of 6804 branches covered (71.83%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

8 existing lines in 1 file now uncovered.

25431 of 29672 relevant lines covered (85.71%)

123.86 hits per line

Coverage Regressions

Lines Coverage ∆ File
8
87.41
0.18% web/web/src/test-utils.tsx
Subprojects
ID Flag name Job ID Ran Files Coverage
3 web 28265195004.3 26 Jun 2026 09:07PM UTC 719
80.01
GitHub Action Run
1 rust 19474749743.1 18 Nov 2025 05:18PM UTC 185
22.45
GitHub Action Run
3 service 28025224739.3 23 Jun 2026 12:13PM UTC 319
92.33
GitHub Action Run
Source Files on build 28265195004
  • Tree
  • List 1038
  • Changed 8
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28265195004
  • ebef99d1 on github
  • Prev Build on master (#28236489617)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc