Skip to content

test(compute): simplify and re-enable flaky ITPaginationTest test case#13288

Open
whowes wants to merge 3 commits into
mainfrom
whowes/issue-11759-flaky
Open

test(compute): simplify and re-enable flaky ITPaginationTest test case#13288
whowes wants to merge 3 commits into
mainfrom
whowes/issue-11759-flaky

Conversation

@whowes
Copy link
Copy Markdown
Contributor

@whowes whowes commented May 28, 2026

To make the test more reliable, the assertions are simplified to verify that all zone names are non-null and at least 2 pages have been traversed by the iterator.

This test case has been quite flaky historically (see past comment). Iterating occasionally short-circuits at different places through the list of zones (which Gemini hypothesizes may be aligned with regional boundaries), and the DEFAULT_ZONE used in the test's current final assertion appears towards the end of the alphabetically-sorted list.

Fixes #11759

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request re-enables the testPaginationIterating integration test in ITPaginationTest.java by removing the @Ignore annotation and updating its assertion logic to verify that multiple pages are traversed. The reviewer recommends optimizing the test by breaking out of the iteration loop early once two elements are processed, which avoids making excessive synchronous API calls for all zones in the project.

@whowes whowes force-pushed the whowes/issue-11759-flaky branch from 071fa09 to 096d74b Compare May 28, 2026 21:47
@whowes whowes requested a review from blakeli0 May 28, 2026 22:10
@whowes whowes marked this pull request as ready for review May 28, 2026 22:10
@whowes whowes requested review from a team as code owners May 28, 2026 22:10
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.

Flaky Test: ITPaginationTest.testPaginationIterating (Zone not found)

1 participant