Add the name of build deps to the strict cache key
All threads resolved!
All threads resolved!
Description
As it currently stands:
- When we calculate the weak cache key, we add the names of build dependencies to the cache key: https://gitlab.com/BuildStream/buildstream/blob/master/src/buildstream/element.py#L3095
- When we calculate the strong cache key, we use the strict cache keys of build deps (and not their names): https://gitlab.com/BuildStream/buildstream/blob/master/src/buildstream/element.py#L3106
This means that changing the name of a dependency would trigger a rebuild with non-strict but not with strict.
Additionally, we store the element_name of build dependencies in the artifact proto: https://gitlab.com/BuildStream/buildstream/blob/master/src/buildstream/_protos/buildstream/v2/artifact.proto#L57
This means that we change the name of a dependency, we not trigger a change in the strict cache key and thus, the proto would get out of sync
This MR addresses this.
Merge request reports
Activity
added 14 commits
-
78a8566d...cf3f9257 - 12 commits from branch
master
- 77eb2556 - tests/frontend/buildcheckout.py: Stop using explicit cache keys
- d9a73dca - element.py: Add the build dependency names to the cache key dict
-
78a8566d...cf3f9257 - 12 commits from branch
- Resolved by Darius Makovsky
mentioned in merge request !1548 (merged)
- Resolved by Tom Pollard
assigned to @marge-bot123
added 8 commits
-
d9a73dca...1f702026 - 6 commits from branch
master
- 1461aec9 - tests/frontend/buildcheckout.py: Stop using explicit cache keys
- f296a235 - element.py: Add the build dependency names to the cache key dict
-
d9a73dca...1f702026 - 6 commits from branch
assigned to @jennis and unassigned @marge-bot123
added 8 commits
-
f296a235...dd03a017 - 6 commits from branch
master
- 124bb873 - tests/frontend/buildcheckout.py: Stop using explicit cache keys
- 1c560e56 - element.py: Add the build dependency names to the cache key dict
-
f296a235...dd03a017 - 6 commits from branch
Thanks for the reviews. Closing in favour of !1548 (merged) as this includes identical changes.
Please register or sign in to reply