Conversation
Enchance Retry anaylzer Fix test thread count
sijie
left a comment
There was a problem hiding this comment.
Just a general question, how do we get the surefire-reports for each job? In other words, how do I know which tests are failing and where can I find the error log?
.github/workflows/unit-ci.yaml
Outdated
|
|
||
| - name: run unit tests | ||
| run: | | ||
| java -version |
There was a problem hiding this comment.
how can we specify the java and javac version?
There was a problem hiding this comment.
added action to choose jdk
.github/workflows/unit-ci.yaml
Outdated
| javac -version | ||
| export TEST_TIMEOUT_ENV_MILLIS=30000 | ||
| export TEST_RETRY_COUNT=3 | ||
| mvn install No newline at end of file |
There was a problem hiding this comment.
| mvn install | |
| mvn -B clean license:check install | |
| src/check-binary-license ./distribution/server/target/apache-pulsar-*-bin.tar.gz |
| run: | | ||
| java -version | ||
| javac -version | ||
| mvn install -Pdocker -DskipTests |
There was a problem hiding this comment.
| mvn install -Pdocker -DskipTests | |
| mvn -B clean install -Pdocker -DskipTests | |
| java -version | ||
| javac -version | ||
| mvn install -Pdocker -DskipTests | ||
| mvn -f tests/pom.xml test -DintegrationTests No newline at end of file |
There was a problem hiding this comment.
| mvn -f tests/pom.xml test -DintegrationTests | |
| mvn -f tests/pom.xml -DintegrationTests -DredirectTestOutputToFile=false |
Choose jdk 8 Update commands
Downloading the logs doesn't address the question I raised. First of all, the test logs are not sent to console directly. So the log of the job doesn't provide any useful information. Secondly, even you configure redirect the test output to console. You end up get a huge file for all the output for all the tests. It is almost impossible to get any useful information. If you take a look at jenkin jobs, we collect the surefire-reports into archive. so you can check the output for individual tests. That helps quickly locate the errors for the given test. https://builds.apache.org/job/pulsar_precommit_java8/11065/artifact/ |
|
Added archiving and uploading sure fire artifacts |
|
@aahmed-se as discussed in the email thread, it seems Github Action is not a solution for Pulsar. Can we close the related pull requests? |
|
Will leave this one open close all the others. |

We are adding support for complementary ci cd jobs based on Github actions. these jobs will run in parallel and thereafter we can deprecate the jenkins check in jobs.