pingtimeout commented on PR #2824:
URL: https://github.com/apache/polaris/pull/2824#issuecomment-3633221349

   I ran into a few issues while running this locally (on macOS).  First, the 
BSD variants of standard tools like `find` and `tar` differ from the GNU ones.  
So we need to require `coreutils`, `gnu-tar` and `findutils` to be installed 
with homebrew on macOS and prepended to the `PATH`.  I.e. on macOS, the script 
should be run as follows:
   
   ```
   $ PATH=$(brew --prefix)/opt/findutils/libexec/gnubin:$(brew 
--prefix)/opt/coreutils/libexec/gnubin:$(brew 
--prefix)/opt/gnu-tar/libexec/gnubin:$PATH ./verify-release.sh \
     -s 308134d6440f8167afd563a885187e238c21048a \
     -v 1.3.0-incubating-rc2 \
     -m 1046
   ```
   
   I think it should at least be mentioned on the readme.  Better would be if 
the script detects it is running on macOS and adjusts the PATH automatically.  
Otherwise, the output contains the following:
   
   ```
   ---------------------------------------
     Comparing Maven build artifacts ...
   ---------------------------------------
   find: -printf: unknown primary or operator
   find: -printf: unknown primary or operator
   
   
   --------------------------------------------------------------------------
     Comparing Maven repository artifacts, this will take a little while...
   --------------------------------------------------------------------------
   
   
   -----------------------------------------
     Comparing main distribution artifacts
   -----------------------------------------
   tar: Option --warning=no-timestamp is not supported
   Usage:
     List:    tar -tf <archive-filename>
     Extract: tar -xf <archive-filename>
     Create:  tar -cf <archive-filename> [filenames...]
     Help:    tar --help
     extracted to 
/var/folders/_v/q5s3ks993rv79lc3hpg7gs_h0000gq/T//polaris-release-verify-2025-12-09-16-56-27-SCV4V6LqD/worktree/build/distributions/apache-polaris-1.3.0-incubating.tar.gz.extracted
   tar: Option --warning=no-timestamp is not supported
   Usage:
     List:    tar -tf <archive-filename>
     Extract: tar -xf <archive-filename>
     Create:  tar -cf <archive-filename> [filenames...]
     Help:    tar --help
     extracted to 
/var/folders/_v/q5s3ks993rv79lc3hpg7gs_h0000gq/T//polaris-release-verify-2025-12-09-16-56-27-SCV4V6LqD/dist/apache-polaris-1.3.0-incubating.tar.gz.extracted
   ```
   
   Then, for some reason `wget2` failed.  The errors below are caused by the 
command `wget2 --max-threads=8 --no-parent --no-verbose --no-host-directories 
--mirror -e robots=off --cut-dirs=3 
https://repository.apache.org/content/repositories/orgapachepolaris-1046//`.  I 
am not sure whether I was supposed to do something else than `brew install 
wget2`.  I ended up uninstalling it and reverting to plain `wget`.
   
   ```
   
-----------------------------------------------------------------------------------------------------------------
     Mirroring 
https://repository.apache.org/content/repositories/orgapachepolaris-1046/, this 
may take a while...
   
-----------------------------------------------------------------------------------------------------------------
   Failed to parse date ' Tue, 25 Nov 2025 09:11:15 GMT'
   Failed to parse date ' Tue, 25 Nov 2025 09:10:53 GMT'
   Failed to parse date ' Tue, 25 Nov 2025 09:10:53 GMT'
   Failed to parse date ' Tue, 25 Nov 2025 09:14:23 GMT'
   Failed to parse date ' Tue, 25 Nov 2025 09:11:08 GMT'
   ```
   
   I am still iterating and cannot get a successful run for now.  The last 
issue I ran into seems to be that, because of a double trailing slash, the wget 
command only gets the `index.html` file from the Maven repository but none of 
the actual jar files.  So subsequent comparisons all fail.  Pardon the 🇫🇷 in 
the next output, see the last line that says `Downloaded: 1 file, 1.5K in 0s`.
   
   ```
   
-----------------------------------------------------------------------------------------------------------------
     Mirroring 
https://repository.apache.org/content/repositories/orgapachepolaris-1046/, this 
may take a while...
   
-----------------------------------------------------------------------------------------------------------------
   2025-12-09 17:33:03 
URL:https://repository.apache.org/content/repositories/orgapachepolaris-1046// 
[1497] -> "index.html" [1]
   Terminé — 2025-12-09 17:33:03 —
   Temps total effectif : 0,2s
   Téléchargés : 1 fichiers, 1,5K en 0s (357 MB/s)
   ```


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

Reply via email to