Skip to content

ci: give the benchmark 30 minutes and sample every GetMD - #1063

Merged
pbleser-oc merged 1 commit into
opencloud-eu:mainfrom
pbleser-oc:ci/benchmark-timeout
Nov 25, 2026
Merged

pbleser-oc merged 1 commit into
opencloud-eu:mainfrom
pbleser-oc:ci/benchmark-timeout

Conversation

@pbleser-oc

@pbleser-oc pbleser-oc commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

Fixes #997

The test-benchmark step fails in roughly every third pipeline on main with panic: 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 of fs.GetMD.

Why it times out

make test-benchmark ran a plain go 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 on main:

Pipeline Commit Duration of go test
1818 37496dc6a 170 s
1896 20c6e7824 251 s
1898 20c6e7824 594 s
1899 20c6e7824 timeout after 600 s

In 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 30m for test-benchmark.
  • 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. 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 main and 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.

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
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 4 duplication

Metric Results
Complexity 0
Duplication 4

View in Codacy

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.

@pbleser-oc
pbleser-oc requested a review from butonic November 24, 2026 00:39

@v-scharf v-scharf left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pbleser-oc
pbleser-oc merged commit 456e004 into opencloud-eu:main Nov 25, 2026
22 checks passed
@openclouders openclouders mentioned this pull request Nov 25, 2026
1 task
@pbleser-oc
pbleser-oc deleted the ci/benchmark-timeout branch November 25, 2026 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ci: test-benchmark hits the default 10m go test timeout

2 participants