Skip to content

create_test failing on pub failures #89759

@zanderso

Description

@zanderso

I am mainly seeing this in Engine rolls, which are very backed up, for example here:

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8836558489357793457/+/u/run_test.dart_for_tool_tests_shard_and_subshard_commands/test_stdout

First:

16:55 +378 -1: test\commands.shard\permeable\create_test.dart: invokes pub offline when requested                                                                                                      
ProcessException: Failed to find "../..\bin\cache\dart-sdk\bin\dart" in the search path.
  Command: ../..\bin\cache\dart-sdk\bin\dart 
#0      LocalProcessManager.start (package:process/src/interface/local_process_manager.dart:58:7)
#1      LoggingProcessManager.start (file:///C:/b/s/w/ir/x/w/flutter/packages/flutter_tools/test/commands.shard/permeable/create_test.dart:2814:18)
#2      _DefaultProcessUtils.start (package:flutter_tools/src/base/process.dart:425:28)
#3      _DefaultProcessUtils.stream (package:flutter_tools/src/base/process.dart:444:35)
#4      _DefaultPub.batch (package:flutter_tools/src/dart/pub.dart:308:34)
<asynchronous suspension>
#5      _DefaultPub.get (package:flutter_tools/src/dart/pub.dart:248:7)
<asynchronous suspension>
#6      CreateBase.generateApp (package:flutter_tools/src/commands/create_base.dart:451:7)

Then later:

Because flutter_project depends on flutter_lints any which doesn't exist (could not find package flutter_lints in cache), version solving failed.

Metadata

Metadata

Assignees

Labels

P0Critical issues such as a build break or regressiona: tests"flutter test", flutter_test, or one of our testsdependency: dartDart team may need to help ustoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions