Skip to content

Add build number for re-run failed jobs#4948

Merged
auto-submit[bot] merged 15 commits intoflutter:mainfrom
ievdokdm:176990-add-build-number
Feb 13, 2026
Merged

Add build number for re-run failed jobs#4948
auto-submit[bot] merged 15 commits intoflutter:mainfrom
ievdokdm:176990-add-build-number

Conversation

@ievdokdm
Copy link
Contributor

Add build number for re-run failed jobs

Partial Fix: flutter/flutter#176990

Task: Update PresubmitCheckState Model
Summary: Added buildNumber to PresubmitCheckState and mapped it from the LUCI build in the BuildToPresubmitCheckState extension.
Files: app_dart/lib/src/model/common/presubmit_check_state.dart, app_dart/test/model/common/presubmit_check_state_test.dart
Why: To allow tracking of the LUCI build number throughout the presubmit check processing lifecycle.
Task: Update PresubmitCheck Firestore Model
Summary: Added buildNumber setter and unit tests to the PresubmitCheck Firestore model.
Files: app_dart/lib/src/model/firestore/presubmit_check.dart, app_dart/test/model/firestore/presubmit_check_test.dart
Why: To enable storing and retrieving the LUCI build number in Firestore for each presubmit check attempt.
Task: Update PresubmitCheckResponse RPC Model
Summary: Added buildNumber to PresubmitCheckResponse and configured JSON serialization to omit null fields.
Files: packages/cocoon_common/lib/src/rpc_model/presubmit_check_response.dart, packages/cocoon_common/lib/src/rpc_model/presubmit_check_response.g.dart, packages/cocoon_common/test/presubmit_check_response_test.dart
Why: To expose the LUCI build number in the API responses for presubmit checks.
Task: Update UnifiedCheckRun.markConclusion Logic
Summary: Updated markConclusion to store the buildNumber from PresubmitCheckState into the Firestore PresubmitCheck document. Updated relevant tests.
Files: app_dart/lib/src/service/firestore/unified_check_run.dart, app_dart/test/service/firestore/unified_check_run_test.dart
Why: To ensure the LUCI build number is persisted in Firestore when a presubmit check completes.
Task: Update GetPresubmitChecks API Handler
Summary: Updated the GetPresubmitChecks API handler to include the buildNumber from the Firestore PresubmitCheck document in the PresubmitCheckResponse. Updated relevant tests.
Files: app_dart/lib/src/request_handlers/get_presubmit_checks.dart, app_dart/test/request_handlers/get_presubmit_checks_test.dart
Why: To expose the LUCI build number in the API for consumption by the dashboard.
…eck and fill it on processing checkrun completed' as complete
…tCheck and fill it on processing checkrun completed'
@ievdokdm ievdokdm requested a review from jtmcdole February 13, 2026 01:39
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.

awesome-computer-kid-computer-lgtm

@ievdokdm ievdokdm added the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 13, 2026
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 13, 2026
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 13, 2026

autosubmit label was removed for flutter/cocoon/4948, because Pull request flutter/cocoon/4948 is not in a mergeable state.

@ievdokdm ievdokdm added the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 13, 2026
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 13, 2026
@auto-submit
Copy link
Contributor

auto-submit bot commented Feb 13, 2026

autosubmit label was removed for flutter/cocoon/4948, because - The status or check suite common-validations has failed. Please fix the issues identified (or deflake) before re-applying this label.

@ievdokdm ievdokdm added the autosubmit Merge PR when tree becomes green via auto submit App. label Feb 13, 2026
@auto-submit auto-submit bot merged commit babb1c3 into flutter:main Feb 13, 2026
20 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Dashboard back-end for LUCI Tests statuses

2 participants