You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tree is blocked on Mac_x64 tool_tests_commands and Mac_arm64 tool_tests_commands failures #172375
Issue is assigned to multiple teams (infra, tool). Please ensure the issue has only one team-* label at a time. Use fyi-* labels to have another team look at the issue without reassigning it.
deleting the .dart_tool and pubspec.lock files in packages/flutter_tools
running ../../bin/dart run test test/commands.shard/permeable/packages_test.dart.
Tried adding some logging to see what pub is doing. The test is running: [FLUTTER_ROOT]/bin/cache/dart-sdk/bin/dart pub --suppress-analytics get --directory [TEMP_DIRECTORY]/flutter_project --example
It's getting an error because dart pub get does not handle the Flutter SDK:
Resolving dependencies in [TEMP_DIRECTORY]/flutter_project...
Because flutter_project depends on flutter_test from sdk which doesn't exist (the Flutter SDK is not
available), version solving failed.
Flutter users should use `flutter pub` instead of `dart pub`.
Added logging to a LUCI run and found what is likely the issue. The root cause is probably unrelated to the earlier attempts to reproduce this locally.
Recently flutter_tools upgraded to version 6.0.0 of the flutter_lints package. But the templates used by flutter create to create new projects are still writing a pubspec.yaml with a flutter_lints: ^5.0.0 constraint.
One of the tests in packages_test runs pub get with the --offline flag. That test may fail due to the version mismatch.
Building flutter_tools will populate the local pub cache with the flutter_lints version that is used by flutter_tools. But a different version of flutter_lints may not be there depending on the state of the LUCI bot's pub cache and the order in which the pub-related tests were run.
I'll send out a PR to update the templates and restore the tool tests.
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 flutter doctor -v and a minimal reproduction of the issue.
Activity
flutter-triage-bot commentedon Jul 18, 2025
Issue is assigned to multiple teams (infra, tool). Please ensure the issue has only one
team-*label at a time. Usefyi-*labels to have another team look at the issue without reassigning it.zanderso commentedon Jul 18, 2025
Maybe this is a failure triggered by the daily random test ordering seed.
Mark Mac_* tool_tests_commands as bringup to unblock tree
mdebbar commentedon Jul 18, 2025
FWIW, I'm able to reproduce this locally by doing:
(with no seed or with any random seed)
But running it with
flutter testpasses:And now, running it again with
dart run teststarts passing. Soflutter testis doing something that's causing subsequent runs of this test to pass.I was able to get
dart run testto fail again by switching to a different branch, then run the test usingdart run test.Mark Mac_* tool_tests_commands as bringup to unblock tree (#172388)
zanderso commentedon Jul 18, 2025
Passing
--verbosehere could get the pub logs preserved in the test output:https://github.com/flutter/flutter/blob/master/packages/flutter_tools/test/commands.shard/permeable/packages_test.dart#L80
jason-simmons commentedon Jul 18, 2025
I can reproduce this by:
.dart_toolandpubspec.lockfiles inpackages/flutter_tools../../bin/dart run test test/commands.shard/permeable/packages_test.dart.Tried adding some logging to see what
pubis doing. The test is running:[FLUTTER_ROOT]/bin/cache/dart-sdk/bin/dart pub --suppress-analytics get --directory [TEMP_DIRECTORY]/flutter_project --exampleIt's getting an error because
dart pub getdoes not handle the Flutter SDK:The Flutter tool assumes that
dart pub getcan run on Flutter projects (https://github.com/flutter/flutter/blob/master/packages/flutter_tools/lib/src/dart/pub.dart#L566). Is that no longer supported?zanderso commentedon Jul 18, 2025
Current logic for this in pub is here https://github.com/dart-lang/pub/blob/master/lib/src/sdk/flutter.dart#L28
Take Mac_* tool_tests_commands out of bringup
jason-simmons commentedon Jul 19, 2025
Added logging to a LUCI run and found what is likely the issue. The root cause is probably unrelated to the earlier attempts to reproduce this locally.
Recently
flutter_toolsupgraded to version 6.0.0 of theflutter_lintspackage. But the templates used byflutter createto create new projects are still writing apubspec.yamlwith aflutter_lints: ^5.0.0constraint.One of the tests in
packages_testrunspub getwith the--offlineflag. That test may fail due to the version mismatch.Building
flutter_toolswill populate the local pub cache with theflutter_lintsversion that is used byflutter_tools. But a different version offlutter_lintsmay not be there depending on the state of the LUCI bot's pub cache and the order in which the pub-related tests were run.I'll send out a PR to update the templates and restore the tool tests.
4 remaining items
Upgrade flutter_lints in project template pubspec.yaml files (#172400)
Mark Mac_* tool_tests_commands as bringup to unblock tree (flutter#17…
Upgrade flutter_lints in project template pubspec.yaml files (flutter…
github-actions commentedon Aug 5, 2025
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
flutter doctor -vand a minimal reproduction of the issue.Upgrade flutter_lints in project template pubspec.yaml files (flutter…
Upgrade flutter_lints in project template pubspec.yaml files (flutter…
Upgrade flutter_lints in project template pubspec.yaml files (flutter…
Upgrade flutter_lints in project template pubspec.yaml files (flutter…
Upgrade flutter_lints in project template pubspec.yaml files (#172400)