Skip to content

sockets: Ensure bpffs is mounted in TestPrivilegedSocketDestroyers#44979

Merged
christarazi merged 1 commit intomainfrom
pr/christarazi/fix-socket-destroyers-bpffs
Mar 25, 2026
Merged

sockets: Ensure bpffs is mounted in TestPrivilegedSocketDestroyers#44979
christarazi merged 1 commit intomainfrom
pr/christarazi/fix-socket-destroyers-bpffs

Conversation

@christarazi
Copy link
Copy Markdown
Member

The test pins BPF maps but never calls bpf.CheckOrMountFS(), unlike
every other privileged test that pins maps. It only passes when a
test from another package has already mounted bpffs in the same
process (CheckOrMountFS uses sync.Once). This makes it flaky
depending on test execution order.

Fixes: #44976

The test pins BPF maps but never calls bpf.CheckOrMountFS(), unlike
every other privileged test that pins maps. It only passes when a
test from another package has already mounted bpffs in the same
process (CheckOrMountFS uses sync.Once). This makes it flaky
depending on test execution order.

Fixes: #44976
Fixes: a4265ec ("sockets: Implement integration test for socket destroyers")
Signed-off-by: Chris Tarazi <chris@isovalent.com>
@christarazi christarazi requested a review from a team as a code owner March 24, 2026 09:45
@christarazi christarazi requested a review from aspsk March 24, 2026 09:45
@christarazi christarazi enabled auto-merge March 24, 2026 09:46
@christarazi
Copy link
Copy Markdown
Member Author

/test

1 similar comment
@cilium-ariane
Copy link
Copy Markdown

cilium-ariane bot commented Mar 24, 2026

/test

@christarazi christarazi added kind/bug/CI This is a bug in the testing code. area/CI Continuous Integration testing issue or flake area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. release-note/ci This PR makes changes to the CI. labels Mar 24, 2026
@christarazi christarazi added this pull request to the merge queue Mar 25, 2026
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Mar 25, 2026
Merged via the queue into main with commit f728cd5 Mar 25, 2026
166 checks passed
@christarazi christarazi deleted the pr/christarazi/fix-socket-destroyers-bpffs branch March 25, 2026 12:30
@julianwiedmann
Copy link
Copy Markdown
Member

Thank you! Looks like this would also apply for v1.19 ? Adding the label, cc @jrife

@julianwiedmann julianwiedmann added the needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch label Mar 27, 2026
@viktor-kurchenko viktor-kurchenko added backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. and removed needs-backport/1.19 This PR / issue needs backporting to the v1.19 branch labels Mar 30, 2026
@github-actions github-actions bot added backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. and removed backport-pending/1.19 The backport for Cilium 1.19.x for this PR is in progress. labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/CI Continuous Integration testing issue or flake area/datapath Impacts bpf/ or low-level forwarding details, including map management and monitor messages. backport-done/1.19 The backport for Cilium 1.19.x for this PR is done. kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: TestPrivilegedSocketDestroyers: creating map: pin map to /sys/fs/bpf/tc/globals/cilium_lb6_reverse_sk: no such file or directory

5 participants