Skip to content

Create a separate "Flutter Presubmits" checkrun for the unified checkrun flow.#5022

Merged
auto-submit[bot] merged 4 commits intoflutter:mainfrom
eyebrowsoffire:separate_unified_checkrun
Apr 17, 2026
Merged

Create a separate "Flutter Presubmits" checkrun for the unified checkrun flow.#5022
auto-submit[bot] merged 4 commits intoflutter:mainfrom
eyebrowsoffire:separate_unified_checkrun

Conversation

@eyebrowsoffire
Copy link
Copy Markdown
Contributor

This allows us to add "Flutter Presubmits" to the required checks for release candidate branches as well, and have a less confusing name (since release candidate branches don't use the merge queue).

Merge Queue Guard is still created but immediately completed when unified checkruns are created, because this is a required check.

Similarly, "Flutter Presubmits" is always created, and if the unified checkruns are disabled, we immediately complete it as well. This allows us to make this a required check for the master branch and the release candidate branches as well.

…run flow.

This allows us to add "Flutter Presubmits" to the required checks for
release candidate branches as well, and have a less confusing name (since
release candidate branches don't use the merge queue).

Merge Queue Guard is still created but immediately completed when unified
checkruns are created, because this is a required check.

Similarly, "Flutter Presubmits" is always created, and if the unified
checkruns are disabled, we immediately complete it as well. This allows
us to make this a required check for the `master` branch and the release
candidate branches as well.
@eyebrowsoffire eyebrowsoffire added the CICD Run CI/CD label Apr 15, 2026
@eyebrowsoffire eyebrowsoffire requested a review from jtmcdole April 15, 2026 18:55
Comment on lines 842 to +865
@@ -837,8 +848,43 @@ $s
title: Config.kMergeQueueLockName,
summary: kMergeQueueLockDescription,
),
detailsUrl: detailsUrl,
detailsUrl: isUnifiedCheckRun ? null : detailsUrl,
);

final flutterPresubmits = await _githubChecksService.githubChecksUtil
.createCheckRun(
_config,
slug,
headSha,
Config.kFlutterPresubmitsName,
output: const CheckRunOutput(
title: Config.kFlutterPresubmitsName,
summary: kFlutterPresubmitsDescription,
),
detailsUrl: isUnifiedCheckRun ? detailsUrl : null,
);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we need to create both? Is the idea that we'll have "MQG" and "PSG"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The reason we need to create both is that both will be required checks for the master branch.

slug,
mqGuard,
status: CheckRunStatus.completed,
conclusion: CheckRunConclusion.success,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Prefer using neutral or skipped?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how the required checks are configured. Will they still allow the PR to merge if the status is neutral or skipped?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It seems like the answer is "sometimes": https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/collaborating-on-repositories-with-code-quality-features/troubleshooting-required-status-checks#handling-skipped-but-required-checks

Whether the check blocks when it is skipped depends on where it comes from, but it actually doesn't say anything about when its status is set programatically through the GH API. I think I'm just going to leave these as is, so that we don't break anything for anyone.

slug,
flutterPresubmits,
status: CheckRunStatus.completed,
conclusion: CheckRunConclusion.success,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ditto neutral/skipped

Copy link
Copy Markdown
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.

Left some comments - mostly nits.

@eyebrowsoffire eyebrowsoffire added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App. and removed CICD Run CI/CD labels Apr 17, 2026
@auto-submit auto-submit Bot merged commit 5475492 into flutter:main Apr 17, 2026
31 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. CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants