Skip to content

Fix merge group not closing on Neutral status#4990

Merged
auto-submit[bot] merged 4 commits into
mainfrom
fixMergeGroupNotClosing
Mar 19, 2026
Merged

Fix merge group not closing on Neutral status#4990
auto-submit[bot] merged 4 commits into
mainfrom
fixMergeGroupNotClosing

Conversation

@jtmcdole
Copy link
Copy Markdown
Member

A neutral "status" is completed and treated as successful in the case of testing

Follow up PR to refactor more of this + more tests.

@jtmcdole jtmcdole requested a review from ievdokdm March 19, 2026 17:17
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Hi @jtmcdole, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This PR addresses the issue with the merge group not closing on a Neutral status by correctly mapping neutral outcomes to a new TaskStatus.neutral value. However, the addition of a new enum value without accompanying updates to exhaustive switch statements will break the Dart build across the repository.

🔍 General Feedback

  • The logic updates in presubmit_luci_subscription.dart and its associated tests are sound and correctly pass the neutral override status to the scheduler.
  • Ensure that the new TaskStatus.neutral is correctly supported by all boolean getters (e.g., isComplete, isSuccess) in task_status.dart to avoid unexpected hangs in task processing loops.
  • Please verify that all exhaustive switch statements across dashboard and app_dart are updated to handle the new TaskStatus.neutral value to fix the upcoming compilation errors.

Comment thread packages/cocoon_common/lib/task_status.dart
@jtmcdole jtmcdole force-pushed the fixMergeGroupNotClosing branch from 3e90fad to d67e77b Compare March 19, 2026 17:40
Copy link
Copy Markdown
Contributor

@ievdokdm ievdokdm left a comment

Choose a reason for hiding this comment

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

LGTM

@jtmcdole jtmcdole added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App. labels Mar 19, 2026
@auto-submit auto-submit Bot merged commit cf5db89 into main Mar 19, 2026
26 checks passed
@jtmcdole jtmcdole deleted the fixMergeGroupNotClosing branch April 16, 2026 15:53
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