Repository navigation
fix(ci): run the CSI unit and integration suites on Ubuntu 26.04 runners - #932
Merged
Merged
Conversation
ubuntu-latest moved to 26.04 between two runs on main (7983a98 passed, 1c4fb97 failed), which brings two changes the tests assumed away. - coreutils comes from uutils, where sleep is a hard link to one multicall binary that picks the utility from its own name. The nfsexport tests copied sleep as rpc.idmapd and nfsdcld to fake a running daemon. The copy refused to run and exited, so the "already running" tests lost a race on every run. The fake is now a copy of the test binary, which sleeps when NFSEXPORT_FAKE_PROCESS is set. - sudo is sudo-rs, which ignores -E and warns on stderr. The integration harness ran talosctl under sudo -E for HOME and KUBECONFIG. talosctl ran with root's HOME, and the warning landed in the JSON the harness parses, so no suite brought its cluster up. Both variables are now passed by name through env, in the harness and in the workflow's diagnostics and cleanup steps. Verified on an ubuntu:26.04 container: TestAFakeProcessKeepsRunning is red before and green after, and the nfsexport package passes three runs under -race -cover. The sudo change is unit-tested on the arguments only; the integration job on this PR is its live check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The harness invokes sudo env, which is not covered by the documented passwordless grants, so unattended execution fails even though the sudo -n talosctl version preflight passes.
1 open issue
What changed in this PR
This PR addresses Ubuntu 26.04 runner compatibility in the CSI unit tests and Talos integration harness, targeting failures caused by uutils and sudo-rs.
Changes:
- Replace renamed
sleepbinaries with a test-binary daemon substitute and add a liveness regression test. - Pass
HOMEandKUBECONFIGexplicitly through sudo in the integration harness, with argument coverage. - Update workflow diagnostics and cleanup to pass
HOMEexplicitly.
| File | Description |
|---|---|
test/integration/cluster/talos.go |
Extract command construction and explicitly pass Talos environment variables. |
test/integration/cluster/talos_test.go |
Add regression coverage for sudo environment arguments. |
csi-driver/internal/nfsexport/nfsd_test.go |
Use the test binary as a fake daemon and verify it stays running. |
.github/workflows/integration_test.yaml |
Replace sudo -E in diagnostics and cleanup. |
Review effort: Balanced
…rough env Running talosctl through `sudo env` changed the command sudo authorizes from talosctl to env, which the scoped SETENV grant in the integration README does not cover. An unattended developer host would have been prompted, while the GitHub runner's NOPASSWD: ALL hid it. The variables are now sudo's own VAR=value arguments, which that grant covers. Checked on ubuntu:26.04 with sudo-rs 0.2.13: VAR=value works under both NOPASSWD: ALL and a scoped SETENV grant, and the scoped grant refuses the env form. README and workflow steps updated to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
boddumanohar
added a commit
that referenced
this pull request
Nov 21, 2026
Claude-Session: https://claude.ai/code/session_011oztNZUjNFk6NYW7UXA1A2 # Conflicts: # .dockerignore # operator/api/v1alpha2/zz_generated.deepcopy.go # operator/dist/install.yaml # operator/internal/upgrade/crds/manifests/storage.simplyblock.io_controlplanes.yaml
boddumanohar
pushed a commit
that referenced
this pull request
Nov 23, 2026
…ers (#932) * fix(ci): run the CSI unit and integration suites on Ubuntu 26.04 runners ubuntu-latest moved to 26.04 between two runs on main (7983a98 passed, 1c4fb97 failed), which brings two changes the tests assumed away. - coreutils comes from uutils, where sleep is a hard link to one multicall binary that picks the utility from its own name. The nfsexport tests copied sleep as rpc.idmapd and nfsdcld to fake a running daemon. The copy refused to run and exited, so the "already running" tests lost a race on every run. The fake is now a copy of the test binary, which sleeps when NFSEXPORT_FAKE_PROCESS is set. - sudo is sudo-rs, which ignores -E and warns on stderr. The integration harness ran talosctl under sudo -E for HOME and KUBECONFIG. talosctl ran with root's HOME, and the warning landed in the JSON the harness parses, so no suite brought its cluster up. Both variables are now passed by name through env, in the harness and in the workflow's diagnostics and cleanup steps. Verified on an ubuntu:26.04 container: TestAFakeProcessKeepsRunning is red before and green after, and the nfsexport package passes three runs under -race -cover. The sudo change is unit-tested on the arguments only; the integration job on this PR is its live check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(ci): set talosctl's HOME and KUBECONFIG as sudo arguments, not through env Running talosctl through `sudo env` changed the command sudo authorizes from talosctl to env, which the scoped SETENV grant in the integration README does not cover. An unattended developer host would have been prompted, while the GitHub runner's NOPASSWD: ALL hid it. The variables are now sudo's own VAR=value arguments, which that grant covers. Checked on ubuntu:26.04 with sudo-rs 0.2.13: VAR=value works under both NOPASSWD: ALL and a scoped SETENV grant, and the scoped grant refuses the env form. README and workflow steps updated to match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit bda2665)
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.

ubuntu-latestswitched to Ubuntu 26.04 between two runs on main: 7983a98 passed on 24.04 and 1c4fb97 failed on 26.04. "CSI: Tests" and the integration job now fail on every branch, including #931.Causes and fixes
sleepis one of 116 hard links to a single multicall binary that picks its utility from its own name.nfsexport's tests copiedsleepasrpc.idmapdandnfsdcldto fake a running daemon. The copy exits at once ("Security violation: Requested utilityrpcdoes not match executable name"), soTestEnsure*SkipsStartingItWhenAlreadyRunninglost a race on every CI run. The fake is now a copy of the test binary, which sleeps whenNFSEXPORT_FAKE_PROCESSis set.sudoignores-Eand warns on stderr. The integration harness runstalosctlundersudo -Eto keepHOMEandKUBECONFIG. Without them, talosctl ran with root'sHOME, and the warning ended up in the JSON fromconfig info("parse talos context: invalid character 's'"). Both variables are now passed throughsudo env, in the harness and in the workflow's diagnostics and cleanup steps.Verification
ubuntu:26.04container reproduces the uutils failure. The newTestAFakeProcessKeepsRunningis red before the fix and green after, and thenfsexportpackage passes three runs under-race -cover.TestSudoPassesHomeAndKubeconfigByNamewas red before the fix and green after. It checks only the arguments; this PR's integration job is the live check.🤖 Generated with Claude Code