You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by "himanshukandwal (via GitHub)" <gi...@apache.org> on 2024/01/04 18:03:22 UTC

[PR] [apache/helix] -- Updated GitHub actions file to generate unit tests reports. [helix]

himanshukandwal opened a new pull request, #2727:
URL: https://github.com/apache/helix/pull/2727

   ### Issues
   
   - [x] My PR addresses the following Helix issues and references them in the PR description:
   In this PR, we are updating the GH actions to have automated unit tests reporting.
   
   ### Description
   - [x] Here are some details about my PR, including screenshots of any UI changes:
   With this change we will see the summary of the test results to be generated like this: 
   
   <img width="984" alt="Screenshot 2024-01-04 at 10 00 27 AM" src="https://github.com/apache/helix/assets/2539436/30756db4-339e-412b-a2d8-818a4feaed36">
   
   ### Tests
   - [x] The following tests are written for this issue:
   Sample Test run: https://github.com/himanshukandwal/helix/actions/runs/7258980203/job/19778076528 
   
   - The following is the result of the "mvn test" command on the appropriate module:
   
   (If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
   
   ### Changes that Break Backward Compatibility (Optional)
   
   - My PR contains changes that break backward compatibility or previous assumptions for certain methods or API. They include:
   
   (Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
   
   ### Documentation (Optional)
   
   - In case of new functionality, my PR adds documentation in the following wiki page:
   
   (Link the GitHub wiki you added)
   
   ### Commits
   
   - My commits all reference appropriate Apache Helix GitHub issues in their subject lines. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Code Quality
   
   - My diff has been formatted using helix-style.xml 
   (helix-style-intellij.xml if IntelliJ IDE is used)
   


-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


Re: [PR] [apache/helix] -- Updated GitHub actions file to generate unit tests reports. [helix]

Posted by "himanshukandwal (via GitHub)" <gi...@apache.org>.
himanshukandwal commented on PR #2727:
URL: https://github.com/apache/helix/pull/2727#issuecomment-1894337546

   This PR is ready to be merged.
   
   Final Commit Message:
   We are updating the Github CI/CD actions to have automated unit tests reporting.
   
   


-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


Re: [PR] [apache/helix] -- Updated GitHub actions file to generate unit tests reports. [helix]

Posted by "himanshukandwal (via GitHub)" <gi...@apache.org>.
himanshukandwal commented on code in PR #2727:
URL: https://github.com/apache/helix/pull/2727#discussion_r1453868851


##########
.github/workflows/Helix-Manual-CI.yml:
##########
@@ -24,16 +26,27 @@ jobs:
       - uses: actions/checkout@v2
         with:
           ref: ${{ github.event.inputs.buildRef }}
-      - name: Set up JDK 1.8
+      - name: Set up JDK 11
         uses: actions/setup-java@v1
         with:
-          java-version: 1.8
+          java-version: 11
       - name: Delete frontend-maven-plugin dir
         run: rm -rf .m2\repository\com\github\eirslett
       - name: Build with Maven
         run: mvn clean install -Dmaven.test.skip.exec=true -DretryFailedDeploymentCount=5
       - name: Run All Tests
         run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ github.event.inputs.mvnOpts }} ${{ github.event.inputs.goals }}
-      - name: Print Tests Results
-        run: .github/scripts/printTestResult.sh
-        if: ${{ success() || failure() }}
+      - name: Test Report
+        uses: dorny/test-reporter@v1
+        if: always()
+        with:
+          name: Tests Results
+          path: './**/target/surefire-reports/TEST-TestSuite.xml'
+          reporter: java-junit
+      - name: Upload unit test results
+        if: failure()
+        uses: actions/upload-artifact@v2
+        with:
+          name: surefire-reports
+          path: ./**/target/surefire-reports/
+          if-no-files-found: ignore

Review Comment:
   Yes updated. Thank you Junkai for the review. :) 



-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


Re: [PR] [apache/helix] -- Updated GitHub actions file to generate unit tests reports. [helix]

Posted by "junkaixue (via GitHub)" <gi...@apache.org>.
junkaixue commented on code in PR #2727:
URL: https://github.com/apache/helix/pull/2727#discussion_r1450966051


##########
.github/workflows/Helix-Manual-CI.yml:
##########
@@ -24,16 +26,27 @@ jobs:
       - uses: actions/checkout@v2
         with:
           ref: ${{ github.event.inputs.buildRef }}
-      - name: Set up JDK 1.8
+      - name: Set up JDK 11
         uses: actions/setup-java@v1
         with:
-          java-version: 1.8
+          java-version: 11
       - name: Delete frontend-maven-plugin dir
         run: rm -rf .m2\repository\com\github\eirslett
       - name: Build with Maven
         run: mvn clean install -Dmaven.test.skip.exec=true -DretryFailedDeploymentCount=5
       - name: Run All Tests
         run: mvn -B -V -e -ntp "-Dstyle.color=always" ${{ github.event.inputs.mvnOpts }} ${{ github.event.inputs.goals }}
-      - name: Print Tests Results
-        run: .github/scripts/printTestResult.sh
-        if: ${{ success() || failure() }}
+      - name: Test Report
+        uses: dorny/test-reporter@v1
+        if: always()
+        with:
+          name: Tests Results
+          path: './**/target/surefire-reports/TEST-TestSuite.xml'
+          reporter: java-junit
+      - name: Upload unit test results
+        if: failure()
+        uses: actions/upload-artifact@v2
+        with:
+          name: surefire-reports
+          path: ./**/target/surefire-reports/
+          if-no-files-found: ignore

Review Comment:
   NIT: extra new line can avoid this kind of symbol.



-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


Re: [PR] [apache/helix] -- Updated GitHub actions file to generate unit tests reports. [helix]

Posted by "xyuanlu (via GitHub)" <gi...@apache.org>.
xyuanlu merged PR #2727:
URL: https://github.com/apache/helix/pull/2727


-- 
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: reviews-unsubscribe@helix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org