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

elastic / cloudbeat / 28956342634
76%

Build:
DEFAULT BRANCH: main
Ran 08 Jul 2026 04:12PM UTC
Jobs 1
Files 245
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

08 Jul 2026 03:29PM UTC coverage: 76.091% (-0.02%) from 76.106%
28956342634

push

github

web-flow
fix: increase go-test pre-commit hook timeout from 100ms to 10s (#7273)

The `go-test` pre-commit hook used a 100ms global timeout, which is too
aggressive for CI — normal package init overhead (goroutines, mocks,
`sync.Once` warm-up) can push total package time slightly above 100ms
without any test logic being slow. The Azure fetcher package was failing
at ~129ms.

### Changes

- **`.pre-commit-config.yaml`**: Bump `go-test` hook timeout from
`100ms` → `2s`
  ```yaml
  # before
  entry: bash -c 'go test -failfast -short -timeout 100ms ./...'
  # after
  entry: bash -c 'go test -failfast -short -timeout 2s ./...'
  ```
- **`internal/dataprovider/providers/k8s/setup_test.go`** /
**`internal/resources/fetching/fetchers/k8s/setup_test.go`**: Update
comments that referenced the old `-timeout 100ms` value.

2s was chosen over a larger value (e.g. 10s) to keep the hook failing
fast on a genuinely hung test, while still giving ~7-15x headroom over
the package times observed in CI (100-290ms).

### Screenshot/Data

<!--
If this PR adds a new feature, please add an example screenshot or data
(findings json for example).
-->

### Related Issues

<!--
- Related: https://github.com/elastic/security-team/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)

#### Introducing a new rule?

- [ ] Generate rule metadata using [this
script](https://github.com/elastic/cloudbeat/tree/main/security-policies/dev#generate-rules-metadata)
- [ ] Add relevant unit tests
- [ ] Generate relevant rule templates using [this
script](https://github.com/elastic/cloudbeat/tree/main/security-policies/dev#generate-rule-templates),
and open a PR in
[elastic/packages/cloud_security_posture](https://github.com/elastic/integrations/tree/main/packages/cloud_security_posture)

Co-authored-by: Cloud Security Machine <cloudsecmachine@users.noreply.github.com>
Co-authored-... (continued)

10203 of 13409 relevant lines covered (76.09%)

15.9 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
83.06
0.0% internal/resources/providers/gcplib/inventory/provider.go
2
95.79
-2.11% internal/vulnerability/snapshot.go
Jobs
ID Job ID Ran Files Coverage
1 28956342634.1 08 Jul 2026 04:12PM UTC 245
76.09
GitHub Action Run
Source Files on build 28956342634
  • Tree
  • List 245
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • ece9c380 on github
  • Prev Build on gh-readonly-queue/main/pr-7272-be3976053b51c41d04a6ce4b9e956af520928da7 (#28948230255)
  • Next Build on main (#28958101684)
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