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

elastic / cloudbeat / 28954797422

Build:
Build:
LAST BUILD BRANCH: bump-to-9.5.0
DEFAULT BRANCH: main
Ran 08 Jul 2026 03:50PM UTC
Jobs 1
Files 0
Run time –
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

pending completion
28954797422

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)
Jobs
ID Job ID Ran Files Coverage
1 28954797422.1 08 Jul 2026 03:50PM UTC 0
GitHub Action Run
Source Files on build 28954797422
Detailed source file information is not available for this build.
  • Back to Repo
  • ece9c380 on github
  • Prev Build on gh-readonly-queue/main/pr-7272-be3976053b51c41d04a6ce4b9e956af520928da7 (#28948230255)
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