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

Post Run conda-incubator/setup-miniconda@v2 step ~150 times slower on windows-latest than on ubuntu-latest #277

Open
anmyachev opened this issue Feb 15, 2023 · 2 comments

Comments

@anmyachev
Copy link

Setup on ubuntu-latest and windows-latest:

      - uses: conda-incubator/setup-miniconda@v2
        with:
          miniforge-variant: Mambaforge
          miniforge-version: latest
          use-mamba: true
          activate-environment: modin
          environment-file: environment-dev.yml
          python-version: 3.8
          channel-priority: strict
          # we set use-only-tar-bz2 to false in order for conda to properly find new packages to be installed
          # for more info see https://github.com/conda-incubator/setup-miniconda/issues/264
          use-only-tar-bz2: false

Exact times: 8m54s vs 3s.

Is this behavior expected? Can something be done about it?

Thanks in advance.

@bollwyvl
Copy link
Contributor

Yep: windows is slow and bad at doing things. In this case, it might be the "trash" (or wherever things go) is on a different device. This, and the fact that conda and mamba are pretty bad at using package caches from another machine, makes caching basically not worth it on windows, and depending on your use case, on UNIX systems, either.

Renaming (not deleting) the cache folder will sidestep that step entirely, such as running this as the very last step:

      - name: Rename conda package cache
        shell: bash
        run: mv "${CONDA_PKGS_DIR}" "${CONDA_PKGS_DIR}_do_not_cache"

A pity, of course.

@anmyachev
Copy link
Author

Thanks @bollwyvl!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants