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

bobuhiro11 / gokvm
70%
main: 70%

Build:
Build:
LAST BUILD BRANCH: live-migration-with-disk
DEFAULT BRANCH: main
Repo Added 18 Mar 2021 03:06PM UTC
Files 38
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

LAST BUILD ON BRANCH fix_flaky_test
branch: fix_flaky_test
CHANGE BRANCH
x
Reset
  • fix_flaky_test
  • acpi
  • add_ethtool
  • add_goinitrd_gitignore
  • add_is_term
  • add_package/device
  • add_pciutils
  • add_tap
  • add_tx_for_virtio_net
  • add_unit_test
  • add_virt_queue
  • add_virtio_blk
  • add_virtio_blk2
  • add_virtio_rx
  • add_vq
  • bump_up_go_version
  • cache_busybox_and_kernel_building
  • cleanup_gdt_bytes
  • cleanup_io_device
  • cleanup_iodev
  • cleanup_make
  • copilot/add-daily-ci-schedule
  • copilot/fix-kvm-action-failures
  • cpuid
  • default_virtio_blk
  • fix-flaky-tests
  • fix_badege
  • fix_cpuid2
  • fix_doc
  • fix_gitignore
  • fix_go_ver
  • fix_kernel_config
  • fix_linux_config
  • fix_make_clean
  • fix_rdinit
  • fix_readme
  • fix_syntax
  • fix_tap_if_name
  • fix_travis
  • fix_travis_badge
  • fix_typos_and_code_style
  • live-migration-with-disk
  • main
  • minor_fixes
  • multi_core_build
  • no-leaky-goroutines-use-errgroup
  • patch_pci_device_header
  • pvhBoot
  • recognize_virtio_net_as_netdev
  • refactor4
  • refactor_ebda
  • refactor_inject_irq
  • refactor_ping_check
  • refactor_syscall_err_handling
  • refactor_virtio
  • refactoring
  • refactoring3
  • rename_dir_name
  • rename_subcommands
  • rename_to_bobuhiro11
  • rework_flags
  • rm_busybox_initrd
  • rm_kong
  • rm_tags
  • run-tests-without-root
  • searching_pci_conf_space
  • skip_tests_if_not_root
  • speedupci
  • support_ctx
  • support_intel_multiprocessor_specification
  • support_multiple_vcpus
  • tap_refactoring
  • unset_fsrm
  • update_linux_config
  • use_coverprofile_for_goveralls
  • use_goinitrd_as_default
  • v0.0.4
  • v0.0.5
  • v0.0.6
  • v0.0.7
  • vmm_package

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

Relevant lines Covered
Build:
Build:
3492 RELEVANT LINES 2435 COVERED LINES
1.47 HITS PER LINE
Source Files on fix_flaky_test
  • Tree
  • List 38
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
22212109152 fix_flaky_test 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 s... Pull #188 20 Feb 2026 05:21AM UTC bobuhiro11 github
69.73
21250678168 fix_flaky_test Revert "Fix flaky TestNewAndLoadEDK2PVH by handling VM exit gracefully" This reverts commit 80927ddfa. Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net> Pull #183 22 Jan 2026 01:56PM UTC bobuhiro11 github
68.01
21215126589 fix_flaky_test fix Signed-off-by: Nobuhiro MIKI <nob@bobuhiro11.net> Pull #183 21 Jan 2026 03:24PM UTC bobuhiro11 github
68.01
21167102624 fix_flaky_test Fix flaky TestNewAndLoadEDK2PVH by handling VM exit gracefully Replace panic-based error handling with channel-based approach. The test now accepts VM shutdown/halt as expected behavior for EDK2 UEFI, instead of failing when the VM exits before t... Pull #183 20 Jan 2026 09:58AM UTC bobuhiro11 github
68.01
21166384436 fix_flaky_test Fix flaky tests by retrying ioctl/fcntl on EINTR in tap package. The tap package has its own ioctl and fcntl functions that were not handling EINTR. This can cause flakiness in Linux boot tests when creating or configuring tap interfaces. Signed... Pull #183 20 Jan 2026 09:34AM UTC bobuhiro11 github
68.01
See All Builds (827)
  • Repo on GitHub
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