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

[ci] speed up Windows jobs (fixes #5647) #5648

Merged
merged 5 commits into from
Dec 29, 2022
Merged

Conversation

jameslamb
Copy link
Collaborator

@jameslamb jameslamb commented Dec 28, 2022

Fixes #5647.

Proposes the following changes to speed up the Windows CI jobs (especially those on Appveyor)

  • do not mix default Anaconda channels and conda-forge
  • create an environment all in one shot, instead of initializing it and then updating it
  • move code for swig job up above conda stuff in test_windows.ps1
    • that job doesn't use anything installed by conda, so time spent in that job waiting for a conda environment to be built is wasted time

@jameslamb
Copy link
Collaborator Author

jameslamb commented Dec 28, 2022

🎉 I think the changes in this PR helped!

job latest master this PR
(Azure) Windows regular 13m01s 13m12s
(Azure) Windows sdist 14m24s 10m22s
(Azure) Windows bdist 21m56s 15m37s
(Azure) Windows swig 06m12s 04m09s
(Azure) Windows cpp_tests 03m40s 03m39s
(Appveyor) MSVC 34m13s 14m50s
(Appveyor) MINGW 32m36s 12m20s

this PR:

latest master build:

@jameslamb jameslamb changed the title [ci] speed up conda env creation in Windows jobs (fixes #5647) [ci] speed up Windows jobs (fixes #5647) Dec 28, 2022
@jameslamb jameslamb marked this pull request as ready for review December 28, 2022 22:57
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues
including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ci] Appveyor conda env solves are very slow
2 participants