Skip to content

Use a synchronous StreamController for daemon logs #4028

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

Merged
merged 1 commit into from
Jun 9, 2025

Conversation

nshahan
Copy link
Contributor

@nshahan nshahan commented Jun 5, 2025

The logging from build_runner when running builds through a daemon was asynchronous and was causing some webdev build commands to missing the final status message.

Fixes: dart-lang/webdev#2489

The logging from build_runner when running builds through a
daemon was asynchronous and was causing some `webdev build`
commands to missing the final status message.

Fixes: dart-lang/webdev#2489
@nshahan nshahan requested a review from davidmorgan June 5, 2025 19:39
@nshahan
Copy link
Contributor Author

nshahan commented Jun 5, 2025

It's totally fine if you want to include this into your upcoming changes too.

Copy link

github-actions bot commented Jun 5, 2025

PR Health

Changelog Entry
Package Changed Files
package:build_runner build_runner/lib/src/daemon/daemon_builder.dart

Changes to files need to be accounted for in their respective changelogs.

This check can be disabled by tagging the PR with skip-changelog-check.

@davidmorgan
Copy link
Contributor

Thanks.

Do you want to release this now? There don't seem to be any other changes to build_daemon, so it should just work, and it will avoid getting tangled with the much larger pending release.

If so please also

  • update the CHANGELOG to rename 4.0.5-wip to 4.0.5 and to add e.g. `Fix missing last log message in webdev.'
  • update the pubspec.yaml to version 4.0.5

then I'll merge and publish.

Thanks :)

@nshahan
Copy link
Contributor Author

nshahan commented Jun 6, 2025

It would be nice to get the fix published but it is not urgent. We have worked around the missing message in the output to get our tests passing.

Just to clarify, the touched file in this PR is actually part of package:build_runner. Is that package otherwise untouched and safe to be published?

@davidmorgan
Copy link
Contributor

Oh. Not sure why I thought it was build_daemon :)

Then, it'll go out with the main release after all.

It would be relatively easy to backport to an old version if needed, so please do let me know if you get tired of waiting for the release :) thanks.

@davidmorgan davidmorgan merged commit 864e7c4 into master Jun 9, 2025
76 of 78 checks passed
@davidmorgan davidmorgan deleted the fix-webdev-test branch June 9, 2025 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Some test cases in webdev/test/e2e_test.dart are failing on Windows
2 participants