Skip to content

ENH/CI: Add Cache for Azure pipelines - posix #44029

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

Closed
wants to merge 29 commits into from

Conversation

trallard
Copy link
Contributor

@trallard trallard commented Oct 14, 2021

Trying to leverage the use of cache on Azure pipelines - currently WIP will make some investigations

@trallard trallard changed the title Trallard/ci cache BLD: Add Cache for Azure pipelines Oct 14, 2021
@trallard trallard changed the title BLD: Add Cache for Azure pipelines ENH/CI: Add Cache for Azure pipelines Oct 14, 2021
@trallard trallard marked this pull request as draft October 14, 2021 11:56
@jreback jreback added the CI Continuous Integration label Oct 21, 2021
@jreback jreback mentioned this pull request Oct 21, 2021
4 tasks
@trallard
Copy link
Contributor Author

trallard commented Oct 25, 2021

Hey folks it seems I have most of this figured, some notes

@trallard
Copy link
Contributor Author

Update: The MacOS pipelines are still working as expected, however since yesterday I noticed that the Windows pipelines are getting stuck in conda-update and eventually timeout (see here)

I might for now try and do some debugging and see if I can pinpoint to the root cause, but in the meantime a review to the rest of the PR would be grand

@trallard trallard marked this pull request as ready for review October 26, 2021 11:43
@lithomas1
Copy link
Member

Thanks for the PR. Do you know how much time this saves?

Update: The MacOS pipelines are still working as expected, however since yesterday I noticed that the Windows pipelines are getting stuck in conda-update and eventually timeout (see here)

I might for now try and do some debugging and see if I can pinpoint to the root cause, but in the meantime a review to the rest of the PR would be grand

If it's easier for you, you can update the posix pipelines first and do the Windows pipelines in a follow up.

Also, I noticed that as of the latest commit conda update is not being performed. We probably want to make sure that the any old packages in the cache are updated.

@trallard
Copy link
Contributor Author

trallard commented Nov 1, 2021

Hey @lithomas1 thanks for having a look - I have gone ahead and split the posix and Windows cache parts as suggested.

As is the posix cache seems to be saving ~5 mins per job

@trallard trallard changed the title ENH/CI: Add Cache for Azure pipelines ENH/CI: Add Cache for Azure pipelines - posix Nov 1, 2021
@jreback
Copy link
Contributor

jreback commented Nov 14, 2021

can you merge master

@trallard
Copy link
Contributor Author

Sorted!

Copy link
Member

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

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

The Azure build is failing unfortunately. I left a suggestion that might fix it, and some other feedback.

condition: eq(variables.CONDA_CACHE_RESTORED, 'false')

- script: |
conda update -q -y -n pandas-dev --file $ENV_FILE
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
conda update -q -y -n pandas-dev --file $ENV_FILE
conda env update -q -y -n pandas-dev --file $ENV_FILE

python -m pip install --no-build-isolation -e .
echo "conda list"
conda list
displayName: 'Build extensions and install pandas'
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason you are not using ci/setup_env.sh? Note that that script is also used by other builds on Github Actions, so if you are changing that file, you should gate your changes behind an env variable to avoid it affecting other builds.

@jreback
Copy link
Contributor

jreback commented Nov 28, 2021

does this help in build time? can you show before / after

@jbrockmendel
Copy link
Member

@trallard can you merge master and address comments

@trallard
Copy link
Contributor Author

trallard commented Jan 4, 2022

Sorry folks I took some time off at the end of year - will merge master and add the details requested today

@jbrockmendel
Copy link
Member

@trallard what's the status here?

Copy link
Member

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

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

Sorry for the late review and thanks for updating the PR. Can you merge main again?

source activate pandas-dev
conda list pandas
python setup.py build_ext -q -j2
python -m pip install --no-deps -U pip wheel setuptools
Copy link
Member

Choose a reason for hiding this comment

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

I think setuptools will need to be pinned to <60 to pass CI.

@mroeschke
Copy link
Member

Thanks for the PR, but it appears to have gone stale. Additionally, there is some discussion about moving aware from Azure pipelines as well #46351. Closing, but would be happy to take similar changes to our GHA builds!

@mroeschke mroeschke closed this Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants