Repository navigation
Stream builder and deployer logs over GRPC - #172
Merged
Merged
Conversation
added 6 commits
July 18, 2026 17:07
This is use to stream some comin logs over GRPC.
luochen1990
added a commit
to luochen1990/comin
that referenced
this pull request
Sep 7, 2026
…shed ConfirmationSubmitted) The desktop handler's type switch in cmd/desktop.go was not updated after the broker refactor (nlewo#126) and the stream-logs work (nlewo#172), so several event types added to the gRPC stream have no case and fall into the default branch, logging "unexpected type %T" on every message and dropping the event. As a result the desktop service emits a constant stream of errors and never pops any notification for confirmation, fetch, or log events. Add explicit cases for the new event types: - ManagerState, Fetched, Log: silenced (high-frequency/internal; notifying would spam — Fetched fires on every 60s poll, Log carries streamed build/deploy lines, ManagerState is a startup snapshot). - ConfirmationConfirmed: silenced (immediately followed by DeploymentStarted, which already notifies — redundant). - ConfirmationCancelled: notify ("The deployment has been cancelled."). - ConfirmationSubmitted: notify, distinguishing modes — "manual" warns the user a confirmation is pending, "auto" notes it will auto-confirm shortly, "without" is silenced (immediately confirmed, no user action needed, e.g. the default build confirmer). ConfirmationSubmitted is currently never published by anyone, even though it is defined in services.proto and is the natural signal for "the confirmation buffer window has opened". Publish it from Confirmer.start()'s submit branch so the new desktop case has a producer (the desktop case is dead code without this). This mirrors the sibling ConfirmationConfirmed and ConfirmationCancelled events, which are both published from the confirmer. Fixes nlewo#182
GaMeRaM
pushed a commit
to GaMeRaM/comin
that referenced
this pull request
Sep 20, 2026
…shed ConfirmationSubmitted) The desktop handler's type switch in cmd/desktop.go was not updated after the broker refactor (nlewo#126) and the stream-logs work (nlewo#172), so several event types added to the gRPC stream have no case and fall into the default branch, logging "unexpected type %T" on every message and dropping the event. As a result the desktop service emits a constant stream of errors and never pops any notification for confirmation, fetch, or log events. Add explicit cases for the new event types: - ManagerState, Fetched, Log: silenced (high-frequency/internal; notifying would spam — Fetched fires on every 60s poll, Log carries streamed build/deploy lines, ManagerState is a startup snapshot). - ConfirmationConfirmed: silenced (immediately followed by DeploymentStarted, which already notifies — redundant). - ConfirmationCancelled: notify ("The deployment has been cancelled."). - ConfirmationSubmitted: notify, distinguishing modes — "manual" warns the user a confirmation is pending, "auto" notes it will auto-confirm shortly, "without" is silenced (immediately confirmed, no user action needed, e.g. the default build confirmer). ConfirmationSubmitted is currently never published by anyone, even though it is defined in services.proto and is the natural signal for "the confirmation buffer window has opened". Publish it from Confirmer.start()'s submit branch so the new desktop case has a producer (the desktop case is dead code without this). This mirrors the sibling ConfirmationConfirmed and ConfirmationCancelled events, which are both published from the confirmer. Fixes nlewo#182
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This logs can be seen with the events and watch commands.