OpenWIS / openwis

http://openwis.github.io/openwis
GNU General Public License v3.0
11 stars 15 forks source link

openwis pull request travis build issues #401

Open zhangz555 opened 2 years ago

zhangz555 commented 2 years ago

We have encountered pull request travis build issues.

See the pull request here: https://github.com/OpenWIS/openwis/pull/396 See the travis build issue here: https://app.travis-ci.com/github/OpenWIS/openwis/builds/255456535.

We will investigate the issue and provide the solution.

zhangz555 commented 2 years ago

The initial analysis suggests that there is issue related to jdk 11 on the Travis build platform.

zhangz555 commented 2 years ago

branch travis-build-issue-9-19-2022 is created in github, which is dedicated to the investigation and analysis for this issue.

zhangz555 commented 2 years ago

After tracking and reading the script, the initial judgement is that there is missing file at https://github.com/sormuras/bach/raw/releases/11/install-jdk.properties. This file is used in the script install-idk.sh script, which, in turn, in used in the travis build yml file.

zhangz555 commented 2 years ago

I create a file "zhan-install-jdk.properties" in branch travis-build-issue-9-19-2022. This file will serve script install-jdk.sh, which, in turn, is used in the yml file.

zhangz555 commented 2 years ago

Adding file "zhan-install-jdk.properties" in branch travis-build-issue-9-19-2022 and modifying script install-jdk.sh is to solve the jdk issue exposed in the failed travis build#389, which is mentioned at the beginning of this github issue. There is another error also revealed in the failed travis build#389, and this error is related to sonar. We can see these two errors in the log generated from the travis build#389. See below.

$ bash $TRAVIS_BUILD_DIR/install-jdk.sh -F 11 --target $JAVA_HOME install-jdk.sh 2020-06-02 Couldn't determine a download url for 11-GPL on linux-x64 The command "bash $TRAVIS_BUILD_DIR/install-jdk.sh -F 11 --target $JAVA_HOME" exited with 1. 0.01s$ mvn sonar:sonar -Popenwis,admin,user -Dsonar.projectKey=OpenWIS_openwis The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK not a JRE The command "mvn sonar:sonar -Popenwis,admin,user -Dsonar.projectKey=OpenWIS_openwis" exited with 1.

zhangz555 commented 2 years ago

The jdk issue in the failed travis build#389, mentioned at the beginning of this github issue, is solved. This can be seen in the travis build#400. I will move to another error that was also in travis build#389. This error is related to sonar.

zhangz555 commented 2 years ago

branch travis-build-issue-9-19-2022 triggers travis build#402, which has passed. See the results as following:

travis build

zhangz555 commented 2 years ago

Also in branch travis-build-issue-9-19-2022 triggered travis build#402, the jdk part. See below.

travis build 2

zhangz555 commented 2 years ago

pull request #402 is created for merging branch travis-build-issue-9-19-2022 back into master.