Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
efletcherPIFSC opened this issue Jul 17, 2023 · 3 comments · Fixed by #91
Labels
bug Something isn't working topic: test workflow For automated testing (github actions) and testthat

Comments

@efletcherPIFSC
Copy link
Collaborator

@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 efletcherPIFSC added bug Something isn't working topic: test workflow For automated testing (github actions) and testthat labels Jul 17, 2023
@MOshima-PIFSC
Copy link
Contributor

@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.

@MOshima-PIFSC
Copy link
Contributor

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.

@MOshima-PIFSC
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working topic: test workflow For automated testing (github actions) and testthat
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants