-
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
Fix pattern tests in release builds #120879
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
@@ -2958,6 +2960,8 @@ public void testValidJoinPattern() { | |||
} | |||
|
|||
public void testInvalidJoinPatterns() { | |||
assumeTrue("LOOKUP JOIN requires corresponding capability", EsqlCapabilities.Cap.JOIN_LOOKUP_V12.isEnabled()); |
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 let me know if it is more preferable to rely on Build.current().isSnapshot()
instead since JOIN_LOOKUP_V12
version is frequently incremented.
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 this is fine/preferable. We have one main capability JOIN_LOOKUP_V12
and all related caps should be enabled or disabled based on this.
# Conflicts: # x-pack/plugin/esql/src/test/java/org/elasticsearch/xpack/esql/parser/StatementParserTests.java
@@ -2958,6 +2960,8 @@ public void testValidJoinPattern() { | |||
} | |||
|
|||
public void testInvalidJoinPatterns() { | |||
assumeTrue("LOOKUP JOIN requires corresponding capability", EsqlCapabilities.Cap.JOIN_LOOKUP_V12.isEnabled()); |
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 this is fine/preferable. We have one main capability JOIN_LOOKUP_V12
and all related caps should be enabled or disabled based on this.
💔 Backport failed
You can use sqren/backport to manually backport by running |
testValidJoinPattern & testInvalidJoinPatterns are failing in release pipelines since corresponding feature is hidden behind the feature flag. Adding
assumeTrue
to disable such tests in release builds until the feature is enabled.Closes: #120848
Closes: #120849