Skip to content

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

Open
eyebrowsoffire wants to merge 2 commits intoflutter:mainfrom
eyebrowsoffire:separate_unified_checkrun
Open

Create a separate "Flutter Presubmits" checkrun for the unified checkrun flow.#5022
eyebrowsoffire wants to merge 2 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"?

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?

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.

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

Labels

CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants