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 2020/06/18 13:47:49 UTC

[GitHub] [hadoop-ozone] adoroszlai opened a new pull request #1093: HDDS-3826. Split Ozone FS acceptance tests

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


   ## What changes were proposed in this pull request?
   
   1. Split monolithic Ozone FS acceptance test case into several steps.  This improves feedback about test progress, and makes easier to find out what's wrong in case of a failure.  (Unfortunately most subsequent steps still depend on earlier ones.  Improving that would make the test slower due to the necessary extra setup steps.)
   2. Run test setup in proper `Setup` instead of a test case.
   3. Split test setup into reusable keywords.
   4. Add functions for formatting Ozone FS URLs with both o3fs and ofs flavor.  Includes its own test cases.
   5. Test execution for ofs and o3fs is controlled outside of the test script.  This is necessary to avoid duplication of test cases and/or keywords.
   6. Pass `SECURITY_ENABLED` and similar variables as Robot variables (`-v`), not environment ones (`-e`).  This allows setting default value in Robot tests, which makes it easier to run the test from command-line.
   
   Most of this is in preparation of bucket links, as the same test should be executed for regular buckets and links.  Submitting as a separate PR for easier review.
   
   Note that this PR is based on top of the change for #1091, a minor improvement which is necessary to save output of multiple executions of the same test suite (`ozonefs.robot` in this case).
   
   https://issues.apache.org/jira/browse/HDDS-3826
   
   ## How was this patch tested?
   
   Ran tests for lib locally (no docker-compose):
   
   ```
   $ robot lib
   ...
   Lib.Fs Tests                                                          | PASS |
   ...
   Lib.String Tests                                                      | PASS |
   ...
   ```
   
   Ran Ozone FS tests inside docker container bypassing `test.sh`:
   
   ```
   $ docker-compose exec scm robot smoketest/ozonefs/ozonefs.robot
   ...
   Ozonefs :: Ozone FS tests                                             | PASS |
   20 critical tests, 20 passed, 0 failed
   
   $ docker-compose exec scm robot -v SCHEME:o3fs smoketest/ozonefs/ozonefs.robot
   ...
   Ozonefs :: Ozone FS tests                                             | PASS |
   20 critical tests, 20 passed, 0 failed
   ```
   
   Full acceptance test suite:
   https://github.com/adoroszlai/hadoop-ozone/runs/783679213


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

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



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


[GitHub] [hadoop-ozone] elek merged pull request #1093: HDDS-3826. Split Ozone FS acceptance tests

Posted by GitBox <gi...@apache.org>.
elek merged pull request #1093:
URL: https://github.com/apache/hadoop-ozone/pull/1093


   


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

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



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


[GitHub] [hadoop-ozone] elek commented on pull request #1093: HDDS-3826. Split Ozone FS acceptance tests

Posted by GitBox <gi...@apache.org>.
elek commented on pull request #1093:
URL: https://github.com/apache/hadoop-ozone/pull/1093#issuecomment-647475183


   > Pass SECURITY_ENABLED and similar variables as Robot variables (-v), not environment ones (-e). This allows setting default value in Robot tests, which makes it easier to run the test from command-line.
   
   DANCING BANANA. Thank you very much,
   
   The patch LGTM.
   
   One comment: `string_test.robot` and `fs_test.robot` seems to be duplicate of `robot.robot`. (I guess you refactored the `robot.robot` to two separated files.) I think one of them can be removed.


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

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



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


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1093: HDDS-3826. Split Ozone FS acceptance tests

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


   > One comment: `string_test.robot` and `fs_test.robot` seems to be duplicate of `robot.robot`.  I think one of them can be removed.
   
   Nice catch.
   
   > (I guess you refactored the `robot.robot` to two separated files.)
   
   Exactly.


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

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



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


[GitHub] [hadoop-ozone] adoroszlai commented on pull request #1093: HDDS-3826. Split Ozone FS acceptance tests

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


   Thanks @elek for reviewing and committing it.


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

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



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