Skip to content

refactor(dde)!: rename project-up to project with command input - #96

Merged
sbaerlocher merged 1 commit into
mainfrom
refactor/rename-project-up-to-project
Apr 30, 2026
Merged

sbaerlocher merged 1 commit into
mainfrom
refactor/rename-project-up-to-project

Conversation

@sbaerlocher

Copy link
Copy Markdown
Owner

Summary

Rename actions/project-up/ to actions/project/ and add a command
input (default up) so the same composite action can drive any
dde project:<command> lifecycle step, not just up.

Why

project-up was hardcoded to dde project:up, so consumers needed
inline run: dde project:down (or similar) for teardown / restart /
update. With command as an input, one action covers the full
project lifecycle and the with: block can be reused across matrix
steps without spurious host-provisioning or post-down URL polling.

Behaviour

  • command: up (default) → optional system:install, then
    dde project:up, then optional wait-url polling.
  • command: <anything else> → dde project:<command> only.
    system-install and wait-url are silently ignored.
  • Empty command is rejected with a friendly error.

Breaking surface

Only the action path changes. Consumers must update:

- uses: sbaerlocher/.github/.github/actions/project-up@<TAG>
+ uses: sbaerlocher/.github/.github/actions/project@<TAG>

Inputs, outputs, and the default-up behaviour are otherwise unchanged.

Internal updates

  • e2e-dde.yml reusable workflow now uses project@2026-04-28 with
    explicit command: up.
  • test-actions-dde.yml self-test: smoke-project-up-* →
    smoke-project-*, paths/IDs updated, plus a new
    smoke-project-empty-command job that exercises the new
    command-validation path.
  • Docs: setup-dde/README.md sibling link, AGENTS.md, README.md,
    STANDARDS.md, CHANGELOG.md (with explicit BREAKING note).

Release / migration

  • This PR ships in the next date tag (so consumers' explicit
    @2026-04-28 pins remain on the working but old project-up path
    until they migrate).
  • Renovate will not auto-fix the path (it bumps @<TAG> only, not the
    action name). Consumers see the bump PR fail CI when their pin still
    references the missing project-up; the migration is a one-line
    search-and-replace.

Test plan

  • Self-test workflow passes (smoke-setup-dde matrix +
    smoke-project-{missing-dir,missing-config,empty-command}).
  • After merge + new date tag: pick a consumer (e.g. savvy) and
    flip project-up@<OLD> → project@<NEW>, confirm the run still
    brings the project up.

Comment thread .github/workflows/e2e-dde.yml Resolved
Comment thread .github/actions/project/README.md Resolved
Comment thread .github/actions/project/README.md Resolved
Comment thread .github/actions/project/action.yml Resolved
@sbaerlocher
sbaerlocher force-pushed the refactor/rename-project-up-to-project branch from e66d302 to 2a5314a Compare April 30, 2026 16:53
@sbaerlocher

Copy link
Copy Markdown
Owner Author

Alle vier Review-Punkte adressiert (force-push):

  1. Inner-Ref e2e-dde.yml@2026-04-28 → bumped auf @2026-04-30 (zusammen mit dem geplanten neuen Date-Tag).
  2. README-Beispiele — alle 7 Stellen mit @2026-04-28 auf @2026-04-30.
  3. wait-timeout Inputs-Tabelle — "Only applied when command: up" ergänzt.
  4. Empty-command-Validierung — in einen separaten Validate inputs-Step vor Setup dde gezogen, damit der Fast-Fail keinen dde-Download mehr triggert.

Auch actions/project/action.yml Inner-Ref auf setup-dde@2026-04-30 mitgezogen für Konsistenz (Reviewer-Hinweis).

Comment thread README.md Resolved
@sbaerlocher
sbaerlocher force-pushed the refactor/rename-project-up-to-project branch from 2a5314a to 7b4b883 Compare April 30, 2026 17:06
@sbaerlocher

Copy link
Copy Markdown
Owner Author

Korrektur — Inner-Ref setup-dde@2026-04-30 zurück auf @2026-04-28. Das CI hatte mir gerade gezeigt, dass die zukünftige Tag-Referenz das Self-Test 404'd (setup-dde lief nicht → dde fehlt im PATH → Smoke-Test-Assertion failed). Renovate bumpt den Inner-Ref nach Tag-Cut automatisch via die package-rule für sbaerlocher/.github.

Damit:

  • actions/project/action.yml → setup-dde@2026-04-28 (existiert mit No-Sudo-Fix)
  • e2e-dde.yml → project@2026-04-30 (resolved beim Konsum, sobald Tag existiert)
  • README → project@2026-04-30 (Doku, ungültig bis Tag-Cut, dann gültig)

Reviewer-Konsistenz-Hinweis bleibt zutreffend, ist aber bei Erst-Release nicht atomar erfüllbar.

BREAKING CHANGE: `actions/project-up/` → `actions/project/`. Consumers
must update the `uses:` path; existing inputs and the default `up`
behaviour are unchanged.

The renamed action now accepts a `command` input (default `up`) and
runs `dde project:<command>`, so the same composite action covers `up`,
`down`, `restart`, `update`, and any other dde project subcommand.
This removes the need for separate inline `run: dde project:down`
teardown steps and aligns the action surface with dde's own CLI shape.

Behaviour:
- `command: up` (default) → optional `system:install`, then
  `dde project:up`, then optional `wait-url` polling.
- `command: <anything else>` → `dde project:<command>` only.
  `system-install` and `wait-url` are silently ignored, so callers
  reusing the same `with:` block across multiple lifecycle steps don't
  trigger spurious host-provisioning or post-down URL polling. Empty
  `command` is rejected up front with a friendly error.

Internal callers updated:
- `e2e-dde.yml` reusable workflow now references `project@2026-04-28`
  with explicit `command: up`.
- `test-actions-dde.yml` self-test renamed `smoke-project-up-*` jobs
  to `smoke-project-*`, updated paths/step IDs, and added a new
  `smoke-project-empty-command` job that exercises the new
  command-validation error path.

Docs updated: `setup-dde/README.md` sibling link, `AGENTS.md`,
`README.md`, `STANDARDS.md`. CHANGELOG calls out the breaking surface
(action path) and notes that the previous up flow is otherwise
preserved.

Signed-off-by: Simon Bärlocher <[email protected]>
@sbaerlocher
sbaerlocher force-pushed the refactor/rename-project-up-to-project branch from 7b4b883 to 739da81 Compare April 30, 2026 17:09

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

All raised issues have been addressed.

@sbaerlocher
sbaerlocher merged commit 92f112d into main Apr 30, 2026
7 checks passed
@sbaerlocher
sbaerlocher deleted the refactor/rename-project-up-to-project branch April 30, 2026 18:29
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