-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple records for retries on a same task #3494
Conversation
@@ -94,7 +94,10 @@ class Task extends Document { | |||
/// | |||
/// This is a human-readable name, typically a test name (e.g. | |||
/// "hello_world__memory"). | |||
String? get taskName => fields!['endTimestamp']!.stringValue!; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this meant to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line is actually a duplicate of https://github.com/flutter/cocoon/pull/3494/files#diff-bb6959c7655c2a5b97a3f09154743dd42d0c9167cb7643bbe51fbeffca9a96e6L91.
Here we are updating it to name
(line 97 below).
app_dart/lib/src/request_handlers/postsubmit_luci_subscription.dart
Outdated
Show resolved
Hide resolved
final String sha = commitKeyId.split('/').last; | ||
final String documentName = '$kDatabase/documents/tasks/${sha}_${taskName}_1'; | ||
final String documentName = '$kDatabase/documents/tasks/${sha}_${taskName}_$currentAttempt'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No action: This actually makes the _1 from the previous change make more sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with nits.
Mistakenly merged in #3494. This PR restores the URL.
This PR adds support to save multiple entries for a task retry. Old logic overrides task statuses on a single task, which fails to track statuses.
This PR:
attempts
infocurrent_attempt
tag to make it easy to trackattempts
info.attempt
increase when retry is triggered.Part of flutter/flutter#142951.