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

elastic / cloudbeat / 28786161417
76%
main: 76%

Build:
Build:
LAST BUILD BRANCH: 9.5
DEFAULT BRANCH: main
Ran 06 Jul 2026 11:06AM UTC
Jobs 1
Files 235
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

06 Jul 2026 10:49AM UTC coverage: 75.802% (+0.02%) from 75.779%
28786161417

push

github

web-flow
fix: reduce flakiness in TestAssetInventory_Run timing (#7185)

`TestAssetInventory_Run` fails intermittently under CI load with
"Context done without receiving any events". The root cause is a
scheduling race: fetcher goroutines must start, send to `assetCh`, and
trigger a buffer flush — all within a hard 50 ms window that's too tight
under load.

### Changes

- **`internal/inventory/inventory_test.go`** (`TestAssetInventory_Run`
only):
- `bufferFlushInterval`: `10ms` → `1ms` — ticker fires faster once the
asset is buffered
- context timeout: `50ms` → `500ms` — 10× headroom for goroutine
scheduling under CI load

No production code changed.

### Screenshot/Data

N/A

### Related Issues

### Checklist
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] I have added the necessary README/documentation (if appropriate)

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

9730 of 12836 relevant lines covered (75.8%)

16.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28786161417.1 06 Jul 2026 11:06AM UTC 235
75.8
GitHub Action Run
Source Files on build 28786161417
  • Tree
  • List 235
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 7bbb19e5 on github
  • Prev Build on gh-readonly-queue/main/pr-7115-139d7bc3d81ed5d4d68b393a147bc65896ff7ae4 (#28641953940)
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