@@ -17,6 +17,7 @@ tasks.withType(licenseHeaders.class) {
17
17
}
18
18
19
19
validateNebulaPom. enabled = false
20
+ loggerUsageCheck. enabled = false
20
21
21
22
repositories {
22
23
mavenCentral()
@@ -63,14 +64,15 @@ compileTestJava {
63
64
}
64
65
}
65
66
66
- tasks. integTest. dependsOn(' :plugin:bundlePlugin' , ' :integ-test:integTestWithNewEngine' )
67
- testClusters. integTest {
67
+ testClusters. all {
68
68
testDistribution = ' oss'
69
- plugin file(tasks . getByPath( ' :plugin:bundlePlugin ' ) . archiveFile)
69
+ plugin " :plugin"
70
70
}
71
71
72
72
// Run only legacy SQL ITs with new SQL engine disabled
73
- integTest. runner {
73
+ integTest {
74
+ dependsOn (' :plugin:bundlePlugin' ,' :integ-test:integTestWithNewEngine' )
75
+
74
76
systemProperty ' tests.security.manager' , ' false'
75
77
systemProperty(' project.root' , project. projectDir. absolutePath)
76
78
@@ -95,112 +97,95 @@ integTest.runner {
95
97
// Run PPL ITs and new, legacy and comparison SQL ITs with new SQL engine enabled
96
98
task integTestWithNewEngine (type : RestIntegTestTask ) {
97
99
dependsOn ' :plugin:bundlePlugin'
98
- runner {
99
- systemProperty ' tests.security.manager' , ' false'
100
- systemProperty(' project.root' , project. projectDir. absolutePath)
101
100
102
- systemProperty " https" , System . getProperty(" https" )
103
- systemProperty " user" , System . getProperty(" user" )
104
- systemProperty " password" , System . getProperty(" password" )
101
+ systemProperty ' tests.security.manager' , ' false'
102
+ systemProperty(' project.root' , project. projectDir. absolutePath)
105
103
106
- // Enable new SQL engine
107
- systemProperty ' enableNewEngine' , ' true'
104
+ systemProperty " https" , System . getProperty(" https" )
105
+ systemProperty " user" , System . getProperty(" user" )
106
+ systemProperty " password" , System . getProperty(" password" )
108
107
109
- // Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
110
- // requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
111
- doFirst { systemProperty ' cluster.debug' , getDebug() }
108
+ // Enable new SQL engine
109
+ systemProperty ' enableNewEngine' , ' true'
112
110
113
- if ( System . getProperty( " test.debug " ) != null ) {
114
- jvmArgs ' -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 '
115
- }
111
+ // Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
112
+ // requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
113
+ doFirst { systemProperty ' cluster.debug ' , getDebug() }
116
114
117
- exclude ' com/amazon/opendistroforelasticsearch/sql/doctest/**/*IT.class'
118
- exclude ' com/amazon/opendistroforelasticsearch/sql/correctness/**'
115
+ if (System . getProperty(" test.debug" ) != null ) {
116
+ jvmArgs ' -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
117
+ }
119
118
120
- // Explain IT is dependent on internal implementation of old engine so it's not necessary
121
- // to run these with new engine and not necessary to make this consistent with old engine.
122
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/ExplainIT.class'
123
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/PrettyFormatterIT.class'
124
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/TermQueryExplainIT.class'
119
+ exclude ' com/amazon/opendistroforelasticsearch/sql/doctest/**/*IT.class'
120
+ exclude ' com/amazon/opendistroforelasticsearch/sql/correctness/**'
125
121
126
- // Skip old semantic analyzer IT because analyzer in new engine has different behavior
127
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/QueryAnalysisIT.class'
122
+ // Explain IT is dependent on internal implementation of old engine so it's not necessary
123
+ // to run these with new engine and not necessary to make this consistent with old engine.
124
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/ExplainIT.class'
125
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/PrettyFormatterIT.class'
126
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/TermQueryExplainIT.class'
128
127
129
- // Skip this IT to avoid breaking tests due to inconsistency in JDBC schema
130
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/AggregationExpressionIT .class'
128
+ // Skip old semantic analyzer IT because analyzer in new engine has different behavior
129
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/QueryAnalysisIT .class'
131
130
132
- // Skip this IT because all assertions are against explain output
133
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/OrderIT.class'
134
- }
135
- }
131
+ // Skip this IT to avoid breaking tests due to inconsistency in JDBC schema
132
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/AggregationExpressionIT.class'
136
133
137
- testClusters. integTestWithNewEngine {
138
- testDistribution = ' oss'
139
- plugin file(tasks. getByPath(' :plugin:bundlePlugin' ). archiveFile)
134
+ // Skip this IT because all assertions are against explain output
135
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/OrderIT.class'
140
136
}
141
137
142
138
139
+
140
+
143
141
task docTest (type : RestIntegTestTask ) {
144
142
dependsOn ' :plugin:bundlePlugin'
145
- runner {
146
- systemProperty ' tests.security.manager' , ' false'
147
- systemProperty(' project.root' , project. projectDir. absolutePath)
148
-
149
- // Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
150
- // requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
151
- doFirst { systemProperty ' cluster.debug' , getDebug()}
152
-
153
- if (System . getProperty(" test.debug" ) != null ) {
154
- jvmArgs ' -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
155
- }
156
-
157
- include ' com/amazon/opendistroforelasticsearch/sql/doctest/**/*IT.class'
158
- exclude ' com/amazon/opendistroforelasticsearch/sql/correctness/**/*IT.class'
159
- exclude ' com/amazon/opendistroforelasticsearch/sql/ppl/**/*IT.class'
160
- exclude ' com/amazon/opendistroforelasticsearch/sql/sql/**/*IT.class'
161
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/**/*IT.class'
143
+
144
+ systemProperty ' tests.security.manager' , ' false'
145
+ systemProperty(' project.root' , project. projectDir. absolutePath)
146
+
147
+ // Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
148
+ // requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
149
+ doFirst { systemProperty ' cluster.debug' , getDebug()}
150
+
151
+ if (System . getProperty(" test.debug" ) != null ) {
152
+ jvmArgs ' -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
162
153
}
163
- }
164
154
165
- testClusters. docTest {
166
- testDistribution = ' oss'
167
- plugin file(tasks. getByPath(' :plugin:bundlePlugin' ). archiveFile)
155
+ include ' com/amazon/opendistroforelasticsearch/sql/doctest/**/*IT.class'
156
+ exclude ' com/amazon/opendistroforelasticsearch/sql/correctness/**/*IT.class'
157
+ exclude ' com/amazon/opendistroforelasticsearch/sql/ppl/**/*IT.class'
158
+ exclude ' com/amazon/opendistroforelasticsearch/sql/sql/**/*IT.class'
159
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/**/*IT.class'
168
160
}
169
161
170
-
171
162
task comparisonTest (type : RestIntegTestTask ) {
172
163
dependsOn ' :plugin:bundlePlugin'
173
- runner {
174
- systemProperty ' tests.security.manager' , ' false'
175
- systemProperty(' project.root' , project. projectDir. absolutePath)
176
-
177
- // Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
178
- // requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
179
- doFirst { systemProperty ' cluster.debug' , getDebug()}
180
-
181
- if (System . getProperty(" test.debug" ) != null ) {
182
- jvmArgs ' -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
183
- }
184
-
185
- include ' com/amazon/opendistroforelasticsearch/sql/correctness/**/*IT.class'
186
- exclude ' com/amazon/opendistroforelasticsearch/sql/doctest/**/*IT.class'
187
- exclude ' com/amazon/opendistroforelasticsearch/sql/ppl/**/*IT.class'
188
- exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/**/*IT.class'
189
-
190
- // Enable logging output to console
191
- testLogging. showStandardStreams true
192
-
193
- // Pass down system properties to IT class
194
- systemProperty " esHost" , System . getProperty(" esHost" )
195
- systemProperty " dbUrl" , System . getProperty(" dbUrl" )
196
- systemProperty " otherDbUrls" , System . getProperty(" otherDbUrls" )
197
- systemProperty " queries" , System . getProperty(" queries" )
164
+
165
+ systemProperty ' tests.security.manager' , ' false'
166
+ systemProperty(' project.root' , project. projectDir. absolutePath)
167
+
168
+ // Tell the test JVM if the cluster JVM is running under a debugger so that tests can use longer timeouts for
169
+ // requests. The 'doFirst' delays reading the debug setting on the cluster till execution time.
170
+ doFirst { systemProperty ' cluster.debug' , getDebug()}
171
+
172
+ if (System . getProperty(" test.debug" ) != null ) {
173
+ jvmArgs ' -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005'
198
174
}
199
- }
200
175
201
- testClusters. comparisonTest {
202
- testDistribution = ' oss'
203
- plugin file(tasks. getByPath(' :plugin:bundlePlugin' ). archiveFile)
176
+ include ' com/amazon/opendistroforelasticsearch/sql/correctness/**/*IT.class'
177
+ exclude ' com/amazon/opendistroforelasticsearch/sql/doctest/**/*IT.class'
178
+ exclude ' com/amazon/opendistroforelasticsearch/sql/ppl/**/*IT.class'
179
+ exclude ' com/amazon/opendistroforelasticsearch/sql/legacy/**/*IT.class'
180
+
181
+ // Enable logging output to console
182
+ testLogging. showStandardStreams true
183
+
184
+ // Pass down system properties to IT class
185
+ systemProperty " esHost" , System . getProperty(" esHost" )
186
+ systemProperty " dbUrl" , System . getProperty(" dbUrl" )
187
+ systemProperty " otherDbUrls" , System . getProperty(" otherDbUrls" )
188
+ systemProperty " queries" , System . getProperty(" queries" )
204
189
}
205
190
206
191
task compileJdbc (type :Exec ) {
0 commit comments