Skip to content

Stream builder and deployer logs over GRPC - #172

Merged
nlewo merged 7 commits into
mainfrom
stream-logs
Jul 19, 2026
Merged

nlewo merged 7 commits into
mainfrom
stream-logs

Conversation

@nlewo

@nlewo nlewo commented Jul 4, 2026

Copy link
Copy Markdown
Owner

This logs can be seen with the events and watch commands.

@nlewo
nlewo merged commit 3337c97 into main Jul 19, 2026
3 checks passed
luochen1990 added a commit to luochen1990/comin that referenced this pull request Aug 1, 2026
…ubmitted

Switch in cmd/desktop.go not updated after nlewo#126/nlewo#172, so new events
(ManagerState/Fetched/Log/Confirmation*) hit default and are dropped (nlewo#182).
Add explicit cases; also emit ConfirmationSubmitted from Confirmer.submit.

Fixes nlewo#182
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
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.

1 participant