Skip to content

test(cli): fix flake due to UDP crosstalk - #32102

Merged
spikecurtis merged 2 commits into
mainfrom
spike/ent-252-udp-portforward-flake
Nov 17, 2026
Merged

spikecurtis merged 2 commits into
mainfrom
spike/ent-252-udp-portforward-flake

Conversation

@spikecurtis

Copy link
Copy Markdown
Collaborator

fixes ENT-252

In a port forward test for UDP, there are actually 2 UDP socket on the remote side (the local side uses a mocked network). There is the target socket where our echo server is listening, and the UDP socket that the workspace agent opens up to talk to it. We must be getting crosstalk on the workspace agent socket, because the echo server was already filtering based on prefix.

The solution in this PR is to move the filtering all the way back to the test function itself, so if crosstalk comes either on the echo socket or the workspace agent socket, we'll forward it across the tailnet, but ultimately filter it in the test function before asserting.

@spikecurtis
spikecurtis requested a review from mafredri November 12, 2026 17:09
@spikecurtis
spikecurtis temporarily deployed to main November 12, 2026 17:09 — with GitHub Actions Inactive
@spikecurtis
spikecurtis temporarily deployed to main November 12, 2026 17:09 — with GitHub Actions Inactive
@linear-code

linear-code Bot commented Nov 12, 2026

Copy link
Copy Markdown

ENT-252

@spikecurtis spikecurtis changed the title tests(cli): fix flake due to UDP crosstalk test(cli): fix flake due to UDP crosstalk Nov 12, 2026
@spikecurtis
spikecurtis temporarily deployed to main November 12, 2026 17:09 — with GitHub Actions Inactive
Comment thread cli/portforward_test.go Resolved
Comment thread cli/portforward_test.go Resolved
@spikecurtis
spikecurtis force-pushed the spike/ent-252-udp-portforward-flake branch from c50e6d8 to 90732a5 Compare November 17, 2026 13:39
@spikecurtis
spikecurtis temporarily deployed to main November 17, 2026 13:39 — with GitHub Actions Inactive
@spikecurtis
spikecurtis requested a review from mafredri November 17, 2026 13:40
@spikecurtis
spikecurtis merged commit 7070831 into main Nov 17, 2026
28 checks passed
@spikecurtis
spikecurtis deleted the spike/ent-252-udp-portforward-flake branch November 17, 2026 13:59
@spikecurtis
spikecurtis temporarily deployed to main November 17, 2026 13:59 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 17, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
docs-preview — 90732a51 Deployed Nov 17, 2026 by spikecurtis via cleanup #165
main — 90732a51 Deployed Nov 17, 2026 by spikecurtis via cla #258664
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants