Skip to content

fix: prevent redundant presubmit builds by checking for existing LUCI…#5083

Merged
auto-submit[bot] merged 4 commits into
flutter:mainfrom
ievdokdm:188126-cicd
Jun 23, 2026
Merged

fix: prevent redundant presubmit builds by checking for existing LUCI…#5083
auto-submit[bot] merged 4 commits into
flutter:mainfrom
ievdokdm:188126-cicd

Conversation

@ievdokdm

Copy link
Copy Markdown
Contributor

To avoid re-running all checks if the CICD label is removed and added after presubmits have started, check if builds already exist for the current SHA. If builds already exist, there is no need to cancel them and create new ones.

fix: flutter/flutter#188126

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Jun 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a check in the scheduler to prevent re-running presubmit checks if builds already exist for the current SHA, avoiding redundant cancellations and recreation of builds. The feedback points out a critical issue with this logic: checking if any build exists (including completed, failed, or canceled ones) will prevent developers from retrying failed builds. The reviewer suggests modifying the check to only return early if there are active builds (i.e., with a status of 'SCHEDULED' or 'STARTED') and provides corresponding updates for the test mocks.

Comment thread app_dart/lib/src/service/scheduler.dart
Comment thread app_dart/test/service/scheduler_test.dart
@ievdokdm ievdokdm added CICD Run CI/CD and removed CICD Run CI/CD labels Jun 23, 2026
Comment thread app_dart/lib/src/service/scheduler.dart

@jtmcdole jtmcdole left a comment

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.

LGTM; log is a nit

@ievdokdm ievdokdm added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App. and removed CICD Run CI/CD labels Jun 23, 2026
@auto-submit auto-submit Bot merged commit 2f05233 into flutter:main Jun 23, 2026
25 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.

"Generic" sidebar listed twice. Unclear what second list is for

2 participants