show indicator of actual deployment progress #184

Open
opened 2025-02-24 10:27:17 +01:00 by kiara · 6 comments
Owner

Design and implement progress indicator interface to the orchestrator, e.g. using OpenTelemetry (TF).

  • Progress should be published by PubSub (see #334), given users may start a new session during deployment.
  • Note that if resources are deployed in parallel, a progress indicator could reflect that.
  • state of Nix integration
    • as a fallback, CI seems to have a way of streaming logs
  • c.f. TUI-based visualisation for:
  • tests must cover collection + storage in back-end
Design and implement progress indicator interface to the orchestrator, e.g. using [OpenTelemetry](https://developer.hashicorp.com/terraform/cloud-docs/agents/telemetry) ([TF](https://github.com/opentofu/opentofu/blob/7a65677851d074a6f683504e2ad68a203c589436/docs/tracing.md)). - Progress should be published [by PubSub](https://opentelemetry.io/docs/specs/semconv/messaging/) (see #334), given users may start a new session during deployment. - Note that if resources are deployed in parallel, a progress indicator could reflect that. - [state of Nix integration](https://github.com/NixOS/nix/issues/15316) - as a fallback, CI seems to have a way of streaming logs - c.f. TUI-based visualisation for: - [nix builds](https://github.com/maralorn/nix-output-monitor) - [deployments](https://github.com/mihakrumpestar/panix) - tests must cover collection + storage in back-end <!-- - OpenBao has telemetry integration, tho I'm not sure how useful that is. -->
Contributor

Duplicate of #74 (at least from the wording)

Duplicate of #74 (at least from the wording)
Author
Owner

the front-end side is now out-scoped to the (decoupled) productization effort. with TF use of opentelemetry seems already supported.

the front-end side is now out-scoped to the (decoupled) productization effort. with TF use of opentelemetry seems [already supported](https://github.com/opentofu/opentofu/blob/7a65677851d074a6f683504e2ad68a203c589436/docs/tracing.md).
kiara closed this issue 2025-04-30 08:38:49 +02:00
Contributor

We'd still need to expose some sort of streaming API, no?

We'd still need to expose *some sort* of streaming API, no?
Author
Owner

that's made a scoping question in a sense. for productization we may need to facilitate APIs, tho tbh i would like to maybe at least make those into a separate repo consuming this one - even if todo there may still fall upon us.

that's made a scoping question in a sense. for productization we may need to facilitate APIs, tho tbh i would like to maybe at least make those into a separate repo consuming this one - even if todo there may still fall upon us.
kiara reopened this issue 2025-04-30 14:51:48 +02:00
Contributor

Not sure how that's related to where the code lives. We wanted the deployment service to be able to display progress, so we need to expose such an interface.

Not sure how that's related to where the code lives. We wanted the deployment service to be able to display progress, so we need to expose such an interface.
Author
Owner

Status on main at 486440418:

  • Done: #74 (activity indicator), #242 (enqueuing deployment syncs) and #334 (API specification) are closed.
  • Done: api/ publishes build events (queued, started, progress, completed, failed, canceled) to Centrifugo (api/src/fediversity_api/events.py). A new session thus gets the state too. The panel shows a busy <progress> bar.
  • Done: PR #1002, PR #1010 and PR #1116 collect and store OpenTelemetry data in the hosting-provider group.
  • Open: the progress event has phase and message fields, but api/src/fediversity_api/windmill.py sends it without them. Thus no actual progress (per resource, of the nix build, or from OpenTofu tracing) gets to the panel.
  • Needs a decision: the source of the progress (OpenTofu tracing, a log stream, or Nix issue 15316). The 2025-04-30 comments do not agree if the front-end part is in scope.
  • This issue blocks #223.
  • A spec draft is on branch spec-184 of the kiara fork. It has no PR.
  • Can close: no.

Assisted-by: Claude:claude-opus-5-5

https://claude.ai/code/session_01RbKyH4vydRNmoGjAyA5quJ

Status on `main` at `486440418`: - Done: #74 (activity indicator), #242 (enqueuing deployment syncs) and #334 (API specification) are closed. - Done: `api/` publishes build events (`queued`, `started`, `progress`, `completed`, `failed`, `canceled`) to Centrifugo (`api/src/fediversity_api/events.py`). A new session thus gets the state too. The panel shows a busy `<progress>` bar. - Done: PR #1002, PR #1010 and PR #1116 collect and store OpenTelemetry data in the hosting-provider group. - Open: the `progress` event has `phase` and `message` fields, but `api/src/fediversity_api/windmill.py` sends it without them. Thus no actual progress (per resource, of the `nix` build, or from OpenTofu tracing) gets to the panel. - Needs a decision: the source of the progress (OpenTofu tracing, a log stream, or Nix issue 15316). The 2025-04-30 comments do not agree if the front-end part is in scope. - This issue blocks #223. - A spec draft is on branch `spec-184` of the `kiara` fork. It has no PR. - Can close: no. Assisted-by: Claude:claude-opus-5-5 https://claude.ai/code/session_01RbKyH4vydRNmoGjAyA5quJ
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Blocks Depends on
#242 enqueuing deployment syncs
fediversity/fediversity
Reference
fediversity/fediversity#184
No description provided.