Skip to content

tests/runtime: skip the percpu rollback test on a single CPU - #733

Merged
lneto merged 1 commit into
masterfrom
claude_percpu_test_1cpu
Aug 17, 2026
Merged

tests/runtime: skip the percpu rollback test on a single CPU#733
lneto merged 1 commit into
masterfrom
claude_percpu_test_1cpu

Conversation

@lneto

@lneto lneto commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

On a host with a single possible CPU, tests/runtime/percpu.sh's rollback case failed. The case runs a script that errors on the second instance to check the earlier instances roll back, but with one CPU only one instance is ever created, so the intentional failure never fires and the run succeeds — which the test reported as a failure (seen by a newcomer on a 1-vCPU VM).

Guard the case with nproc --all and skip it when there is only one CPU; the plan stays at 6.

Test plan:

  • 6 CPUs: the case runs and passes (suite 6/6).
  • Simulated single CPU (nproc shim returning 1): the case skips, suite green (pass:5 skip:1 fail:0).

The rollback is exercised by a script that errors on the second instance
to check the earlier ones roll back; with one possible CPU only one
instance is created, so the intentional failure never fires and the run
succeeds, which the test reported as a failure. Skip it there instead.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@lneto
lneto merged commit 91172f4 into master Aug 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant