-
Notifications
You must be signed in to change notification settings - Fork 1.7k
flutter-analyze bot is flaky in step "analyze flutter/flutter" #47881
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
Trying this now |
… tests. This is an attempt to address some recent flakiness in the Flutter analyze trybots. Bug: #47881 Change-Id: I46eb1fca52fef4bbd3854c5da226512a579e11fb Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/222780 Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Paul Berry <[email protected]>
3e6d9a5 helped but did not entirely fix the problem. I'm re-titling the bug to reflect the more general flakiness problem with the flutter bot. |
The duplicate step can now be removed, since the flutter script dev/bots/analyze.dart now analyzes the snippets correctly. The temporary directory is automatically deleted when the builder finishes, and the cleanup step in this script was in a signal trap, which seems to have been causing the instability. So I am removing the cleanup step as well. |
The snippets analyze step in [flutter]/dev/bots/analyze.dart now uses our built SDK when analyzing the code snippets. The explicit duplicate command to analyze the snippets with our SDK can now be removed. The temp directory created in the script is not in the builder cache on swarming, so it is automatically deleted when the builder finishes. So we remove the cleanup step, which was trapping signals. That trap seems to have been responsible for these failures and exit code confusion. Bug: #47881 Change-Id: I49406954af54a0fba1ceec230c3551f8ad14e8e9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226685 Reviewed-by: Paul Berry <[email protected]>
The Flutter This may be unsafe (see dart-lang/pub#3165). Flutter's analyzer CI script is running Dart's flutter-analyze bot may also need to do that to reduce flakes. |
It's currently flaking on 50% of builds, providing almost no signal. Bug: #47881 Change-Id: I4376f281ac0b78f9b14cfeeefa9b555756b5008d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/228041 Auto-Submit: Alexander Thomas <[email protected]> Reviewed-by: Paul Berry <[email protected]> Commit-Queue: Paul Berry <[email protected]>
I have not seen this failure come up in the last 200 runs of the flutter-analyze bot. dart-lang/pub#3285 from @sigurdm landed in the main Dart branch in bc75541 on Jan 27 and the last failure of this kind was two days prior to that on Jan 25! I'm cautiously optimistic that this is now fixed 🎉 I'll close this issue at this time, but we can reopen if we encounter it again. |
From @athomas, regarding pub scripts possibly clobbering each other or corrupting a pub cache:
CC @stereotype441 @pq
The text was updated successfully, but these errors were encountered: