Skip to content
Snippets Groups Projects
Commit e70237a5 authored by Phillip Smyth's avatar Phillip Smyth Committed by knownexus
Browse files

Adding caching build trees

buildstream/element.py: Adding build tree to cache
buildstream/_versions.py: Bumping BST_CORE_ARTIFACT_VERSION
parent 364706f3
No related branches found
No related tags found
1 merge request!560Adding caching build trees (limited)
Pipeline #26315314 passed
Showing
with 26 additions and 19 deletions
......@@ -33,4 +33,4 @@ BST_FORMAT_VERSION = 9
# or if buildstream was changed in a way which can cause
# the same cache key to produce something that is no longer
# the same.
BST_CORE_ARTIFACT_VERSION = 2
BST_CORE_ARTIFACT_VERSION = 3
......@@ -1505,14 +1505,21 @@ class Element(Plugin):
filesdir = os.path.join(assembledir, 'files')
logsdir = os.path.join(assembledir, 'logs')
metadir = os.path.join(assembledir, 'meta')
buildtreedir = os.path.join(assembledir, 'buildtree')
os.mkdir(assembledir)
os.mkdir(filesdir)
os.mkdir(logsdir)
os.mkdir(metadir)
os.mkdir(buildtreedir)
# Hard link files from collect dir to files directory
utils.link_files(collectdir, filesdir)
sandbox_build_dir = os.path.join(sandbox_root, self.get_variable('build-root').lstrip(os.sep))
# Hard link files from build-root dir to buildtreedir directory
if os.path.isdir(sandbox_build_dir):
utils.link_files(sandbox_build_dir, buildtreedir)
# Copy build log
log_filename = context.get_log_filename()
if log_filename:
......
3db51572837956b28ffbc4aabdce659b4a1d91dcbb8b75954210346959ed5fa9
\ No newline at end of file
ba707203aa7dfcaea014e65482058a538910da9934c9f91e3ff0d807613c3586
\ No newline at end of file
bcde6fc389b7d8bb7788989b68f68653ab8ed658117012c0611f218f4a585d38
\ No newline at end of file
7df53245c07746b2d63be01e631a7fcd5befed165fd50175c40a169f07cc35d4
\ No newline at end of file
6736bbcc055e1801a19288d3a64b622e0b9223164f8ad2ce842b18a4eaa0cfb9
\ No newline at end of file
ecc49680860cba13bacde567b7cad6c77887518adb7b4cfcce8652baec9a23c9
\ No newline at end of file
9294428a0b5c0d44fdb3ab0f883ee87f9e62d51f96c7de1e5e81ed5e3934d403
\ No newline at end of file
8a845f648d40c69c50528960bcda1ef03477e80f7a5f8cc36853801651de4b27
\ No newline at end of file
4f1569b9a6317280e6299f9f7f706a6adcc89603030cde51d529dd6dfe2851be
\ No newline at end of file
638f0b81a2062a0e9bd4f4b14fdb20fe62891826debefa80a22866d3dcb92862
\ No newline at end of file
4c83744bec21c8c38bce2d48396b8df1eb4df7b2f155424016bd012743efd808
\ No newline at end of file
ce19faef9a28bd14739876785c125ed288d74b01e3861ddbea1c7f7a5fb428b2
\ No newline at end of file
97385aa2192ef0295dd2601e78491d8bdf6b74e98938d0f8011747c2caf3a5c6
\ No newline at end of file
c29d00bd91a9f1ef61c4b3279759371c9097e1ebfcd9ddf035c8e4997291e35e
\ No newline at end of file
99c8f61d415de3a6c96e48299fda5554bf4bbaf56bb4b5acd85861ab37ede0c3
\ No newline at end of file
e12330e4a0bd5456f460f47d05d52f434634a14549f01786b9b975ec6bf622cc
\ No newline at end of file
5f5884c5e4bb7066eede3a135e49753ec06b757a30983513a7a4e0cdd2a8f402
\ No newline at end of file
55625e5ee18294703fa7005e7688dac4e28cc485b306d534a92c0cf77e434b12
\ No newline at end of file
e11f93ec629bc3556e15bd374e67a0b5e34350e1e9b1d1f98f8de984a27bbead
\ No newline at end of file
714e19b870e61af8f4cba9c5a948f2d0d16d63d796d568b9ed4d6329546cce53
\ No newline at end of file
d8388b756de5c8441375ba32cedd9560a65a8f9a85e41038837d342c8fb10004
\ No newline at end of file
958b4d93aed53a150c6e15246596e122140a64bd338232619abf4a8cb1b8a3ba
\ No newline at end of file
519ee88fcca7fea091245713ec68baa048e3d876ea22559d4b2035d3d2ab2494
\ No newline at end of file
e688b31f8b79f30d11e5fc1121798776d3f9ee68d2d97bb3029bf809fb95892b
\ No newline at end of file
a5424aa7cc25f0ada9ac1245b33d55d078559ae6c50b10bea3db9acb964b058c
\ No newline at end of file
40eb6b2bd3783189b72ac8465fcae7c7424f5804fbf229cc8984c86b9c07fd56
\ No newline at end of file
93bf7344c118664f0d7f2b8e5a6731b2a95de6df83ba7fa2a2ab28227b0b3e8b
\ No newline at end of file
3a85acc6dee15a828bfabc4daa9bc1ea72bafa2293a1d2479a99938afa8ee1ff
\ No newline at end of file
99c8f61d415de3a6c96e48299fda5554bf4bbaf56bb4b5acd85861ab37ede0c3
\ No newline at end of file
e12330e4a0bd5456f460f47d05d52f434634a14549f01786b9b975ec6bf622cc
\ No newline at end of file
780a7e62bbe5bc0f975ec6cd749de6a85f9080d3628f16f881605801597916a7
\ No newline at end of file
e080c2b9f00416050cb5bfc64b7f8d79d8ee5b6b4e34e9375dfe75c4207593e6
\ No newline at end of file
9b06b6e0c213a5475d2b0fcfee537c41dbec579e6109e95f7e7aeb0488f079f6
\ No newline at end of file
4782d65dc4492ddec81163478d10973afff6b69e65e4a74fed43afff06cd854b
\ No newline at end of file
d5b0f1fa5b4e3e7aa617de303125268c7a7461e415ecf1eccc8aee2cda56897e
\ No newline at end of file
7bf30dfdcb7bc546c9065c992f75122ab8033413eb52777a69a32be61eade124
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment