Merge ~smoser/cloud-init:cleanup/tools-run-centos-use-git-clone into cloud-init:master
Proposed by
Scott Moser
Status: | Merged |
---|---|
Approved by: | Scott Moser |
Approved revision: | e9a3a02229c9569bda2529cf3abe0500dd0f1616 |
Merged at revision: | a1ca220d137cf7b3f79b516980a042ec800a8d91 |
Proposed branch: | ~smoser/cloud-init:cleanup/tools-run-centos-use-git-clone |
Merge into: | cloud-init:master |
Diff against target: |
149 lines (+76/-12) 1 file modified
tools/run-centos (+76/-12) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Joshua Powers (community) | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
cloud-init Commiters | Pending | ||
Review via email: mp+337499@code.launchpad.net |
Commit message
tools: run-centos: only collect .git dir.
I have lots of files in my checkout dir. tar <dir> causes
all those files to get copied into the container.
This instead collects only the .git dir and then checks out
the branch inside the container. That means a lot less
disk IO, given that .tox/ can be 300M+ while .git is just
about 40M.
Description of the change
using 'git clone' makes this work from a worktree.
I couldnt' figure out how to easily find "the real .git" if inside a worktree.
Figuring that out, and then just using 'tar -cf .git' would avoid the local tmpdir copy
To post a comment you must log in.
PASSED: Continuous integration, rev:bca132c1b66 d7f9f53a2120b81 55a984de4fd95f /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 767/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 767/rebuild
https:/