-
Notifications
You must be signed in to change notification settings - Fork 28.5k
find_commit.dart hardcodes master branch #115476
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
Comments
/cc @Hangyujin who spotted this in her patch's presubmits. |
@HansMuller Can you reassign this please? |
@ricardoamador - not my area @godofredoc - this issue is preventing us from landing an approved and time-critical PR |
The find_commit logic is old, and hasn't cocoon been missing a master branch for awhile? Are you sure the real failure isn't the new analysis issues coming from
When I run it locally on this PR I also see these, which definitely look related to #113894 (the PR where this is failing).
|
Right and thanks for tracking down the root of the problem! The actual problem is a simple one. The original error logs, https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8797303295761259729/+/u/Customer_testing/customer_testing/test_stdout, completely obscure the problem:
|
Regarding the It seems like the root cause of the failure was identified and solved in flutter/cocoon#2313 now? |
This issue is assigned to @XilaiZhang but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
@XilaiZhang is this still happening? |
Re-reading this thread. It seems like the proposed fix landed in #119648 but it is impossible to handle all scenarios (due to systematic error of luci git)? |
This will allow Dart Team to run customer tests as part of monorepo and will be a step forward to remove ad_hoc tests. Bug: dart-lang/sdk#51042 Bug: #115476
This will allow Dart Team to run customer tests as part of monorepo and will be a step forward to remove ad_hoc tests. Bug: dart-lang/sdk#51042 Bug: flutter#115476
This issue is assigned to @XilaiZhang but has had no recent status updates. Please consider unassigning this issue if it is not going to be addressed in the near future. This allows people to have a clearer picture of what work is actually planned. Thanks! |
This issue was assigned to @XilaiZhang but has had no status updates in a long time. To remove any ambiguity about whether the issue is being worked on, the assignee was removed. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
When looking up git commits, find_commit.dart uses a
git log
invocation here:flutter/dev/tools/bin/find_commit.dart
Lines 68 to 75 in a2233ea
This is called from here:
flutter/dev/tools/bin/find_commit.dart
Lines 99 to 105 in a2233ea
Since we hardcode
master
as both the primary and secondary repo branches, it will fail for repos that have only amain
branch and nomaster
, such as flutter/cocoon.See example failure here:
https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8797370543676737825/+/u/Customer_testing/customer_testing/test_stderr
Related, but we should probably fail whichever tools are using find_commit.dart if the lookup fails. In the log above it looks like even though the lookup fails, we continue on and run the tests anyway:
Note the lack of SHA in the checkout command, which I presume is meant to be there.
The text was updated successfully, but these errors were encountered: