-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Make test cluster tasks depend on fipsResources when fips enabled #74670
Make test cluster tasks depend on fipsResources when fips enabled #74670
Conversation
The fips specific cluster specification depends on files that are declared as output of the fips-resources task. So far there has not been an explicit dependency of all TestClustersAware tasks (so far only for Test tasks) to this resources task in our build and. implicit usage of task outputs without any explicit task dependency has been deprecated in Gradle as the build tool detects that these file are outputs of this task and urges users to have this explicit dependency declared in a build. RestIntegTestTask had this dependencies explicitly declared by us having defined a dependency by declaring `tasks.withType(Test) { dependsOn 'fipsResources'}`. This has be replaced by with this PR by `tasks.withType(TestClustersAware) { dependsOn 'fipsResources'}` which also covers usages of `DefaultTestClustersTask` as used in the `:x-pack:plugin:eql:qa:multi-cluster-with-security` project which fails in elastic#74664 fixes elastic#74664
Pinging @elastic/es-delivery (Team:Delivery) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TIL. Thanks @breskeby 👍
@breskeby I got a new failure on PR #74662 after merging the master branch. Failure message is something like:
Is it related to the changes introduced here? Build scan: https://gradle-enterprise.elastic.co/s/ptphumjq27igu |
It shouldn't, but I'll look into this. |
This is not a a result of this PR. I see there are a few of those failures on ci the last few days. Is this reproducible for you? |
Thanks for looking into it. Sorry I assumed it could be due to this PR when seeing the words about Yes it is reproducible locally on the master branch with the followings: |
💔 Backport failed
To backport manually run: |
…astic#74670) The fips specific cluster specification depends on files that are declared as output of the fips-resources task. So far there has not been an explicit dependency of all TestClustersAware tasks (so far only for Test tasks) to this resources task in our build and. implicit usage of task outputs without any explicit task dependency has been deprecated in Gradle as the build tool detects that these file are outputs of this task and urges users to have this explicit dependency declared in a build. RestIntegTestTask had this dependencies explicitly declared by us having defined a dependency by declaring `tasks.withType(Test) { dependsOn 'fipsResources'}`. This has be replaced by with this PR by `tasks.withType(TestClustersAware) { dependsOn 'fipsResources'}` which also covers usages of `DefaultTestClustersTask` as used in the `:x-pack:plugin:eql:qa:multi-cluster-with-security` project which fails in elastic#74664 fixes elastic#74664
…4670) (#74808) The fips specific cluster specification depends on files that are declared as output of the fips-resources task. So far there has not been an explicit dependency of all TestClustersAware tasks (so far only for Test tasks) to this resources task in our build and. implicit usage of task outputs without any explicit task dependency has been deprecated in Gradle as the build tool detects that these file are outputs of this task and urges users to have this explicit dependency declared in a build. RestIntegTestTask had this dependencies explicitly declared by us having defined a dependency by declaring `tasks.withType(Test) { dependsOn 'fipsResources'}`. This has be replaced by with this PR by `tasks.withType(TestClustersAware) { dependsOn 'fipsResources'}` which also covers usages of `DefaultTestClustersTask` as used in the `:x-pack:plugin:eql:qa:multi-cluster-with-security` project which fails in #74664 fixes #74664
…4670) (#74808) The fips specific cluster specification depends on files that are declared as output of the fips-resources task. So far there has not been an explicit dependency of all TestClustersAware tasks (so far only for Test tasks) to this resources task in our build and. implicit usage of task outputs without any explicit task dependency has been deprecated in Gradle as the build tool detects that these file are outputs of this task and urges users to have this explicit dependency declared in a build. RestIntegTestTask had this dependencies explicitly declared by us having defined a dependency by declaring `tasks.withType(Test) { dependsOn 'fipsResources'}`. This has be replaced by with this PR by `tasks.withType(TestClustersAware) { dependsOn 'fipsResources'}` which also covers usages of `DefaultTestClustersTask` as used in the `:x-pack:plugin:eql:qa:multi-cluster-with-security` project which fails in #74664 fixes #74664
This fixes a regression introduced with elastic#74670. Vanilla test tasks (of plain type Test) must also dependOn `fipsResources` when build is run in FIPS mode. Otherwise we see the plain test task failing with "SHA MessageDigest not available" Fixes elastic#74922
This fixes a regression introduced with elastic#74670. Vanilla test tasks (of plain type Test) must also dependOn `fipsResources` when build is run in FIPS mode. Otherwise we see the plain test task failing with "SHA MessageDigest not available" Fixes elastic#74922
The fips specific cluster specification depends on files that are declared
as output of the fips-resources task. So far there has not been an explicit
dependency of all TestClustersAware tasks (so far only for Test tasks) to this
resources task in our build and.
implicit usage of task outputs without any explicit task dependency has been
deprecated in Gradle as the build tool detects that these file are outputs of
this task and urges users to have this explicit dependency declared in a build.
RestIntegTestTask had this dependencies explicitly declared by us having defined a dependency
by declaring
tasks.withType(Test) { dependsOn 'fipsResources'}
.This has be replaced by with this PR by
tasks.withType(TestClustersAware) { dependsOn 'fipsResources'}
which also covers usages of
DefaultTestClustersTask
as used in the:x-pack:plugin:eql:qa:multi-cluster-with-security
project whichfails in #74664
fixes #74664