Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v15] Attempt to reduce flakiness of integration tests #49894

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #49850 to branch/v15

Closes #47156.

All of the tests suffering from issues dialing hosts, and failing
with a `failed to dial target host` error were incorrectly waiting
for nodes to become visible before establishing connections. The
main culprit for most of the failures was `waitForNodesToRegister`,
though a few tests had a very similar hand rolled variant, which
incorrectly returned when the nodes appeard in Auth. However, since
the Proxy is the one performing dialing, they should have waited
for the nodes to appear in the Proxy.

To resolve, `waitForNodesToRegister` and all hand rolled equivalents
have been removed in favor of `(TeleInstance) WaitForNodeCount` which
correctly uses the `CachingAccessPoint` of the RemoteSite instead
of `GetClient`. Additionally, `helpers.WaitForNodeCount` was updated
to validate that the node watcher used for routing in the Proxy
also contained the expected number of nodes.
@rosstimothy rosstimothy added backport no-changelog Indicates that a PR does not require a changelog entry labels Dec 6, 2024
@rosstimothy rosstimothy changed the title Attempt to reduce flakiness of integration tests [v15] Attempt to reduce flakiness of integration tests Dec 6, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-49894.d1v2yqnl3ruxch.amplifyapp.com

@rosstimothy rosstimothy marked this pull request as ready for review December 6, 2024 18:26
@rosstimothy rosstimothy enabled auto-merge December 6, 2024 18:26
@github-actions github-actions bot requested review from hugoShaka and zmb3 December 6, 2024 18:27
@rosstimothy rosstimothy added this pull request to the merge queue Dec 6, 2024
Merged via the queue into branch/v15 with commit 74e33c8 Dec 6, 2024
41 checks passed
@rosstimothy rosstimothy deleted the tross/backport-49850/v15 branch December 6, 2024 21:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport no-changelog Indicates that a PR does not require a changelog entry size/sm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants