deardeng commented on code in PR #40787:
URL: https://github.com/apache/doris/pull/40787#discussion_r1774372435
##########
regression-test/framework/src/main/groovy/org/apache/doris/regression/suite/Suite.groovy:
##########
@@ -283,15 +284,25 @@ class Suite implements GroovyInterceptable {
+ "see example demo_p0/docker_action.groovy")
}
- boolean pipelineIsCloud = isCloudMode()
+ try {
+ context.config.fetchCloudMode()
+ } catch (Exception e) {
+ }
+
boolean dockerIsCloud = false
if (options.cloudMode == null) {
- dockerIsCloud = pipelineIsCloud
+ if (context.config.runMode == RunMode.UNKNOWN) {
+ throw new Exception("Bad run mode, cloud or not_cloud is
unknown")
+ }
+ dockerIsCloud = context.config.runMode == RunMode.CLOUD
} else {
- dockerIsCloud = options.cloudMode
- if (dockerIsCloud != pipelineIsCloud &&
options.skipRunWhenPipelineDiff) {
+ if (options.cloudMode == true && context.config.runMode ==
RunMode.NOT_CLOUD) {
return
Review Comment:
add log
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]