Skip to content

test: Give the internal error test a tracker key of its own - #850

Merged
vvoytovych merged 1 commit into
mainfrom
test/httpproxy-tracker-key-of-its-own
Nov 3, 2026
Merged

vvoytovych merged 1 commit into
mainfrom
test/httpproxy-tracker-key-of-its-own

Conversation

@vvoytovych

Copy link
Copy Markdown
Contributor

TestHTTPProxyReconcileInternalErrorGetsStableFixedMessage fails under -shuffle on main, and it fails every time it runs right after TestHTTPProxyReconcile. The HTTPProxy programming tracker is one per process, and TestHTTPProxyReconcile programs proxy test/test on test-cluster, so the tracker skips the next unprogrammed generation of that key and this test's pending entry is never written. It passes in the default order only because TestHTTPProxyFleetCollector runs between the two, and its collector prunes the same tracker. The test now reads a cluster name that no other test uses, so it still checks the tracker that production reads.

Changes

change file
The test reconciles and reads the tracker on its own cluster name, internal-error-cluster httpproxy_metrics_test.go

Test plan

  • go test ./internal/controller/ -run '^(TestHTTPProxyReconcile|TestHTTPProxyReconcileInternalErrorGetsStableFixedMessage)$' fails on main and passes here.
  • Over the 93 HTTPProxy, gateway DNS and finalizer tests that use fake clients, -shuffle fails 3 of 10 seeds on main and none here, and -count=2 passes.
  • The test's complexity is unchanged, and golangci-lint passes.

Found while running the controller package under -shuffle for #837.

The HTTPProxy programming tracker is the process's own. TestHTTPProxyReconcile
programs proxy test/test on test-cluster, and the tracker then skips that
key's next unprogrammed generation, so this test's pending entry was
never written. It passed in the default order only because
TestHTTPProxyFleetCollector runs between the two, and its collector prunes
the same tracker. Under -shuffle it failed. The test now reads a cluster
name no other test uses.
@vvoytovych vvoytovych self-assigned this Nov 3, 2026
@vvoytovych
vvoytovych marked this pull request as ready for review November 3, 2026 19:33
@vvoytovych
vvoytovych requested a review from a team as a code owner November 3, 2026 19:33
@vvoytovych
vvoytovych requested a review from ecv November 3, 2026 19:33
@vvoytovych
vvoytovych merged commit eba9b4b into main Nov 3, 2026
11 checks passed
@vvoytovych
vvoytovych deleted the test/httpproxy-tracker-key-of-its-own branch November 3, 2026 19:40
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.

2 participants