⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Fix ExceededPageSizeIsCapped to await results indexed#9172

Merged
fretz12 merged 3 commits intomainfrom
fredtzeng/saa-flaky-test
Feb 2, 2026
Merged

Fix ExceededPageSizeIsCapped to await results indexed#9172
fretz12 merged 3 commits intomainfrom
fredtzeng/saa-flaky-test

Conversation

@fretz12
Copy link
Contributor

@fretz12 fretz12 commented Jan 29, 2026

What changed?

Fix ExceededPageSizeIsCapped to await results indexed

Why?

Previously, we were not correctly awaiting all expected results to be index. By using the count API in the eventually loop instead, we should be guaranteed the right number of results before proceeding

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a flaky test by ensuring that all expected activity executions are indexed in Elasticsearch before testing pagination behavior.

Changes:

  • Modified ExceededPageSizeIsCapped test to use CountActivityExecutions API instead of ListActivityExecutions within the Eventually block to wait for exactly 2 activities to be indexed before proceeding with pagination tests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fretz12 fretz12 requested a review from dandavison January 30, 2026 16:40
@fretz12 fretz12 enabled auto-merge (squash) February 2, 2026 18:38
@fretz12 fretz12 merged commit f3dc48e into main Feb 2, 2026
107 of 110 checks passed
@fretz12 fretz12 deleted the fredtzeng/saa-flaky-test branch February 2, 2026 18:57
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