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 CI times by switching from conda to mamba #981

Merged
merged 2 commits into from
Jan 20, 2022

Conversation

DocGarbanzo
Copy link
Contributor

@DocGarbanzo DocGarbanzo commented Jan 17, 2022

Improve CI performance

The CI is slow on OSX and very slow on Ubuntu as mentioned in #980. We are changing the packet manager from conda to mamba which performs the install much faster.

  • Change installation from conda to mamba
  • Improve the CI yaml by providing better named build steps and and a more granular break down between checkout, install, reporting and testing
  • Remove push-docs actions

I spent some time trying to setup the CI also for windows, but many tests fail, because of the windows filesystem not coping with the Tub and Datastore tests, and the missing integration of trt in tensorflow. Also mamba is not supported, so currently it cannot be added easily and if the install is only patchy and many tests are not working then there is no point in maintaining integration test for windows.

I will update the docs to describe the mamba install as this is helpful also outside of the CI after this gets merged.

* remove push docs, as this is legacy
* in package and test:
  - break the job into small tasks with separate names, like checkout, install env, run tests, etc
  - switch from conda to mamba in order to speed up the conda env creation which has become very on many occasions
@DocGarbanzo DocGarbanzo marked this pull request as ready for review January 17, 2022 21:22
@DocGarbanzo DocGarbanzo requested a review from Ezward January 17, 2022 21:22
@DocGarbanzo
Copy link
Contributor Author

Please note, the 'old' CI tests set up python 3.7 (macos-latest|ubuntu-latest) are obsolete as they are being replaced by Python package and test.

Copy link
Contributor

@Ezward Ezward left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for doing this.

@DocGarbanzo DocGarbanzo merged commit 65fc112 into autorope:dev Jan 20, 2022
@DocGarbanzo DocGarbanzo deleted the ci_use_mamba branch November 29, 2022 21:17
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.

2 participants