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

Version 1.0.6 broke testing on Windows and macOS #125

Closed
ocefpaf opened this issue Jul 2, 2021 · 7 comments · Fixed by #130
Closed

Version 1.0.6 broke testing on Windows and macOS #125

ocefpaf opened this issue Jul 2, 2021 · 7 comments · Fixed by #130
Labels
bug Something isn't working

Comments

@ocefpaf
Copy link

ocefpaf commented Jul 2, 2021

Our setup in in ioos/erddapy@9232d71 works with version 1.0.5 but not 1.0.6. See ioos/erddapy#193 where we had to pin the to previous version version to make it work.

Note that, by using activate-conda: true we could get 1.0.6 to work on Linux only. However, my understanding is that we don't need to activate the base env b/c we are activating the TEST env later.

Happy to provide any with further details if needed. Also, thanks for the awesome GHA! Very useful!!

@s-weigand
Copy link
Owner

Thanks for the report.
It looks like that with v1.0.6 on Linux for some reason /usr/bin is too early in the PATH and thus the system pip is used which requires sudo rights and thus fails to install your package.

  • v1.0.5
    PATH: /usr/share/miniconda/bin:/usr/share/miniconda/envs/TEST/bin:/usr/share/miniconda/condabin:/usr/bin:/usr/share/miniconda/bin:/usr/share/miniconda:/home/linuxbrew/.linuxbrew/bin:
    
  • v1.0.6
    PATH: /usr/share/miniconda/bin:/usr/bin:/usr/share/miniconda/envs/TEST/bin:/usr/share/miniconda/condabin:/usr/share/miniconda:/home/linuxbrew/.linuxbrew/bin
    

I will add a test with bash -l {0} and try to come up with a fix asap.

@s-weigand
Copy link
Owner

@all-contributors please add @ocefpaf for bug

@allcontributors
Copy link
Contributor

@s-weigand

I've put up a pull request to add @ocefpaf! 🎉

@s-weigand s-weigand added the bug Something isn't working label Jul 3, 2021
@s-weigand
Copy link
Owner

Ok it looks like adding the env vars from the activation script (conda shell.<shell_name> activate <env_name>) broke the usage of source activate <env_name>.

@ocefpaf Would you be so kind and confirm that using s-weigand/setup-conda@fix-env-activation resolves your problem? 🤞

@s-weigand
Copy link
Owner

s-weigand commented Jul 4, 2021

@ocefpaf Sorry the fix-env-activation branch didn't contain the transpiled code in dist/index.js that is why that run failed.
Could you try s-weigand/setup-conda@fix-env-activation-dist?

@ocefpaf
Copy link
Author

ocefpaf commented Jul 5, 2021

Could you try s-weigand/setup-conda@fix-env-activation-dist?

Ah! I though it was copy-n-pasta from my side 😄

Done and it worked!

@s-weigand
Copy link
Owner

s-weigand commented Jul 5, 2021

The problem with automating everything, is that you can easily forget something when it isn't the used workflow 😅

dist/index.js is bundled code used by the action, but not to have bundle conflicts it is in the .gitignore.
Since the CI first bundels the code and the tests use the bundle artifact from the previous job, I forgot that you can't use the branch directly to test it 😅

That is why I had to put a branch with the dist on top of the fix branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants