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

dangernoodle-io / TaipanMiner / 25619949353
90%

Build:
DEFAULT BRANCH: main
Ran 10 May 2026 04:38AM UTC
Jobs 3
Files 85
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 04:37AM UTC coverage: 85.524% (+0.9%) from 84.648%
25619949353

push

github

web-flow
refactor(update): extract ota state machine + helpers; add tests (#374)

* refactor(webui): extract update page state machine

- extract otaHelpers.ts: firmwareName() and minerBusy() pure helpers
- extract otaState.svelte.ts: createOtaState() runes state machine
- Update.svelte: thin shell using const os = createOtaState()
- replace $: reactive blocks with $derived; local bindings use $state
- dev mock panel stays inline in Update.svelte (out of scope to extract)
- all 716 unit tests pass; all 33 e2e tests pass

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

* test(webui): cover ota state machine and helpers

- otaHelpers.test.ts: 100% coverage — firmwareName (null/board variants),
  minerBusy (all rebooting/install/upload combinations)
- otaState.test.ts: ~30 specs covering initial state, handleCheck (happy
  path, pending retry, timeout, error), requestInstall/requestUpload,
  handleInstall (full flow, progress, error states, 600s deadline),
  handleUpload (full flow, progress, error), onFileSelect, onDrop,
  onDragOver/onDragLeave, setter round-trips
- Update.test.ts: rewritten to mock createOtaState; drives via global
  store state to cover UI conditional branches (install button, progress
  bars, minerBusy disabling, status messages)
- all 745 unit tests pass; all 33 e2e tests pass

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

---------

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

2167 of 2878 branches covered (75.3%)

Branch coverage included in aggregate %.

96 of 108 new or added lines in 3 files covered. (88.89%)

1 existing line in 1 file now uncovered.

4119 of 4472 relevant lines covered (92.11%)

184646.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
67.61
13.42% webui/miner/src/pages/Update.svelte
1
87.72
webui/miner/src/lib/otaState.svelte.ts

Coverage Regressions

Lines Coverage ∆ File
1
67.61
13.42% webui/miner/src/pages/Update.svelte
Jobs
ID Job ID Ran Files Coverage
1 e2e - 25619949353.1 10 May 2026 04:40AM UTC 41
58.84
GitHub Action Run
2 native - 25619949353.2 10 May 2026 04:38AM UTC 28
89.19
GitHub Action Run
3 webui - 25619949353.3 10 May 2026 04:39AM UTC 57
82.2
GitHub Action Run
Source Files on build 25619949353
  • Tree
  • List 85
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #25619949353
  • 201c7004 on github
  • Prev Build on main (#25619666837)
  • Next Build on main (#25620234720)
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