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

Improve usage of setup-miniconda #1126

Merged
merged 3 commits into from
Jan 11, 2023
Merged

Conversation

victorlin
Copy link
Member

@victorlin victorlin commented Jan 11, 2023

Description of proposed changes

See commit messages.

Related issue(s)

Fixes #1125

Testing

  • Checks pass

Checklist

  • Add a message in CHANGES.md summarizing the changes in this PR that are end user focused. Keep headers and formatting consistent with the rest of the file. N/A, dev change

The option to use mamba-version in this action is still marked as
experimental and has shown to be problematic with transient failures.

As of Dec 2022, the equivalent conda-libmamba-solver is no longer marked
as experimental¹ so hopefully it is more reliable.

¹ https://www.anaconda.com/blog/conda-is-fast-now
Based on the input description in action.yml¹, the default value is
"flexible", and "true" is just an alias to "flexible".

¹ https://github.com/conda-incubator/setup-miniconda/blob/7e642bb2e4ca56ff706818a0febf72bb226d348d/action.yml#L173-L186
Use one install command for all dependencies, and specify the channels
there since they don't need to be searched for conda-libmamba-solver.
@victorlin victorlin requested a review from a team January 11, 2023 19:34
@victorlin victorlin self-assigned this Jan 11, 2023
@victorlin
Copy link
Member Author

Noting that a quick comparison of run times between jobs in this old CI workflow and the jobs triggered by this PR shows that the previous total time of (setup-miniconda + mamba install + mamba install) was typically ~1.5 minutes, while with these changes the total time of (setup-miniconda + conda install + conda install) is ~1 minute.

Copy link
Member

@tsibley tsibley left a comment

Choose a reason for hiding this comment

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

Looks reasonable to me!

@victorlin victorlin merged commit c8900c5 into master Jan 11, 2023
@victorlin victorlin deleted the victorlin/fix-ci-conda-setup branch January 11, 2023 22:25
joverlee521 added a commit to nextstrain/forecasts-ncov that referenced this pull request Jan 12, 2023
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

Successfully merging this pull request may close these issues.

CI: setup-miniconda failing often
2 participants