Skip to content

Conversation

dstansby
Copy link
Member

Currently uploading the doc build artefacts takes circleCI a long time because it uploads every single file individually. I don't think the files in build/html/_sources are needed for viewing the generated HTML docs though, so try deleting them to save time on the artefact upload.

@tacaswell tacaswell added this to the v3.2.0 milestone Jun 25, 2019
@tacaswell
Copy link
Member

Does this actually make a difference? I would have assumed the biggest contributor to the size was the images.

@dstansby
Copy link
Member Author

I think the bottleneck isn't the size of the files, but the number of files as each is uploaded individually. Looking at a handful of builds, previously artifact upload was ~15 mins, with this PR it goes down to ~ 10 mins, so ~ 5 min/build time saved.

@QuLogic
Copy link
Member

QuLogic commented Jun 26, 2019

Yes, that's right, files are uploaded individually. And especially if they're small, this causes a significant overhead (if there were a way to upload a tarball and explode it on S3, we'd probably save 8-9 minutes of the remaining 10.)

@dstansby dstansby force-pushed the circle-ci-delete-sources branch from 8d2f719 to 1a4d691 Compare July 13, 2019 15:04
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Looks good. Where are the sources needed at all? The rendered sources are still there:

https://22922-1385122-gh.circle-artifacts.com/0/home/circleci/project/doc/build/html/_modules/matplotlib/axes/_axes.html#Axes.plot

@jklymak
Copy link
Member

jklymak commented Jul 15, 2019

Well, lets merge and if the sources were somehow needed, we will find out soon enough and can revert this. None of this is user facing anyhow...

@jklymak jklymak merged commit 22efae6 into matplotlib:master Jul 15, 2019
@dstansby dstansby deleted the circle-ci-delete-sources branch July 15, 2019 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants