Skip to content

Conversation

@matanlurey
Copy link
Contributor

Towards flutter/flutter#162201.

If the following is true:

  • You are running a Fusion configuration
  • ['jtmcdole', 'matanlurey', 'yjbanov'].contains(pullRequest.user!.login)
  • At most 29 files have changed
  • All of the files are neither DEPS nor engine/** sources

... then we skip the entire engine build phase and the engine tests component of the tests phase.

If we like the outcome of this PR (after pushed, some manual testing), we can either open up the allow-list entirely or add additional names, and finally drop the allow-list entirely. Future work (i.e. expanding the file limit) need to be gated behind refactors and better test coverage, at least IMO.

Note this PR also regenerates dart run build_runner build some generated files.

/cc @yjbanov

@matanlurey matanlurey requested a review from jtmcdole January 27, 2025 19:02
@jtmcdole jtmcdole requested a review from yjbanov January 27, 2025 19:06
@jtmcdole
Copy link
Member

Adding @yjbanov as a reviewer as well just for a second set of eyes (seeing that I helped with this pr)

Copy link
Member

@jtmcdole jtmcdole left a comment

Choose a reason for hiding this comment

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

lgtm; just some nits

if (pullRequest.user!.login == config.autosubmitBot &&
pullRequest.labels!.any((element) => element.name == Config.revertOfLabel)) {
log.info('$logCrumb: skipping generating the full set of checks for revert request.');
log.info('$logCrumb: skipping generating the full set of checstagest.');
Copy link
Member

Choose a reason for hiding this comment

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

I think this line got vscode-share-ifiied

@matanlurey
Copy link
Contributor Author

I am going to submit, @yjbanov we'll be making more edits to this in the coming days so feedback is still welcome post-submit.

@matanlurey matanlurey added the autosubmit Merge PR when tree becomes green via auto submit App. label Jan 27, 2025
@auto-submit auto-submit bot merged commit 342986d into flutter:main Jan 27, 2025
4 checks passed
if (pullRequest.user!.login == config.autosubmitBot &&
pullRequest.labels!.any((element) => element.name == Config.revertOfLabel)) {
log.info('$logCrumb: skipping generating the full set of checks for revert request.');
log.info('$logCrumb: skipping generating the full set of changes.');
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not skipping "changes" though. It's skipping checks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a mistake on the part of John and I, we paired and vscode made some weird edits.

I'll send a PR fixing this.

auto-submit bot pushed a commit that referenced this pull request Jan 28, 2025
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.

3 participants