Repository navigation
Builds hang if pub get has errors #74700
Description
Activity
- addedc: contributor-productivityTeam-specific productivity, code health, technical debt.Team-specific productivity, code health, technical debt.team-infraOwned by Infrastructure teamOwned by Infrastructure team
on Jan 26, 2021 This happens when a command does not close subprocesses correctly. e.g the main process completes but leaves behind detached subprocesses.
Is this something we can assign to people more familiar with pub?
- addedinfra: metricsInfrastructure metrics-related issuesInfrastructure metrics-related issuesand removedinfra: metricsInfrastructure metrics-related issuesInfrastructure metrics-related issues
on Feb 2, 2021 - changed the title
[-]Linux flutter_plugins hangs if an error occurs[/-][+]Builds hang if pub get has errors[/+]on Feb 3, 2021 @sigurdm is this something you can help us debug? we believe that when pub get fails it may not be closing some subprocesses. In LUCI when the main process is closed but somehow a detached subprocess continues running the task does not complete and times out.
Hmm
flutter pub getinvokes bin/pub.dart from pub (compiled to a snapshot) that does an explicit call toexit(): https://github.com/dart-lang/pub/blob/master/bin/pub.dart#L9I think that should terminate lingering processes (unless they are completely detached - which we never do)...
The only subprocesses
pub getis invoking is tar for unzipping (https://github.com/dart-lang/pub/blob/master/lib/src/io.dart#L832).
Another possible source of hanging is not closing a http-client - but again I believeexit()should save us.How reliably can we reproduce this? It would be helpful to run this with
--verbose.@jonasfj any ideas?
We also have git subprocesses, if there are git dependencies.
But maybe share the bits of the logs that problematic, I can't even see where it's hanging. What pubspec, etc.
This ends up happening I'd there is a version solving error, e.g. two incompatible constraints
@nehalvpatel this is related to the the pub cli timeouts
Thanks, looks like this will be able to be addressed after the retry refactoring / updates are done
Reacted by Jonas Finnemann JensenTaking a look at this now that dart-lang/pub#3590 has been merged
- addedP3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecttriaged-infraTriaged by Infrastructure teamTriaged by Infrastructure team
on Aug 23, 2023 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.- locked as resolved and limited conversation to collaborators
on Mar 8, 2025
This builder: https://ci.chromium.org/p/flutter/builders/try/Linux%20flutter_plugins
e.g. https://ci.chromium.org/p/flutter/builders/try/Linux%20flutter_plugins/1858
Here and several other cases,
pub getfailed. Instead of printing the error and exiting, the test just hangs until it times out.@godofredoc @keyonghan