-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
ESQL: Fix version test failure on non-SNAPSHOT builds #107138
ESQL: Fix version test failure on non-SNAPSHOT builds #107138
Conversation
Test the snapshot ESQL version separately and take the current build into account.
Pinging @elastic/es-analytical-engine (Team:Analytics) |
for (EsqlVersion version : EsqlVersion.values()) { | ||
if (version == EsqlVersion.SNAPSHOT) { |
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 think the way to "skip" a test if some condition is not met is to use assumeTrue
.
assumeTrue("Should not test snapshot version here", version != EsqlVersion.SNAPSHOT)
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.
Please, ignore my comment. With this approach the test will always be skipped.
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.
LGTM
Thanks @astefan ! |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation |
Test the snapshot ESQL version separately and take the current build into account. (cherry picked from commit ad77d32)
Fix #107106
Test the snapshot ESQL version separately and take the current build into account.