-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
[TEST] Run pre 6.4 nodes in non-FIPS JVMs #32901
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
bbfd15e
Run pre 6.4 nodes in non-FIPS JVMs
jkakavas 89f73cc
Revert "Tests: Disable rolling upgrade tests with system key on fips …
jkakavas d5c67cc
Revert "mute test #32737"
jkakavas 8f69f49
Address feedback
jkakavas 2d4cfaa
Merge remote-tracking branch 'origin/master' into pre6.4-fips-bwc
jkakavas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +0,0 @@ | ||
import org.elasticsearch.gradle.test.RestIntegTestTask | ||
|
||
// Skip test on FIPS FIXME https://github.com/elastic/elasticsearch/issues/32737 | ||
if (project.inFipsJvm) { | ||
tasks.withType(RestIntegTestTask) { | ||
enabled = false | ||
} | ||
} | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
import org.elasticsearch.gradle.test.RestIntegTestTask | ||
|
||
// Skip test on FIPS FIXME https://github.com/elastic/elasticsearch/issues/32737 | ||
if (project.inFipsJvm) { | ||
tasks.withType(RestIntegTestTask) { | ||
enabled = false | ||
} | ||
} | ||
|
||
group = "${group}.x-pack.qa.rolling-upgrade.with-system-key" |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm sure I'm missing something, but wouldn't this only change the version that we try to start on, but not stop the node from attempting to start?
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.
Correct. The intention is to not mute the tests but keep running them even when we're in a FIPS JVM in CI. The way to achieve this is to make sure that older ES version ( not supporting fips ) nodes start with a non fips java version
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.
This is not at all clear from the code. Can you please add a comment explaining it? If I understand correctly, by adding this other elseif condition, non fips testing will fall through and continue using the RUNTIME_JAVA_HOME? But isn't that a fips jvm in this case?
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.
Sure thing. I tried to capture it in
// Versions before 6.4.0 cannot be run in a FIPS 140 JVM
but I agree that's not very clear.Not sure I follow your thought. When RUNTIME_JAVA_HOME is a fips JVM,
project.inFipsJvm
will also be true.In summary:
When running in a non FIPS JVM
When running in a FIPS JVM
project.inFipsJvm
is trueDoes this make more sense ? Bear with me if I've missed your point entirely.
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.
Thanks, that is more clear.
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.
@rjernst I updated the comment, let me know if this is clear enough, thanks !