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

Add a macOS worker to the CI #550

Merged
merged 12 commits into from
Oct 9, 2023
Merged

Conversation

asmeurer
Copy link
Contributor

Description

This is built on #549 but I've made in a separate PR because I'm not sure if there will be other issues here and I don't want to block that PR on this (but at the same time, tests won't pass on Mac without the changes from that PR).

See #513 and #507

Pull request checklist

  • Did you test this change locally?
  • Did you update the documentaion (if required)?
  • Did you add/update relevant tests for this change (if required)?

Additional information

@asmeurer
Copy link
Contributor Author

The setup-miniconda stage failed with

Updating 'conda-store-server-dev' env from conda env update...
  /usr/local/miniconda/condabin/mamba env update --name conda-store-server-dev --file conda-store-server/environment-dev.yaml
  Warning: Traceback (most recent call last):
    File "/usr/local/miniconda/condabin/mamba", line 7, in <module>
  
  Traceback (most recent call last):
    File "/usr/local/miniconda/condabin/mamba", line 7, in <module>
  Warning:     from mamba.mamba import main
    File "/usr/local/miniconda/lib/python3.11/site-packages/mamba/mamba.py", line 49, in <module>
      import libmambapy as api
  
      from mamba.mamba import main
    File "/usr/local/miniconda/lib/python3.11/site-packages/mamba/mamba.py", line 49, in <module>
      import libmambapy as api
  Warning:   File "/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/__init__.py", line 7, in <module>
  
    File "/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/__init__.py", line 7, in <module>
  Warning:     raise e
    File "/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/__init__.py", line 4, in <module>
  
      raise e
    File "/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/__init__.py", line 4, in <module>
  Warning:     from libmambapy.bindings import *  # noqa: F401,F403
  
      from libmambapy.bindings import *  # noqa: F401,F403
  Warning:     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ImportError: dlopen(/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/bindings.cpython-311-darwin.so, 0x0002): Library not loaded: '@rpath/libarchive.13.dylib'
    Referenced from: '/usr/local/miniconda/lib/libmamba.2.0.0.dylib'
    Reason: tried: '/usr/local/miniconda/lib/libarchive.13.dylib' (no such file), '/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/../../../libarchive.13.dylib' (no such file), '/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/../../../libarchive.13.dylib' (no such file), '/usr/local/miniconda/bin/../lib/libarchive.13.dylib' (no such file), '/usr/local/miniconda/bin/../lib/libarchive.13.dylib' (no such file), '/usr/local/lib/libarchive.13.dylib' (no such file), '/usr/lib/libarchive.13.dylib' (no such file)
  
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ImportError: dlopen(/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/bindings.cpython-311-darwin.so, 0x0002): Library not loaded: '@rpath/libarchive.13.dylib'
    Referenced from: '/usr/local/miniconda/lib/libmamba.2.0.0.dylib'
    Reason: tried: '/usr/local/miniconda/lib/libarchive.13.dylib' (no such file), '/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/../../../libarchive.13.dylib' (no such file), '/usr/local/miniconda/lib/python3.11/site-packages/libmambapy/../../../libarchive.13.dylib' (no such file), '/usr/local/miniconda/bin/../lib/libarchive.13.dylib' (no such file), '/usr/local/miniconda/bin/../lib/libarchive.13.dylib' (no such file), '/usr/local/lib/libarchive.13.dylib' (no such file), '/usr/lib/libarchive.13.dylib' (no such file)

@costrouc
Copy link
Member

🤞 looking forward to this one!

This is built on conda-incubator#549 but
I've made in a separate PR because I'm not sure if there will be other issues
here and I don't want to block that PR on this (but at the same time, tests
won't pass on Mac without the changes from that PR).

See conda-incubator#513 and conda-incubator#507
@trallard
Copy link
Collaborator

@asmeurer is there anything else that needs doing?

@asmeurer
Copy link
Contributor Author

The CI is failing in the initial setup stage of setup-miniconda. I'm not sure why. Since the error occurs in the setup stage, it seems like it would be an issue with setup-miniconda itself. And I haven't changed any part of that in the CI config, all I did was add macos as a platform to the matrix.

It would help if someone more familiar with that could take a look (like Jaime, or if he is available, Gonzalo since he seems to be the main maintainer of setup-miniconda).

I can't really do much until the CI works, but I expect that things ought to pass once they do, since the tests working for me locally on my Mac.

@netlify
Copy link

netlify bot commented Oct 6, 2023

Deploy Preview for kaleidoscopic-dango-0cf31d canceled.

Name Link
🔨 Latest commit 821da8f
🔍 Latest deploy log https://app.netlify.com/sites/kaleidoscopic-dango-0cf31d/deploys/6520b98f9367b50008a08233

@asmeurer
Copy link
Contributor Author

asmeurer commented Oct 7, 2023

This is working now. I believe the test failure is the one I noted on Slack (I'll open an issue later), which is related to the paths being too long.

@asmeurer
Copy link
Contributor Author

asmeurer commented Oct 7, 2023

Oh actually the one I posted on Slack is different. I get that locally but it doesn't happen on CI. The issue here is I just need to disable Docker from being tested on Mac.

@@ -26,14 +25,23 @@ jobs:
- name: "Checkout Repository"
uses: actions/checkout@v4

- name: Set up Python
- name: Set up Python (Linux)
if: matrix.os == 'ubuntu-latest'
uses: conda-incubator/setup-miniconda@v2
with:
mamba-version: "*"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@trallard is removing this what you had in mind? It seems to work. The install on CI is a few minutes slower but I'm not sure if it's significant enough to worry about.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, need to use mamba only

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is doing the opposite, using conda only and not using mamba at all. But like I said, it's not that much slower.

Copy link
Collaborator

@trallard trallard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good and CI is passing now so will merge

@trallard trallard merged commit 0f26920 into conda-incubator:main Oct 9, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done 💪🏾
Development

Successfully merging this pull request may close these issues.

4 participants