Bug 1401725 - Use sparse checkouts for toolchain tasks; r=glandium

Strictly speaking we don't need all files in the directories listed
in the profile. But the checkout is still small enough and it is far
less effort than cherry-picking every file needed by every toolchain
task.

This brings the checkout down to ~3700 files, which only takes 1-2s.

MozReview-Commit-ID: 2BpKdZ2Pvx9

--HG--
extra : rebase_source : e9589b29f7e1b60ac7ee4e8050689dc3d5a8f418
extra : source : 2c0d6e566cc719823515ec2403e1d6b2ace955aa
This commit is contained in:
Gregory Szorc 2017-09-21 07:30:49 -07:00
parent 528237d25f
commit ff3d54d6f6
2 changed files with 11 additions and 1 deletions

View File

@ -0,0 +1,9 @@
# Profile needed to build toolchain tasks.
# This is probably a little wider than we need it to be. But it is
# still relatively small and it keeps this profile simple.
%include build/sparse-profiles/taskgraph
[include]
# Needed by build-clang.py.
path:tools/rewriting/

View File

@ -106,7 +106,7 @@ def docker_worker_toolchain(config, job, taskdesc):
docker_worker_add_public_artifacts(config, job, taskdesc)
docker_worker_add_tc_vcs_cache(config, job, taskdesc)
docker_worker_add_gecko_vcs_env_vars(config, job, taskdesc)
support_vcs_checkout(config, job, taskdesc)
support_vcs_checkout(config, job, taskdesc, sparse=True)
env = worker['env']
env.update({
@ -123,6 +123,7 @@ def docker_worker_toolchain(config, job, taskdesc):
worker['command'] = [
'/builds/worker/bin/run-task',
'--vcs-checkout=/builds/worker/workspace/build/src',
'--sparse-profile', 'build/sparse-profiles/toolchain-build',
'--',
'bash',
'-c',