Repository navigation
ci: give the benchmark 30 minutes and sample every GetMD - #1063
Merged
Merged
Conversation
The benchmark ran with the default timeout of go test, 10 minutes. On the CI runners, the same code takes between about 3 and more than 10 minutes, depending on how fast the disk is at that moment, and roughly every third pipeline on main failed with "test timed out after 10m0s", also on commits that passed before. Such a timeout says nothing about the code: the specs only fail on errors of the storage drivers, not on slowness. It now gets 30 minutes. fs.GetMD passed ReportEntryVisibilityNever, an enum value (2), as the number of samples, so it measured only two calls per storage driver, after creating 10,000 files for them. It now samples all of them, like the other specs. That adds about 3 seconds. Assisted-by: Claude Code:claude-opus-5-5
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 4 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #997
The
test-benchmarkstep fails in roughly every third pipeline onmainwithpanic: test timed out after 10m0s, also on commits that pass on a restart. This gives the benchmark 30 minutes, and fixes the number of samples offs.GetMD.Why it times out
make test-benchmarkran a plaingo test, so the default timeout of 10 minutes applied. The same code takes very different times on the CI runners, depending on how busy their disks are. Some runs of the benchmark onmain:go test37496dc6a20c6e782420c6e782420c6e7824In the slow run, every spec was about five times slower than in the fast one, so nothing hangs: it is all just slower. The failures go back to October at least, before the benchmark code last changed, and they come with crowded agents, see the numbers in #997.
The specs only fail on errors of the storage drivers, not on slowness, so a timeout says nothing about the code.
Changes
Makefile:go test -timeout 30mfortest-benchmark.fs.GetMDpassedReportEntryVisibilityNever, an enum value (2), as the number of samples, so it measured only two calls per storage driver after creating 10,000 files for them. It now samples all of them, like the other specs. Locally, that adds about 3 seconds.Open question
The benchmark runs on every pull request and creates tens of thousands of files on the runner's disk. Running it only on
mainand in the nightly build would take that load off the shared runners. That's for the team to decide, so this PR leaves it as it is.AI assistance: Claude Code (claude-opus-5-5) analysed the pipeline history and wrote the change; I reviewed it.