【已解决】使用回归测试集regression-test,出现mvn编译报错

Viewed 78

当前版本是1.1.3-rc02,想使用回归测试集,根据官网文档说明,运行 ./run-regression-test.sh
mvn编译报错:


[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  03:22 min
[INFO] Finished at: 2024-04-19T06:01:03Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.9.0:compile (default-compile) on project regression-test: Compilation failure
[ERROR] Failure executing groovy-eclipse compiler:
[ERROR] ----------
[ERROR] 1. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 27)
[ERROR]         import org.apache.doris.regression.util.SuiteInfo
[ERROR]                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:unable to resolve class org.apache.doris.regression.util.SuiteInfo
[ERROR] ----------
[ERROR] 2. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 106)
[ERROR]         recorder.onSuccess(new SuiteInfo(file, group, suiteName))
[ERROR]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - Cannot find matching method org.apache.doris.regression.util.Recorder#onSuccess(org.apache.doris.regression.util.SuiteInfo). Please check if the declared type is correct and if the method exists.
[ERROR] ----------
[ERROR] 3. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 106)
[ERROR]         recorder.onSuccess(new SuiteInfo(file, group, suiteName))
[ERROR]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - Cannot find matching method org.apache.doris.regression.util.SuiteInfo#<init>(java.io.File, java.lang.String, java.lang.String). Please check if the declared type is correct and if the method exists.
[ERROR] ----------
[ERROR] 4. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 109)
[ERROR]         recorder.onFailure(new SuiteInfo(file, group, suiteName))
[ERROR]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - Cannot find matching method org.apache.doris.regression.util.Recorder#onFailure(org.apache.doris.regression.util.SuiteInfo). Please check if the declared type is correct and if the method exists.
[ERROR] ----------
[ERROR] 5. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 109)
[ERROR]         recorder.onFailure(new SuiteInfo(file, group, suiteName))
[ERROR]                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - Cannot find matching method org.apache.doris.regression.util.SuiteInfo#<init>(java.io.File, java.lang.String, java.lang.String). Please check if the declared type is correct and if the method exists.
[ERROR] ----------
[ERROR] 6. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 140)
[ERROR]         "${info.file.absolutePath}: group=${info.group}, name=${info.suiteName}"
[ERROR]            ^^^^^^^^^
[ERROR] Groovy:[Static type checking] - No such property: file for class: SuiteInfo
[ERROR] ----------
[ERROR] 7. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 140)
[ERROR]         "${info.file.absolutePath}: group=${info.group}, name=${info.suiteName}"
[ERROR]                                             ^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - No such property: group for class: SuiteInfo
[ERROR] ----------
[ERROR] 8. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 140)
[ERROR]         "${info.file.absolutePath}: group=${info.group}, name=${info.suiteName}"
[ERROR]                                                                 ^^^^^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - No such property: suiteName for class: SuiteInfo
[ERROR] ----------
[ERROR] 9. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 148)
[ERROR]         "${info.file.absolutePath}: group=${info.group}, name=${info.suiteName}"
[ERROR]            ^^^^^^^^^
[ERROR] Groovy:[Static type checking] - No such property: file for class: SuiteInfo
[ERROR] ----------
[ERROR] 10. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 148)
[ERROR]         "${info.file.absolutePath}: group=${info.group}, name=${info.suiteName}"
[ERROR]                                             ^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - No such property: group for class: SuiteInfo
[ERROR] ----------
[ERROR] 11. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/RegressionTest.groovy (at line 148)
[ERROR]         "${info.file.absolutePath}: group=${info.group}, name=${info.suiteName}"
[ERROR]                                                                 ^^^^^^^^^^^^^^
[ERROR] Groovy:[Static type checking] - No such property: suiteName for class: SuiteInfo
[ERROR] ----------
[ERROR] ----------
[ERROR] 12. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/util/Recorder.groovy (at line 24)
[ERROR]         public final List<SuiteInfo> successList = new ArrayList<>()
[ERROR]                           ^^^^^^^^^
[ERROR] Groovy:unable to resolve class SuiteInfo
[ERROR] ----------
[ERROR] 13. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/util/Recorder.groovy (at line 25)
[ERROR]         public final List<SuiteInfo> failureList = new ArrayList<>()
[ERROR]                           ^^^^^^^^^
[ERROR] Groovy:unable to resolve class SuiteInfo
[ERROR] ----------
[ERROR] 14. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/util/Recorder.groovy (at line 27)
[ERROR]         void onSuccess(SuiteInfo suiteInfo) {
[ERROR]                        ^^^^^^^^^
[ERROR] Groovy:unable to resolve class SuiteInfo
[ERROR] ----------
[ERROR] 15. ERROR in /doris_test/regression-test/framework/src/main/groovy/org/apache/doris/regression/util/Recorder.groovy (at line 31)
[ERROR]         void onFailure(SuiteInfo suiteInfo) {
[ERROR]                        ^^^^^^^^^
[ERROR] Groovy:unable to resolve class SuiteInfo
[ERROR] ----------
[ERROR] 15 problems (15 errors)

应该如何解,以及使用regression-test的正确姿势

1 Answers

jdk 版本是 1.8 吗?
1.1.x 太老了,目前主要维护 2.0 和 2.1 版本。可以切到最新的版本