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

dangernoodle-io / taipan-cli / 24962625066
67%

Build:
DEFAULT BRANCH: main
Ran 26 Apr 2026 05:27PM UTC
Jobs 1
Files 24
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

26 Apr 2026 05:25PM UTC coverage: 39.072% (+1.1%) from 37.958%
24962625066

push

github

web-flow
jae/factory ota fix (#16)

* chore(deps): bump espflasher fork to pogopin's pin

Pin tinygo.org/x/espflasher replace directive to commit
0b39023b136a (jae/auto-reset branch) to match pogopin's
working pin. Newer than the previous pin and includes
serial reset behavior changes used by the flash subcommand.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* fix(flash): use factory image by default; distinguish app-only OTA

GitHub releases publish two assets per board: a full factory image
(taipanminer-<board>-factory.bin: bootloader + partition table +
otadata + app at 0x20000) and an OTA app-only image
(taipanminer-<board>.bin: app starting at offset 0). The previous
asset selector used `strings.Contains` and picked whichever
sorted first, then unconditionally parsed the app descriptor at
offset 0x20 — which is only correct for app-only images. Live
flashes against fresh tdongle-s3 boards failed with
"invalid app descriptor magic: got 0x00000050".

- release.go: exact-match asset selection by name. Adds a
  --factory/--ota suggestion when the requested type is missing
  but the other exists.
- appdesc.go: parses at 0x20 (OTA) or 0x20020 (factory) based on
  caller intent; on magic mismatch, probes the alternate offset
  and suggests the matching flag in the error.
- precheck.go: passes factory through to ParseFirmwareInfo; size
  check uses the app slice (file - 0x20000) for factory.
- flash.go: FlashOptions.Factory branches the image plan. Factory
  image flashes at offset 0x0 (NVS at 0x9000 overlays the empty
  region); OTA keeps the existing otadata-erase + app-at-0x20000
  layout.
- cli/flash.go: --ota opts into the smaller app-only image for
  already-provisioned devices. Factory is the default and works
  on fresh boards.

Closes T1-43.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>

65 of 98 new or added lines in 5 files covered. (66.33%)

783 of 2004 relevant lines covered (39.07%)

0.45 hits per line

Uncovered Changes

Lines Coverage ∆ File
32
0.0
0.0% internal/flash/flash.go
1
40.74
0.74% internal/cli/flash.go
Jobs
ID Job ID Ran Files Coverage
1 24962625066.1 26 Apr 2026 05:27PM UTC 24
39.07
GitHub Action Run
Source Files on build 24962625066
  • Tree
  • List 24
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24962625066
  • 8444c42c on github
  • Prev Build on main (#24800875870)
  • Next Build on main (#24962730892)
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