emitter: add "streaming brief" feature
Metadata
Current evaluation
Merged PR #166 as commit c7e4492, adding opt-in streaming BRIEF mode for progress updates, INFO logs, and open_stream() pipe text; fixes #165.
Resolution: closed resolved
Reason: PR #166 was merged into main as commit c7e4492. The feature is present in the emitter and is covered by integration tests.
Evaluated by: mr-cal-bot
No scores available.
Issue body
This commit adds a new feature to the Emitter, tentatively called "streaming brief". It is initially disabled, and can be enabled in the Emitter's init() call.
Once enabled, the feature will leverage the "multi-action" nature of progress() calls to "stream", in a single line, info-level log messages and text written to the open_stream()'s pipe. For example, the following sequence of calls in BRIEF mode:
```
emit.progress("Starting stage 1", permanent=False) ...
log.info("Doing first step")
...
log.info("Doing second step")
...
emit.progress("Finished stage 1", permanent=True)
```
... will cause the two 'info' messages to "stream" on the terminal, prefixed by "Starting stage 1 ::" to indicate that they are related to that progress message. All these three messages are ephemeral which means that in the end only the final progress() call will be visible on the terminal.
Fixes #165
- [ ] Have you followed the guidelines for contributing?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you successfully run `tox`?
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #166 as commit c7e4492, adding opt-in streaming BRIEF mode for progress updates, INFO logs, and open_stream() pipe text; fixes #165. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #166 (commit c7e4492), adding opt-in streaming BRIEF mode for progress messages, info logs, and pipe text; fixes #165. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged into main via canonical/craft-cli#166 (c7e4492), adding opt-in Emitter streaming brief mode for INFO logs and open_stream text; resolves #165. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #166, resolving #165 by adding an opt-in streaming brief Emitter mode that prefixes streamed INFO logs and pipe text with the active progress message. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval and CI. Adds a streaming brief Emitter feature that streams info logs and pipe text on a single line prefixed by the active progress message. Initially disabled, it resolves issue #165 and increases coverage by 0.13%. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/craft-cli#165
(confidence 100%)
PR #166 explicitly fixes the streaming INFO-log request in issue #165.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #165 Support "streaming" INFO log messages in BRIEF mode | craft-cli | closed | Streaming BRIEF mode was implemented and merged in PR #166 (commit c7e4492), adding opt-in streaming for INFO-level logs and other transient output. | |
| #349 enable "streaming brief" CLI mode | rockcraft | merged | PR #349 merged as 316e7bcf, enabling streaming Brief output, updating craft dependencies, and cleaning up rock-packing progress messages; fixes #345. | |
| #4331 enable "streaming brief" CLI mode | snapcraft | merged | Merged into main, enabling streaming brief CLI mode in commit e1491d1da and fixing #4317, alongside craft-library and craft-parts dependency updates. | |
| #85 feat: enable streaming in brief | craft-application | merged | Merged PR #85 enabled streaming in brief with a one-line change, landing on main as commit 22b35662. | |
| #419 feat: oxidize streaming_brief feature | craft-cli | merged | Merged in canonical/craft-cli#419, restoring streaming_brief output and prefixing messages piped through Emitter.open_stream. |