-
Notifications
You must be signed in to change notification settings - Fork 100
Fix test ownership test to use task_name if target is a devicelab target #2898
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
Fix test ownership test to use task_name if target is a devicelab target #2898
Conversation
| String getTestNameFromTargetName(String targetName) { | ||
| // The builder names is in the format '<platform> <test name>'. | ||
| final List<String> words = targetName.split(' '); | ||
| return words.length < 2 ? words[0] : words[1]; | ||
| } |
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.
Shall we remove this function?
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.
I do believe that we still need this for the non devicelab tests as they still use the target name to split.
app_dart/lib/src/request_handlers/update_existing_flaky_issues.dart
Outdated
Show resolved
Hide resolved
202dfa1 to
407d35c
Compare
keyonghan
left a comment
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.
You need to wait for the flutter PR to land first to unblock the CQ here.
Update a few of the tasks that are mislabeled as this will cause failures if that change is merged first. This PR is needed before: flutter/cocoon#2898 *List which issues are fixed by this PR. You must list at least one issue.* Part of #125328 *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].*
|
auto label is removed for flutter/cocoon, pr: 2898, due to - This commit is not mergeable and has conflicts. Please rebase your PR and fix all the conflicts. |
6e0b1d5 to
7a1cd38
Compare
7d16b29 to
01178b7
Compare
Fix the test ownership test to compare the task_name with the dart file store in the TESTOWNERs file.
List which issues are fixed by this PR. You must list at least one issue.
Fixes flutter/flutter#125328
If you had to change anything in the flutter/tests repo, include a link to the migration guide as per the breaking change policy.
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.