Skip to content

TST+FIX: do not save empty tar.gz file + use fastest gzip compression #2290

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

Merged
merged 1 commit into from
Nov 17, 2017

Conversation

kaczmarj
Copy link
Collaborator

(Actually) Fixes breaking deploy step in CircleCI.

Changes proposed in this pull request

  • Do not save an empty tar.gz file in container 1-3. The empty files overwrote the tar.gz file of Docker images, causing docker load to fail.
  • Persist /tmp/docker/* instead of /tmp/docker/nipype-base-latest-py36-py27.tar.gz. This will save the tarball of Docker images in container 0 and will not fail on containers 1-3.
  • Use fastest gzip compression. Turns out this was not the issue.

Tests of this PR on my fork

Fastest gzip produces a 5.1 GB file in 9:30, and gzip -6 produces a 4.7 GB file in 16:04. Fastest gzip compression results in a net decrease in test/deploy time.

- Previously, an empty tar.gz file was created on containers 1-3 to avoid errors when persisting to workspace. Container 0 saves the Docker images to tar.gz, but the empty tar.gz file would sometimes overwrite the tar.gz with the Docker images. Consequently, the deploy step would try to load Docker images from an empty tar.gz file and would fail.
- To avoid errors on `persist_to_workspace`, save docker/* instead of docker/nipype-base-latest-py36-py27.tar.gz.
@kaczmarj kaczmarj changed the title tst+fix: do not save empty tar.gz file + use fastest gzip compression TST+FIX: do not save empty tar.gz file + use fastest gzip compression Nov 17, 2017
@mgxd mgxd merged commit 14161a5 into nipy:master Nov 17, 2017
@kaczmarj kaczmarj deleted the tst/fix-circle branch November 20, 2017 14:45
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