-
Notifications
You must be signed in to change notification settings - Fork 100
Test target dimensions in presubmit #1597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test target dimensions in presubmit #1597
Conversation
| } | ||
|
|
||
| /// Get dimensions from target properties. | ||
| List<RequestedDimension> getDimensions(Map<String, dynamic>? properties) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done later since P0, but can we move all the dimension logic be moved into model/ci_yaml/target.dart?
| } | ||
|
|
||
| // Dimension list defined in .ci.yaml. | ||
| List<String> get dimensionList => <String>['os', 'device_os', 'device_type', 'mac_model']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good enough for now to fix the current problem but in a future change we should do this in a generic way. Maybe a property called dimensions with an arbitrary dictionary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, only appended those used in our ci.yaml.
Inject dimensions from PRs in presubmit to test corresponding changes.
Fixes: flutter/flutter#98214
Related: flutter/flutter#97303