PIFSCstockassessments/ss3diags

build-ss-R-CMD-check: macOS-latest (release) error: "mv: rename ss_osx to ss: No such file or directory"

Closed this issue · 3 comments

@MOshima-PIFSC
"macOS-latest (release)" errors relate to filenname format issue: ss_osx

Run curl https://api.github.com/repos/nmfs-stock-synthesis/stock-synthesis/releases/latest | grep "browser_download_url" | grep -Eo 'https://[^\"]*' | grep "ss_osx" | xargs wget
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   277  100   277    0     0   3487      0 --:--:-- --:--:-- --:--:--  3644
mv: rename ss_osx to ss: No such file or directory
Error: Process completed with exit code 1.

The macOS-latest workflow from github action script:

- name: Get the latest SS3 executable for macOS and move to expected location
if: matrix.config.os == 'macOS-latest'
run: |
curl https://api.github.com/repos/nmfs-stock-synthesis/stock-synthesis/releases/latest | grep "browser_download_url" | grep -Eo 'https://[^\"]*' | grep "ss_osx" | xargs wget
mv ss_osx ss
sudo chmod a+x ss
cp ss inst/extdata/ss
rm ss

@efletcherPIFSC this happens sometimes with the runs. I think its actually due to github not being able to connect and download the ss_osx file. I re-ran that test (just the mac-os job) and it passed this time.

I'm closing this issue, if this error occurs in the future you can either re-run the failed job manually, or wait to see if it passes the job the next time it is triggered.

Re-opening this issue. I found a github action that will automatically re-try a step so I am going to try adding this into the workflow to see if it will help avoid this error.