adoroszlai opened a new pull request, #12043: URL: https://github.com/apache/ozone/pull/12043
## What changes were proposed in this pull request? Speed up `basic/links.robot` acceptance test from ~3-4 minutes to ~15 seconds by executing `ozone sh` commands in batch. The PR creates a new library that can be used in other Robot tests later: 1. Queue `ozone sh` commands for batch execution (`Execute Later ozone sh`) instead of running them one by one. Each command's output is saved to a separate file via shell redirection. 2. Corresponding assertions also need to be queued (`Assert Later`), and they must operate on the command's output file. This adds a bit of complexity when looking at failed tests, because failures are deferred to `Execute Batch` step. To help find the real cause: - each command is preceded by a shell comment line with the test case name (this is included in the batch execution's output) - deferred assertions also log the associated test case Notable related changes: - `ozone sh --execute` gets a new flag `--continue-batch-on-error` to avoid exiting on the first failed command. - Test cases performed as another user (`testuser2` vs. `testuser`) are moved to the end of the test suite to reduce number of `kinit` calls. - `Test ozone shell` (in other robot file) relied on existing Kerberos credential, gets `kinit` step. - Some bucket and link names are clarified (e.g. `link-to-existing-bucket` instead of `link1`, etc.) https://issues.apache.org/jira/browse/HDDS-17800 ## How was this patch tested? Before: [`ozone-ha/test.sh`](https://github.com/apache/ozone/actions/runs/43260595453/job/131345643803#step:16:117): ``` Thu, 12 Nov 2026 17:07:49 GMT Links :: Test bucket links via Ozone CLI ... Thu, 12 Nov 2026 17:11:38 GMT Links :: Test bucket links via Ozone CLI | PASS | Thu, 12 Nov 2026 17:11:38 GMT 20 tests, 20 passed, 0 failed ``` [`ozonesecure/test.sh`](https://github.com/apache/ozone/actions/runs/43260595453/job/131366831795#step:16:131): ``` Thu, 12 Nov 2026 17:37:54 GMT Basic.Links :: Test bucket links via Ozone CLI ... Thu, 12 Nov 2026 17:41:51 GMT Basic.Links :: Test bucket links via Ozone CLI | PASS | Thu, 12 Nov 2026 17:41:51 GMT 20 tests, 20 passed, 0 failed ``` [`ozonesecure-ha/test.sh`](https://github.com/apache/ozone/actions/runs/43260595453/job/131362869054#step:16:366): ``` Thu, 12 Nov 2026 17:41:16 GMT Links :: Test bucket links via Ozone CLI ... Thu, 12 Nov 2026 17:44:23 GMT Links :: Test bucket links via Ozone CLI | PASS | Thu, 12 Nov 2026 17:44:23 GMT 20 tests, 20 passed, 0 failed ``` After: [`ozone-ha/test.sh`](https://github.com/adoroszlai/ozone/actions/runs/43450041064/job/131976764227#step:16:146): ``` Fri, 13 Nov 2026 15:31:13 GMT Links :: Test bucket links via Ozone CLI ... Fri, 13 Nov 2026 15:31:26 GMT Links :: Test bucket links via Ozone CLI | PASS | Fri, 13 Nov 2026 15:31:26 GMT 20 tests, 19 passed, 0 failed, 1 skipped ``` [`ozonesecure/test.sh`](https://github.com/adoroszlai/ozone/actions/runs/43450041064/job/131996387627#step:16:126): ``` Fri, 13 Nov 2026 16:00:59 GMT Basic.Links :: Test bucket links via Ozone CLI ... Fri, 13 Nov 2026 16:01:12 GMT Basic.Links :: Test bucket links via Ozone CLI | PASS | Fri, 13 Nov 2026 16:01:12 GMT 20 tests, 20 passed, 0 failed` ``` [`ozonesecure-ha/test.sh`](https://github.com/adoroszlai/ozone/actions/runs/43450041064/job/131992931553#step:16:360): ``` Fri, 13 Nov 2026 16:03:06 GMT Links :: Test bucket links via Ozone CLI ... Fri, 13 Nov 2026 16:03:20 GMT Links :: Test bucket links via Ozone CLI | PASS | Fri, 13 Nov 2026 16:03:20 GMT 20 tests, 20 passed, 0 failed ``` -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
