Chromium Code Reviews
DescriptionAdd snapshotting for CIPD packages and dimensions to DM.
This makes DM automatically pin all cipd packages used by an attempt, and optionally allows the quest to specify dimensions to pin as well. This prevents confusing bugs where e.g. a certain version of kitchen is used for the first execution of an attempt, but a different version is used for a subsequent execution. This means things like the 'state' that DM passes between executions doesn't need to worry about being interpreted by different versions of the various cipd packages in the job.
Pinning dimensions could be useful for pinning instance ids (for affinity), but more trivially is useful for pinning os/cpu when pinning a VERY generic cipd spec (e.g. things with ${platform} in the spec). In this case you could potentially formulate a quest that could run on ANY platform and get consistent re-executions.
BUG=639975
Committed: https://github.com/luci/luci-go/commit/d5fba5ee301b374e9c161fcfa8c4693b1a058e2c
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : rebase #Patch Set 4 : Fix nits #Patch Set 5 : rebase #Patch Set 6 : Remove cleanup noise #
Total comments: 14
Patch Set 7 : Add --snapshot-dimension to jobsim script #Patch Set 8 : Fix comments #Messages
Total messages: 11 (4 generated)
|