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

bobuhiro11 / gokvm / 22212109152
70%
main: 70%

Build:
Build:
LAST BUILD BRANCH: live-migration-with-disk
DEFAULT BRANCH: main
Ran 20 Feb 2026 05:21AM UTC
Jobs 2
Files 38
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

20 Feb 2026 05:04AM UTC coverage: 69.731% (+1.6%) from 68.145%
22212109152

Pull #188

github

bobuhiro11
ci: improve guest mount reliability, build, and test stability

Background:
Even with the code fixes above, CI remained flaky due to:
- The guest mounting /dev/vda before the virtio-blk driver
  finished probing, causing mount to fail
- srvfiles starting before mount, serving empty responses
- u-root@latest breaking on Go 1.22
- Tests timing out at the default 10m go test deadline
- No mechanism to verify test stability across runs

Guest .bashrc:
- Add virtio diagnostics (dmesg, /proc/partitions, lsblk)
  for post-failure triage
- Add 2s sleep after boot for virtio-blk driver probe
- Replace one-shot mount with retry loop (60 attempts,
  1s interval) to tolerate slow device readiness
- Start srvfiles AFTER successful mount so the first HTTP
  response already contains mounted content

CI workflow:
- Increase job timeout from 60 to 360 minutes to
  accommodate 10x test repetition
- Run tests 10 times: iteration 1 with lint + coverage,
  iterations 2-10 with clean cache (go clean -testcache)

Build (Makefile):
- Pin u-root to v0.13.1 via explicit git clone instead of
  go install @latest (Go 1.22 dropped support for latest
  u-root module path)
- Split u-root into source-tree and binary targets
- Add .bashrc to initrd staleness hash check so initrd
  rebuilds when guest scripts change
- Add -timeout 30m to go test to prevent silent hangs

Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net>
Pull Request #188: Fix flaky CI tests

217 of 265 new or added lines in 6 files covered. (81.89%)

4 existing lines in 1 file now uncovered.

2435 of 3492 relevant lines covered (69.73%)

1.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
24
82.03
11.11% virtio/blk.go
15
85.27
4.96% virtio/net.go
8
73.13
-1.87% tap/tap.go
1
96.3
-3.7% kvm/ioctl.go

Coverage Regressions

Lines Coverage ∆ File
4
78.6
0.67% machine/machine.go
Jobs
ID Job ID Ran Files Coverage
1 22212109152.1 20 Feb 2026 05:21AM UTC 38
69.73
GitHub Action Run
2 22212109152.2 20 Feb 2026 05:49AM UTC 38
69.73
GitHub Action Run
Source Files on build 22212109152
  • Tree
  • List 38
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #188
  • PR Base - main (#22206453523)
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