Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[M115][infra] More closely unify variant and mixin behavior.
Variants are logically similar to mixins in their ability to modify a test suite, with the difference being that a test spec is created for each variant rather than all being applied to a single test spec. To ensure more consistent treatment of fields, variants will now use the mixin codepath to modify a test. The following differences remain with variants: * The enabled, identifier and mixins fields specify behavior that is specific to variants. * Skylab details can be specified on a variant under the skylab key. When a variant is applied to a test, if the skylab key is present, all fields of the value will be lifted to the top-level, except for the cros_chrome_version field, which is only used by the cros skylab image roller to compare against other data sources. This CL introduces the following behavior changes: * The swarming field in a variant is merged in the same way as with a mixin, in particular, dimension_sets will be added to the test's dimension_sets value instead of merging elements at the same index. This didn't result in any changes to generated files, but all variants have been updated to use dimensions instead of dimension_sets to ensure the same behavior going forward. * A mixin that specifies the description field (non exist at this point), will have the description appended to any existing description for the test. (cherry picked from commit 8d6708c) Bug: 1456553 Change-Id: I869d8baad76027d811b7c3b96ed35d46509a819b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4703284 Auto-Submit: Garrett Beaty <gbeaty@google.com> Commit-Queue: Ben Pastene <bpastene@chromium.org> Reviewed-by: Ben Pastene <bpastene@chromium.org> Cr-Original-Commit-Position: refs/heads/main@{#1173053} Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4706387 Commit-Queue: Garrett Beaty <gbeaty@google.com> Cr-Commit-Position: refs/branch-heads/5790@{#1844} Cr-Branched-From: 1d71a33-refs/heads/main@{#1148114}
- Loading branch information
1 parent
8ad26ff
commit d14b74c
Showing
17 changed files
with
110 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.