Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAuto clean old nightlies on Travis #16573
Conversation
|
r? @aneeshusa |
| @@ -11,6 +11,7 @@ matrix: | |||
| - sudo: 9000 | |||
| dist: trusty | |||
| script: | |||
| - ./mach clean-nightlies --keep 2 --force | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Apr 22, 2017
Member
Let's put this into before_cache instead of script. Docs: https://docs.travis-ci.com/user/caching/#before_cache-phase
| commit_hash, _ = cmd.communicate() | ||
| to_keep[tool].add(commit_hash.rstrip()) | ||
| for line in stdout.splitlines(): | ||
| if line.startswith("+") and "+++" not in line: |
This comment has been minimized.
This comment has been minimized.
| @@ -306,19 +306,14 @@ def clean_nightlies(self, force=False, keep=None): | |||
| for tool in ["rust", "cargo"]: | |||
| commit_file = '{}-commit-hash'.format(tool) | |||
| cmd = subprocess.Popen( | |||
| ['git', 'log', '--pretty=format:%H', '-n', keep, commit_file], | |||
| ['git', 'log', '--pretty=oneline', '--no-color', '-n', keep, '-p', commit_file], | |||
This comment has been minimized.
This comment has been minimized.
|
done. |
|
Looks good, I'll wait for Travis to see how it affects the output. |
|
@bors-servo r+ |
|
|
Auto clean old nightlies on Travis This could solve `no space left` problem. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16573) <!-- Reviewable:end -->
|
|
|
@bors-servo: retry |
|
|
|
|
Try to re-enable unit tests on travis-ci After #16573 and #16593, issue #15076 _could_ be fixed. Edit: Closes #14723 Closes #15076 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16767) <!-- Reviewable:end -->
…UK992:travis); r=jdm After servo/servo#16573 and servo/servo#16593, issue servo/servo#15076 _could_ be fixed. Edit: Closes #14723 Closes #15076 Source-Repo: https://github.com/servo/servo Source-Revision: 8ff484d3fd0b092d64af8b0a2cfa51b318631b82 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : b2ee28ecf18792f3a1ebf50bcb548ede41fb2e70
…UK992:travis); r=jdm After servo/servo#16573 and servo/servo#16593, issue servo/servo#15076 _could_ be fixed. Edit: Closes #14723 Closes #15076 Source-Repo: https://github.com/servo/servo Source-Revision: 8ff484d3fd0b092d64af8b0a2cfa51b318631b82
…UK992:travis); r=jdm After servo/servo#16573 and servo/servo#16593, issue servo/servo#15076 _could_ be fixed. Edit: Closes #14723 Closes #15076 Source-Repo: https://github.com/servo/servo Source-Revision: 8ff484d3fd0b092d64af8b0a2cfa51b318631b82 UltraBlame original commit: 2445c1a53fe2bf66317fcbb495a528eb68fdabc3
…UK992:travis); r=jdm After servo/servo#16573 and servo/servo#16593, issue servo/servo#15076 _could_ be fixed. Edit: Closes #14723 Closes #15076 Source-Repo: https://github.com/servo/servo Source-Revision: 8ff484d3fd0b092d64af8b0a2cfa51b318631b82 UltraBlame original commit: 2445c1a53fe2bf66317fcbb495a528eb68fdabc3
…UK992:travis); r=jdm After servo/servo#16573 and servo/servo#16593, issue servo/servo#15076 _could_ be fixed. Edit: Closes #14723 Closes #15076 Source-Repo: https://github.com/servo/servo Source-Revision: 8ff484d3fd0b092d64af8b0a2cfa51b318631b82 UltraBlame original commit: 2445c1a53fe2bf66317fcbb495a528eb68fdabc3
UK992 commentedApr 22, 2017
•
edited
This could solve
no space leftproblem.This change is