chihsuan opened a new pull request, #12180: URL: https://github.com/apache/ozone/pull/12180
## What changes were proposed in this pull request? `ozonesecure-ha/test-sts.sh` is the longest acceptance split. The STS tests switch AWS CLI profiles more than 300 times, and each `Configure AWS Profile` runs `aws configure set` 4 or 5 times. Each call pays the AWS CLI startup cost, so these ~1900 calls take more than half of the test time. This PR adds a small Robot library, `aws_profile.py`, that writes the same settings to the AWS CLI `config` and `credentials` files directly, without starting the AWS CLI. New files are created with `0600`, like the AWS CLI does. `Assign User To Tenant And Get Credentials` now parses the tenant access key and secret without the surrounding quotes. Previously the shell removed them when running `aws configure set`. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-17941 ## How was this patch tested? `test-sts.sh` passed in [build-branch](https://github.com/chihsuan/ozone/actions/runs/45836509181). | Run | `aws configure set` | Test time | |-----|---------------------|-----------| | [master, before](https://github.com/apache/ozone/actions/runs/45731404308) | 1904 calls, 762s | 1323s | | [fork, before](https://github.com/chihsuan/ozone/actions/runs/45825191157/job/139931061997) | 1904 calls, 457s | 814s | | [fork, after](https://github.com/chihsuan/ozone/actions/runs/45836509181) | 0 | 471s | Expected saving: about 13 minutes per run on master, 7 on fork (runner speed varies). Generated-by: Claude Code (Claude Opus 5.5) -- 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]
