You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "adoroszlai (via GitHub)" <gi...@apache.org> on 2024/07/16 10:04:44 UTC

[PR] HDDS-11105. Generate Robot report in container [ozone]

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

   ## What changes were proposed in this pull request?
   
   `compose/testlib.sh` runs Robot tests in Docker containers.  However, it tries to generate test reports locally, which assumes Robot Framework is installed on the host.  It fails if `rebot` is not found, even if all tests pass.
   
   `acceptance.sh` installs Robot Framework if it's not already available.  Therefore it can assume the command `rebot` is available for report generation.
   
   To simplify local use of acceptance tests, `testlib.sh` could generate reports in an `ozone-runner` container, similarly to how tests are executed.  Thus we can avoid the need to install Robot Framework.
   
   https://issues.apache.org/jira/browse/HDDS-11105
   
   ## How was this patch tested?
   
   Downloaded acceptance artifacts from CI run and checked `log.html`:
   https://github.com/adoroszlai/ozone/actions/runs/9953554917


-- 
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


Re: [PR] HDDS-11105. Generate Robot report in container [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #6951:
URL: https://github.com/apache/ozone/pull/6951#issuecomment-2276429211

   > > Downloaded acceptance artifacts from CI run and checked log.html:
   > 
   > This worked earlier too right ?
   
   Yes.  However GitHub's runner doesn't have Robot Framework installed, we used to install it (`install_robot`).  So the point of my test is to confirm that the report is generated correctly even after removing these installation steps.
   
   > I think the test should be to locally run a robot test via test-single.sh
   
   ```
   $ cd hadoop-ozone/dist/target/ozone-1.5.0-SNAPSHOT/compose/ozone
   $ OZONE_DATANODES=3 ./run.sh -d
   $ ../test-single.sh scm basic/basic.robot
   Using Docker Compose v2
   ==============================================================================
   Basic :: Smoketest ozone cluster startup                                      
   ==============================================================================
   Check webui static resources                                          | PASS |
   ------------------------------------------------------------------------------
   Basic Freon smoketest                                                 | PASS |
   ------------------------------------------------------------------------------
   Basic :: Smoketest ozone cluster startup                              | PASS |
   2 tests, 2 passed, 0 failed
   ==============================================================================
   Output:  /tmp/smoketest/ozone/result/robot-1.xml
   Successfully copied 16.4kB to result/
   To use Ozone please mount ozone folder to /opt/hadoop
   Log:     /rebot-output/log.html
   Report:  /rebot-output/report.html
   renamed 'result/tmp.4EzMdcfwHjrebot/log.html' -> 'result/log.html'
   renamed 'result/tmp.4EzMdcfwHjrebot/report.html' -> 'result/report.html'
   
   $ open result/log.html
   ```


-- 
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


Re: [PR] HDDS-11105. Generate Robot report in container [ozone]

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


-- 
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


Re: [PR] HDDS-11105. Generate Robot report in container [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on PR #6951:
URL: https://github.com/apache/ozone/pull/6951#issuecomment-2278584518

   Thanks @sadanand48 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


Re: [PR] HDDS-11105. Generate Robot report in container [ozone]

Posted by "sadanand48 (via GitHub)" <gi...@apache.org>.
sadanand48 commented on code in PR #6951:
URL: https://github.com/apache/ozone/pull/6951#discussion_r1709396260


##########
hadoop-ozone/dev-support/checks/acceptance.sh:
##########
@@ -52,11 +52,6 @@ if [[ "${OZONE_ACCEPTANCE_SUITE}" == "s3a" ]]; then
   download_hadoop_aws "${HADOOP_AWS_DIR}"
 fi
 
-if [[ "${OZONE_ACCEPTANCE_TEST_TYPE}" == "robot" ]]; then
-  install_virtualenv
-  install_robot

Review Comment:
   Are these already present on the docker images?



-- 
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


Re: [PR] HDDS-11105. Generate Robot report in container [ozone]

Posted by "adoroszlai (via GitHub)" <gi...@apache.org>.
adoroszlai commented on code in PR #6951:
URL: https://github.com/apache/ozone/pull/6951#discussion_r1710076275


##########
hadoop-ozone/dev-support/checks/acceptance.sh:
##########
@@ -52,11 +52,6 @@ if [[ "${OZONE_ACCEPTANCE_SUITE}" == "s3a" ]]; then
   download_hadoop_aws "${HADOOP_AWS_DIR}"
 fi
 
-if [[ "${OZONE_ACCEPTANCE_TEST_TYPE}" == "robot" ]]; then
-  install_virtualenv
-  install_robot

Review Comment:
   Yes.  Robot tests are run in containers, so they must have Robot installed.
   
   https://github.com/apache/ozone-docker-runner/blob/c3fe81f9cc94e4f0a429cf1bf5a7f441a3a1f701/Dockerfile#L61



-- 
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