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

dangernoodle-io / TaipanMiner / 25619089157
90%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 03:48AM UTC
Jobs 3
Files 81
Run time 1min
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

10 May 2026 03:47AM UTC coverage: 83.044% (+0.2%) from 82.799%
25619089157

push

github

web-flow
refactor(flasher): extract state machine + serial adapter; add tests (#371)

* refactor(flasher): extract state machine, serial adapter, error categorization

- withTimeout.ts: pure timeout wrapper lifted from App.svelte
- errorMessages.ts: pure error-categorization functions with exact regex/message strings
- serial.ts: web serial + esptool-js boundary (requestPort, connectDevice, disconnectDevice, writeFirmware, hardReset)
- flashState.svelte.ts: createFlashState() factory using svelte 5 runes; all state transitions and async actions lifted from App.svelte
- App.svelte: reduced to ~140 LOC thin shell; reads state.*, delegates clicks to state actions

no behavior changes: same state transitions, same error messages, same button enablement

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

* test(webui): cover flasher modules and include in coveralls upload

- vitest.config.ts: mirrors ui-kit config; VITE_FLASHER_FIXTURES=1 env
- test-setup.ts: mirrors ui-kit setup; adds navigator.serial stub
- withTimeout.test.ts: 6 specs (resolve, timeout, label, ms-to-s, rejection, no-late-fire)
- errorMessages.test.ts: 13 specs (all regex branches for connect/flash error categorization)
- release.test.ts: 6 specs (manifest 200/404/500, asset streaming, sha256 mismatch, progress)
- serial.test.ts: 11 specs (requestPort, connectDevice, disconnectDevice, writeFirmware, hardReset)
- flashState.test.ts: 25 specs (initial state, select, manifest, connect paths, flash paths, flashAnother, handleDeviceDisconnect, boardOptions)
- App.test.ts: 10 specs (idle, connecting, connected, chip info, progress, done, errors, disconnect banner)
- main.test.ts: 1 spec (mount called with #app target)

CI: adds flasher test step to webui-check; adds flasher lcov to coveralls upload

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

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>

2110 of 2895 branches covered (72.88%)

Branch coverage included in aggregate %.

170 of 188 new or added lines in 5 files covered. (90.43%)

2 existing lines in 2 files now uncovered.

3963 of 4418 relevant lines covered (89.7%)

186903.12 hits per line

Uncovered Changes

Lines Coverage ∆ File
10
80.5
webui/flasher/src/App.svelte
6
90.71
webui/flasher/src/lib/flashState.svelte.ts
2
88.89
webui/flasher/src/lib/serial.ts

Coverage Regressions

Lines Coverage ∆ File
1
95.83
-0.86% webui/miner/src/pages/System.svelte
1
53.59
-0.6% webui/miner/src/pages/Update.svelte
Jobs
ID Job ID Ran Files Coverage
1 webui - 25619089157.1 10 May 2026 03:48AM UTC 53
77.23
GitHub Action Run
2 e2e - 25619089157.2 10 May 2026 03:49AM UTC 37
58.74
GitHub Action Run
3 native - 25619089157.3 10 May 2026 03:48AM UTC 28
89.19
GitHub Action Run
Source Files on build 25619089157
  • Tree
  • List 81
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25619089157
  • d3742d80 on github
  • Prev Build on main (#25618652569)
  • Next Build on main (#25619459678)
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