dart-lang / build

A build system for Dart written in Dart
https://pub.dev/packages/build
BSD 3-Clause "New" or "Revised" License
791 stars 211 forks source link

`build_runner test` does not exit after test process exits #3770

Closed evanweible-wf closed 1 week ago

evanweible-wf commented 1 week ago

We recently noticed that part of our CI is failing on Dart stable due to a dart run build_runner test process not exiting even though the child test process has (seemingly) exited successfully.

Fwiw, I filed a similar issue a long time ago (https://github.com/dart-lang/build/issues/2327), so maybe something regressed here? I haven't worked in the test_html_builder repo in a while, which is where we're seeing this issue, so I'm not sure when it would have actually been introduced.

Here's an example CI run where the process hangs and eventually times out: https://github.com/Workiva/test_html_builder/actions/runs/11802042443/job/32876800406?pr=52

jakemac53 commented 1 week ago

There was I believe another report of this recently as well, but we couldn't figure out the issue. Our own e2e tests do not reproduce it.

jakemac53 commented 1 week ago

Ah, yeah https://github.com/dart-lang/test/issues/2294 is the previous one.

jakemac53 commented 1 week ago

closing as a duplicate