Skip to content

feat(hub): add production runtime and locked setup - #172

Merged
nshki merged 3 commits into
build/hub/newfrom
copilot/hub-production-runtime
Nov 3, 2026
Merged

nshki merged 3 commits into
build/hub/newfrom
copilot/hub-production-runtime

Conversation

Copilot AI commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Why

Operators need a deployable Hub without running migrations in each application process. This is the first layer of #171, targeting build/hub/new.

What changes

A non-root image serves the built frontend and API and runs both existing workers, with shared readiness and shutdown. Individual roles remain available.

Operational scripts live under hub/server/scripts/. Release setup holds a database advisory lock across Prisma migrations, job migrations, and schedule registration. The deployment orchestrator owns full release serialization and must confirm prior setup has stopped before retrying after failure; the advisory lock cannot protect against connection loss. Worker readiness confirms initialization, not continuous consumer health, while PostgreSQL is checked live.

Normal Hub startup never invokes setup. The devcontainer stays unchanged; this does not add a supported local-production installation or product features.

Created from a Slack conversation with @alliscode.

Copilot AI auto review requested due to automatic review settings November 3, 2026 00:51
Copilot AI requested review from a team and nshki as code owners November 3, 2026 00:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because there is no eligible user to bill.

An enterprise owner can allow the organization to be billed for reviews like this by enabling Copilot code review for users without a license.

Copilot AI added this pull request to stack #175 November 3, 2026 00:51
@alliscode
alliscode force-pushed the copilot/hub-production-runtime branch 2 times, most recently from dfbfe02 to 9d5f5b1 Compare November 3, 2026 16:59
Copilot AI and others added 2 commits November 3, 2026 17:18
Run the built frontend, API, and workers in one image. Keep schema and schedule setup in a separately locked operational script.

Co-authored-by: Ben Thomas <25218250+alliscode@users.noreply.github.com>
Co-authored-by: Nishiki <1121087+nshki@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match function directories and call the application Hub consistently.

Co-authored-by: Ben Thomas <25218250+alliscode@users.noreply.github.com>
Co-authored-by: Nishiki <1121087+nshki@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI force-pushed the copilot/hub-production-runtime branch from 9d5f5b1 to 2661da1 Compare November 3, 2026 17:28

@alliscode alliscode left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found two issues that can allow setup work to overlap or report the service ready while a worker is unavailable. Please address the inline comments.

Co-authored-by: Ben Thomas <25218250+alliscode@users.noreply.github.com>
Co-authored-by: Nishiki <1121087+nshki@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@nshki
nshki merged commit 7d856e6 into build/hub/new Nov 3, 2026
27 checks passed
@nshki
nshki deleted the copilot/hub-production-runtime branch November 3, 2026 21:42
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.

5 participants