Skip to content

Conversation

@keyonghan
Copy link
Contributor

Inject dimensions from PRs in presubmit to test corresponding changes.

Fixes: flutter/flutter#98214
Related: flutter/flutter#97303

}

/// Get dimensions from target properties.
List<RequestedDimension> getDimensions(Map<String, dynamic>? properties) {
Copy link
Contributor

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'];
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting for tree to go green Merge PR when tree becomes green via fluttergithubbot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[scheduler] Add support for passing dimensions

4 participants