You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/01/10 19:25:32 UTC

[GitHub] [ozone] adoroszlai opened a new pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

adoroszlai opened a new pull request #2974:
URL: https://github.com/apache/ozone/pull/2974


   ## What changes were proposed in this pull request?
   
   `ozone-runner` image version is defined in `hadoop-ozone/dist/pom.xml`.  Changing it triggers a complete CI run, although it does not affect unit or integration tests in any way.  Actually, `hadoop-ozone/dist` does not have any Java code, as it assembles other modules after build.  So we can skip all Java-specific checks.
   
   https://issues.apache.org/jira/browse/HDDS-6169
   
   ## How was this patch tested?
   
   Added test case in `selective_ci_checks.bats`.
   
   ```
   $ bats dev-support/ci/selective_ci_checks.bats
   ...
    ✓ runner image update
   ...
   17 tests, 0 failures
   ```
   
   The script includes instructions on how to run:
   https://github.com/apache/ozone/blob/a31b79a0cf0677a11dda1e9d3de70cf22f7b045a/dev-support/ci/selective_ci_checks.bats#L17-L31


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1022391639


   That's a good point you make in HDDS-6186 about needing to rerun the integration tests if any of the helpers change.  I didn't think of that, and my approach doesn't address that.  
   
   But are you sure there are no utilities that match "Test*.java"?
   


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] adoroszlai commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1032528521


   Thanks @GeorgeJahad and @smengcl 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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1020401793


   @adoroszlai  will do, hopefully in the next day or two


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1020401793


   @adoroszlai  will do, hopefully in the next day or two


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] adoroszlai merged pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
adoroszlai merged pull request #2974:
URL: https://github.com/apache/ozone/pull/2974


   


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] adoroszlai commented on a change in pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on a change in pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#discussion_r792018991



##########
File path: dev-support/ci/selective_ci_checks.bats
##########
@@ -66,6 +66,17 @@ load bats-assert/load.bash
   assert_output -p needs-kubernetes-tests=true
 }
 
+@test "runner image update" {
+  run dev-support/ci/selective_ci_checks.sh b95eeba82a
+
+  assert_output -p 'basic-checks=["rat"]'

Review comment:
       Correct.  The removed ones are all java-specific.




-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] adoroszlai commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1020341437


   @GeorgeJahad could you please also review if you have some time?


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1021556182


   > I think that behavior is specific to old versions of Bats (pre-1.2.1).
   
   You are right.  I had an old version in my path.  


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1021467548


   This comment confused me for a while, because it emphasizes the ozone-runner image:
   
   *ozone-runner image version is defined in hadoop-ozone/dist/pom.xml. Changing it triggers a complete CI run, although it does not affect unit or integration tests in any way. Actually, hadoop-ozone/dist does not have any Java code, as it assembles other modules after build. So we can skip all Java-specific checks.*
   
   I would have left the ozone-runner out of it.  To me it is clearer to just say:
   
   *hadoop-ozone/dist does not have any Java code, as it assembles other modules after build. So we can skip all Java-specific checks, for any changes in that directory.*
   


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad edited a comment on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad edited a comment on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1022391639


   That's a good point you make in HDDS-6186 about needing to rerun the integration tests if any of the helpers change.  I didn't think of that, and my approach doesn't address that.  
   
   But are you sure there are no helpers that match "Test*.java"?
   


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] adoroszlai commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
adoroszlai commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1021525442


   Thanks @GeorgeJahad for the review.
   
   > ```
   > ~/incoming/build-master/dev-support/ci ->     bats dev-support/ci/selective_ci_checks.bats 
   > bats: /home/gbj/incoming/build-master/dev-support/ci/bats-support/load.bash.bash does not exist
   > ```
   
   I think that behavior is specific to old versions of Bats (pre-1.2.1).
   
   > This comment confused me for a while, because it emphasizes the ozone-runner image:
   > 
   > _ozone-runner image version is defined in hadoop-ozone/dist/pom.xml. Changing it triggers a complete CI run, although it does not affect unit or integration tests in any way. Actually, hadoop-ozone/dist does not have any Java code, as it assembles other modules after build. So we can skip all Java-specific checks._
   > 
   > I would have left the ozone-runner out of it.
   
   I made the comment that way because it was a recent runner image version number bump that had started me on this change.  Initially I wanted to extract the version number to a properties file.  Only later did I realize that we can skip java checks for the entire submodule.  Sorry for the confusion.
   


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on a change in pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on a change in pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#discussion_r791976946



##########
File path: dev-support/ci/selective_ci_checks.bats
##########
@@ -66,6 +66,17 @@ load bats-assert/load.bash
   assert_output -p needs-kubernetes-tests=true
 }
 
+@test "runner image update" {
+  run dev-support/ci/selective_ci_checks.sh b95eeba82a
+
+  assert_output -p 'basic-checks=["rat"]'

Review comment:
       Is it correct to say that without these changes the basic-checks array would have looked like this?:
   ```
        basic-checks=["rat","checkstyle","findbugs","unit"]
   ```




-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad commented on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad commented on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1021458796


     +1
   
   The changes in this PR look good to me.  
   
   One other thing I noted is that the instructions for running the test didn't work for me.  To get them to work I had to make this change:
   ```
   -load bats-support/load.bash
   -load bats-assert/load.bash
   +load bats-support/load
   +load bats-assert/load
   ```
   otherwise i got this error:
   ```
   ~/incoming/build-master/dev-support/ci ->     bats dev-support/ci/selective_ci_checks.bats 
   bats: /home/gbj/incoming/build-master/dev-support/ci/bats-support/load.bash.bash does not exist
   ```


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org


[GitHub] [ozone] GeorgeJahad removed a comment on pull request #2974: HDDS-6169. Selective checks: skip junit tests on ozone-runner image update

Posted by GitBox <gi...@apache.org>.
GeorgeJahad removed a comment on pull request #2974:
URL: https://github.com/apache/ozone/pull/2974#issuecomment-1022391639


   That's a good point you make in HDDS-6186 about needing to rerun the integration tests if any of the helpers change.  I didn't think of that, and my approach doesn't address that.  
   
   But are you sure there are no helpers that match "Test*.java"?
   


-- 
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: issues-unsubscribe@ozone.apache.org

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



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org