Skip to content

Stabilize index migration tests #4413

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

Merged
merged 3 commits into from
Jan 17, 2025

Conversation

supersven
Copy link
Contributor

@supersven supersven commented Jan 16, 2025

Additional indices were not correctly refreshed in testMigrationToNewIndex due to a proxy masking them (forbidding to write access to the additional index with the default one's proxy URL.) Thus, it was a bit of luck if all index writes could be read, which led to flaky tests.

This PR lets /i/index/refresh sync default and additional indices with their dedicated URL.

Tickets:

N.B. yes, it is a bit weird to request merging with a failing pipeline. But, index migration tests seem to be stable now.

Checklist

  • Add a new entry in an appropriate subdirectory of changelog.d
  • Read and follow the PR guidelines

Knowing the index name(s) to handle, simplifies debugging the
ElasticSearch test proxy.
@zebot zebot added the ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist label Jan 16, 2025
The additional index doesn't have to reside on the same ElasticSearch
instance. In fact, in some tests we simulate (with proxies) that it
doesn't. These tests were flaky due to the second index not being
refreshed.
@supersven supersven force-pushed the sventennie/deflake-index-migration-tests branch from ef177e5 to 9ae50c4 Compare January 16, 2025 16:52
@supersven supersven marked this pull request as ready for review January 17, 2025 07:55
@supersven supersven changed the title Deflake index migration tests Stabilize index migration tests Jan 17, 2025
@supersven supersven requested a review from fisx January 17, 2025 08:00
@supersven supersven merged commit 8b85c47 into develop Jan 17, 2025
9 of 11 checks passed
@supersven supersven deleted the sventennie/deflake-index-migration-tests branch January 17, 2025 10:15
@echoes-hq echoes-hq bot added the echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici... label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
echoes: technical-roadmap/throughput More specific category, to highlight task aiming at improving the development velocity and effici... ok-to-test Approved for running tests in CI, overrides not-ok-to-test if both labels exist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants