Skip to content

183863 sort jobs#4989

Merged
auto-submit[bot] merged 12 commits intomainfrom
183863-sort-jobs
Mar 19, 2026
Merged

183863 sort jobs#4989
auto-submit[bot] merged 12 commits intomainfrom
183863-sort-jobs

Conversation

@ievdokdm
Copy link
Copy Markdown
Contributor

@ievdokdm ievdokdm commented Mar 18, 2026

  • For presubmit dashboard implemented checks sorting by task status first and by name within same status.
  • Added the functionality to auto-select the first check if none is currently selected.
  • Small fixes:
    • lowered padding
    • increased retry count while decreasing retry delay

Fix: flutter/flutter#183863

Task: Create task sorting utility
Summary: Implemented compareTasks function to sort tasks by status priority and name.
Files: dashboard/lib/logic/task_sorting.dart, dashboard/test/logic/task_sorting_test.dart
Why: Provides the core logic for sorting presubmit checks on the dashboard.
Task: Apply sorting to _ChecksSidebar
Summary: Applied compareTasks sorting logic to the builds in the checks sidebar.
Files: dashboard/lib/views/presubmit_view.dart, dashboard/test/views/presubmit_view_test.dart
Why: Improves visibility of failed and in-progress checks by prioritizing them at the top of each stage.
@ievdokdm ievdokdm requested a review from jtmcdole March 18, 2026 22:42
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Hi @ievdokdm, 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 Pull Request successfully implements a sorting mechanism for the presubmit dashboard, prioritizing tasks by their status and then alphabetically by name. The core sorting logic is sound, well-tested, and meets the stated objectives. However, there are a few minor issues regarding unintended changes and potential performance optimizations in the UI layer.

🔍 General Feedback

  • The core sorting utility compareTasks is well-implemented and exhaustive over the TaskStatus enum.
  • The unit tests provided in task_sorting_test.dart and presubmit_view_test.dart provide excellent coverage of the new sorting logic.
  • Consider reviewing the unrelated modifications in app_dart/lib/src/service/scheduler.dart to ensure no accidental logic regressions were introduced.
  • Please verify the accessibility impact of the reduced padding and minimum button sizes on the dashboard's touch targets.

Comment thread app_dart/lib/src/service/scheduler.dart
Comment thread dashboard/lib/views/presubmit_view.dart Outdated
Comment thread dashboard/lib/views/presubmit_view.dart
Comment thread dashboard/lib/views/presubmit_view.dart
@ievdokdm ievdokdm added autosubmit Merge PR when tree becomes green via auto submit App. CICD Run CI/CD labels Mar 18, 2026
@ievdokdm ievdokdm requested a review from jason-simmons March 18, 2026 23:42
@ievdokdm ievdokdm removed the request for review from jason-simmons March 19, 2026 17:30
@auto-submit auto-submit Bot merged commit 49d3355 into main Mar 19, 2026
26 checks passed
@ievdokdm ievdokdm deleted the 183863-sort-jobs branch March 24, 2026 18:25
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.

Sort jobs on UI by their status then by name

2 participants