mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
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:
parent
528237d25f
commit
ff3d54d6f6
9
build/sparse-profiles/toolchain-build
Normal file
9
build/sparse-profiles/toolchain-build
Normal 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/
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user