Skip to content

feat(runners): the Coder runner in the UI: form, Environments section and docs (runners 17e, #315) - #963

Merged
aixle-com[bot] merged 10 commits into
developfrom
feature/runners-17e-coder-ui
Dec 2, 2026
Merged

aixle-com[bot] merged 10 commits into
developfrom
feature/runners-17e-coder-ui

Conversation

@NOX73

@NOX73 NOX73 commented Dec 1, 2026

Copy link
Copy Markdown
Collaborator

What

Row 17e of docs/design/agent-runtimes/runner-coder.md §14 (task #315): the coder runner type becomes visible and creatable from the UI. Item 17 of the runners plan is complete with this change.

  • Creation. Adapter::UNRELEASED_TYPES is removed (Adapter.available? is the registry's answer). Core::Management.save runs the first health check as a provisioned runner is created, so the page opens on connected, or on the reason it is not.
  • Form. coder is offered when the integration select has an option for the scope (Integration.coder_for_runner: a company runner takes company-wide active Coder integrations; a project's own runner, its project's and the company's). Step 2 is generated from ConfigSchema.for_type("coder"), plus the integration select (create only; read-only on the runner page) and the lines about fresh only, the shared pool and quota, deleting free workspaces, and the default template. No reuse choice.
  • Runner page. For a provisioned runner the Machines section becomes Environments (RunnerEnvironmentResource): key, state with reason, session link, last heard, runner version, link to the workspace in Coder. Rebuild (new route + Interface.rebuild!, refused for an environment that holds a session) and per-environment Revoke both delete the workspace. The overview shows the integration. A manual runner's page is unchanged.
  • List. Column counts environments busy/total for provisioned runners (machine_counts already counted non-gone environments).
  • Integration removal. The refusal names the runners that use the integration (it replaces restrict_with_error). The 17d refusal for deleted runners' environments is unchanged.
  • Docs. User guide and portal copy (Coder runners section, identical in both), DESIGN.md row 17e, runner-coder.md and runtime-layers.md notes.

Not changed

manual runners' form, page and suites; both layering tests; hosted sessions that use coder_*; the runner (Go) code. reuse/reset on coder stay in row 28.

Notes for review

  • The update still ignores integration_id (17d's form_attributes), and the model refuses a change; both are tested through the controllers.
  • Provisioned#rebuild! now raises UnsupportedOperation for an environment that holds a session, under the row lock. Revoke ends the session first.
  • Runner#provisioned? reads the stored capabilities (set by Management.save), as the frontend does; the :coder factory trait sets them.

How to test

  • bin/rails test test/integration/web/company/runners_coder_test.rb test/integration/web/company/projects/runners_coder_test.rb test/models/integration_coder_removal_test.rb test/models/integration_coder_runner_test.rb test/services/runners test/docs test/resources/runner_environment_resource_test.rb
  • yarn vitest run app/frontend/shared/resources/runners app/frontend/pages/Company/Settings app/frontend/pages/Projects/Runners
  • QA on staging (task fix(deps): bump the docker-minor-patch group across 1 directory with 2 updates #315): create a coder runner from the form, check health, run one non-interactive session, watch the Environments states, Rebuild and Revoke an environment, revoke the runner, and try removing the integration while it is in use.

@aixle-com aixle-com Bot 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.

Code review: no blocking findings. Two non-blocking remarks inline.

Comment thread app/services/runners/core/management.rb Resolved
NOX73 added 4 commits December 2, 2026 07:02
…toast on a refused removal, no Rebuild on coder until row 28

- The Coder integration select shows the machine prefix next to the name, or "no prefix".
- A refused integration removal shows no "Integration removed" toast.
- The coder type is not rebuildable: the Rebuild action, route, Core::Management and
  Interface delegation and UI are removed; Revoke stays. The adapter hook is unchanged.
- The repeated tearing_down/gone pair is gone with the Rebuild code.
- runner-coder.md, DESIGN.md and the user guide (with its mirror) record the move.

Signed-off-by: Alex <[email protected]>

@aixle-com aixle-com Bot 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.

Reviewed the changes since the last review (integration labels, toast on refused removal, Rebuild removal). No [Must] findings. One optional doc note inline.

@aixle-com
aixle-com Bot merged commit af8b6f0 into develop Dec 2, 2026
18 checks passed
artempartos added a commit that referenced this pull request Dec 2, 2026
* origin/develop: (23 commits)
  ci(images): publish web, otlp-ingest and runner-relay for linux/arm64 (#983)
  fix(k8s): give a pod's image pull its own start budget (#979)
  build(dev): pull published agent images instead of building them (#980)
  fix(deps): bump coder-cli to v2.34.22 (CVE fixes) (#956)
  chore(agents): raise agent CLI pins for canary #943 (#975)
  docs(runners): record the §12.5 staging validation of the coder runner (row 18) (#978)
  build(dev): run local Temporal on the CLI dev server image (#954)
  fix(deps): websocket-driver 0.9.2 security batch, cross-spawn and tar re-resolve (#976)
  feat(web): link the docs portal from the app footer and sidebar (#379) (#969)
  feat(onboarding): Getting started page and product tour (#51) (#879)
  feat(dashboard): keep the table's sort in the URL (#974)
  fix(kiro): offer the models the account has today, not those of its last login (#973)
  feat(dashboard): keep the period and filters in the URL (#972)
  feat(company-settings): confirm worker count changes before saving (#971)
  feat(runners): the Coder runner in the UI: form, Environments section and docs (runners 17e, #315) (#963)
  docs(trackers): tech design for trackers chosen per session (#959)
  chore: remove the integrations backfill tooling left from #298 (#964)
  feat(runners): a coder runner created from the console (runners 17d, #309) (#960)
  chore(release): 1.23.0 (#961)
  feat(coder): Coder services for a second consumer, in the layers of runner-layers.md (runners 17b, #304) (#919)
  ...

# Conflicts:
#	CHANGELOG.md
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