Skip to content

Fix FileSettingsUpgradeIT to not create irrelevant clusters at all#110963

Merged
thecoop merged 2 commits into
elastic:mainfrom
thecoop:file-settings-upgrade-fix
Jul 17, 2024
Merged

Fix FileSettingsUpgradeIT to not create irrelevant clusters at all#110963
thecoop merged 2 commits into
elastic:mainfrom
thecoop:file-settings-upgrade-fix

Conversation

@thecoop
Copy link
Copy Markdown
Member

@thecoop thecoop commented Jul 17, 2024

@BeforeClass is executed after the test rules. This means it creates the clusters for all the invalid versions, which sometimes doesnt work.

Change it to a rule which definitely evaluates before the clusters are created. This will also speed up this test in CI

Fixes #110884

@thecoop thecoop added >test Issues or PRs that are addressing/adding tests :Core/Infra/Core Core issues without another label labels Jul 17, 2024
@thecoop thecoop requested a review from a team July 17, 2024 09:57
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v8.16.0 labels Jul 17, 2024
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@thecoop thecoop added v8.15.0 auto-backport Automatically create backport pull requests when merged labels Jul 17, 2024
Copy link
Copy Markdown
Contributor

@ldematte ldematte left a comment

Choose a reason for hiding this comment

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

LGTM
(and TIL about TestRule chain!)

@thecoop thecoop added auto-backport-and-merge and removed auto-backport Automatically create backport pull requests when merged labels Jul 17, 2024
@thecoop thecoop merged commit ede4038 into elastic:main Jul 17, 2024
@thecoop thecoop deleted the file-settings-upgrade-fix branch July 17, 2024 11:00
@elasticsearchmachine
Copy link
Copy Markdown
Collaborator

💔 Backport failed

Status Branch Result
8.15 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 110963

@thecoop
Copy link
Copy Markdown
Member Author

thecoop commented Jul 17, 2024

Doesn't exist in 8.15

salvatore-campagna pushed a commit to salvatore-campagna/elasticsearch that referenced this pull request Jul 17, 2024
elasticsearchmachine pushed a commit that referenced this pull request Dec 12, 2024
Fixes: #118311
#118310
#118309

Same issue that was fixed in:
#110963

`@BeforeClass` is executed after the test rules. This means it creates
the clusters for all the invalid versions, which sometimes doesnt work.

Change it to a rule which definitely evaluates before the clusters are
created. This will also speed up this test in CI.
maxhniebergall pushed a commit to maxhniebergall/elasticsearch that referenced this pull request Dec 16, 2024
…18455)

Fixes: elastic#118311
elastic#118310
elastic#118309

Same issue that was fixed in:
elastic#110963

`@BeforeClass` is executed after the test rules. This means it creates
the clusters for all the invalid versions, which sometimes doesnt work.

Change it to a rule which definitely evaluates before the clusters are
created. This will also speed up this test in CI.
maxhniebergall pushed a commit to maxhniebergall/elasticsearch that referenced this pull request Dec 16, 2024
…18455)

Fixes: elastic#118311
elastic#118310
elastic#118309

Same issue that was fixed in:
elastic#110963

`@BeforeClass` is executed after the test rules. This means it creates
the clusters for all the invalid versions, which sometimes doesnt work.

Change it to a rule which definitely evaluates before the clusters are
created. This will also speed up this test in CI.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Core Core issues without another label Team:Core/Infra Meta label for core/infra team >test Issues or PRs that are addressing/adding tests v8.16.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] FileSettingsUpgradeIT class failing

3 participants