Skip to content

Conversation

@matanlurey
Copy link
Contributor

Towards flutter/flutter#161462, towards flutter/flutter#162201.

This PR does a few things:

  1. Introduces an abstraction, GetFilesChanged
  2. Codifies "we aren't confident" as InconclusiveFilesChanged
  3. Refactors the existing implementation into GithubApiGetFilesChanged

The intention is no user-facing behavioral changes, but this PR enables:

  1. Swapping out the implementation (i.e. to CheckRunArtifactsGetFilesChanged)
  2. Reusing the logic, including inconclusive-ness, for Conditionally skip the engine build phase flutter#162201 (framework-only PRs).

switch (filesChanged) {
case InconclusiveFilesChanged(:final pullRequestNumber, :final reason):
log.info('Running all targets on PR#$pullRequestNumber: $reason');
return targets.toList();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[...targets]

@matanlurey
Copy link
Contributor Author

@yjbanov I am going to submit this to unblock Part 2 Monday, but if you have any feedback or suggestions leave them and I'll send a follow-up PR. Thanks again!

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App. label Jan 25, 2025
@auto-submit auto-submit bot merged commit 86f29e5 into flutter:main Jan 25, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants