Skip to content

Expand bcUpgradeTask to run more test suites. #128983

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

mosche
Copy link
Contributor

@mosche mosche commented Jun 5, 2025

Relates to ES-11904

#128984 contains the changes to the PR buildkite pipeline to test this change while the buildkite changes are not merged yet.

@mosche mosche requested review from a team June 5, 2025 12:47
@mosche mosche added >non-issue :Core/Infra/Core Core issues without another label labels Jun 5, 2025
@elasticsearchmachine elasticsearchmachine added Team:Core/Infra Meta label for core/infra team v9.1.0 labels Jun 5, 2025
@elasticsearchmachine
Copy link
Collaborator

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

@mosche mosche mentioned this pull request Jun 5, 2025
return Boolean.parseBoolean(
getSetting(
"xpack.security.enabled",
getVersion().equals(Version.fromString("0.0.0")) || getVersion().onOrAfter("8.0.0") ? "true" : "false"
Copy link
Contributor Author

@mosche mosche Jun 6, 2025

Choose a reason for hiding this comment

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

This fix makes sure to enable security if using the magic version number 0.0.0 (we're always > 8.0.0 in this case as we won't be backporting this as far).
Without this fix any test requiring security would fail.

@mosche mosche added auto-backport Automatically create backport pull requests when merged v9.0.3 labels Jun 6, 2025
@@ -24,3 +25,10 @@ buildParams.bwcVersions.withWireCompatible { bwcVersion, baseName ->
systemProperty("tests.old_cluster_version", bwcVersion)
}
}

tasks.register("bcUpgradeTest", StandaloneRestIntegTestTask) {
Copy link
Contributor

@breskeby breskeby Jun 6, 2025

Choose a reason for hiding this comment

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

lets extract that task registration into a plugin script and avoid all this duplication of task registration logic. we do something simliar to bwc tests.
see https://github.com/elastic/elasticsearch/blob/ae569def9c2cf95df3a642d431d8b8e63f6c9c19/build-tools-internal/src/main/groovy/elasticsearch.bwc-test.gradle as an example. you would just wrap this task registration lgoic into build-tools-internal/src/main/groovy/elasticsearch.bc-update-test.gradle and then apply the script as a plugin by

apply plugin: 'elasticsearch.bc-upgrade-test'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged :Core/Infra/Core Core issues without another label >non-issue Team:Core/Infra Meta label for core/infra team v9.0.3 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants