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

   ## What changes were proposed in this pull request?
   
   - Provide better `Summary of failures` if some tool required for CI check 
cannot be installed.
   - When checking whether the tool is already installed, verify that the tool 
can be found (`which ...`).  This is useful for local runs, where one may 
re-try manually.  CI re-run always starts from a clean state.
   
   https://issues.apache.org/jira/browse/HDDS-13995
   
   ## How was this patch tested?
   
   Before:
   
   ```
   $ rm -fr .dev-tools target
   
   $ HUGO_VERSION=no-such-version ./hadoop-ozone/dev-support/checks/docs.sh
   ...
   Failed to install hugo
   
   $ cat target/docs/summary.txt
   cat: target/docs/summary.txt: No such file or directory
   ```
   
   After:
   
   ```
   $ rm -fr .dev-tools target
   
   $ HUGO_VERSION=no-such-version ./hadoop-ozone/dev-support/checks/docs.sh
   ...
   Failed to install hugo
   
   $ cat target/docs/summary.txt
   Failed to install hugo
   ```
   
   Re-run with valid (default) version:
   
   ```
   $ ./hadoop-ozone/dev-support/checks/docs.sh
   ...
   Installed hugo in .dev-tools/hugo
   WARN  DEPRECATED: Kind "taxonomyterm" used in disableKinds is deprecated, 
use "taxonomy" instead.
   Start building sites … 
   hugo v0.141.0-e7bd51698e5c3778a86003018702b1a7dcb9559a linux/amd64 
BuildDate=2025-01-16T13:11:18Z VendorInfo=gohugoio
   ...
   Total in 564 ms
   ```
   
   CI:
   https://github.com/adoroszlai/ozone/actions/runs/19642627720


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

Reply via email to