Skip to content

fix(dde): reference setup-dde via full repo path in project-up - #93

Merged
sbaerlocher merged 1 commit into
mainfrom
fix/project-up-uses-full-path
Apr 29, 2026
Merged

sbaerlocher merged 1 commit into
mainfrom
fix/project-up-uses-full-path

Conversation

@sbaerlocher

Copy link
Copy Markdown
Owner

Summary

  • project-up composite action now references setup-dde via the full
    versioned path sbaerlocher/.github/.github/actions/setup-dde@2026-04-28
    instead of the relative ./.github/actions/setup-dde.
  • AGENTS.md updated to reflect that uses: ./... always resolves against
    the caller's GITHUB_WORKSPACE, both inside reusable workflows and
    composite actions (the previous claim that composite actions were
    different was wrong — see actions/runner#2185).

Why

Consumer repositories like sbaerlocher/savvy
were failing with:

Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under
'/home/runner/work/savvy/savvy/.github/actions/setup-dde'.
Did you forget to run actions/checkout before running your local action?

The relative ./... was being resolved against the caller's workspace
(savvy), not against the action's own repo. The self-test
(test-actions-dde.yml) didn't catch this because it's a regular
workflow that does actions/checkout of sbaerlocher/.github first,
so the workspace coincidentally contains the setup-dde directory.

Follow-ups

  • After merge, cut a new rolling-release date tag so consumers' pinned
    refs (@2026-04-28) point at a working project-up.
  • Renovate will then bump consumer pins automatically via the existing
    sbaerlocher/.github package rule.

Test plan

  • CI passes on this PR (self-test workflow exercises setup-dde and
    project-up smoke jobs in the same workflow run).
  • After merge + new date tag: re-run the failing
    savvy E2E job
    and confirm setup-dde resolves.

Comment thread .github/actions/project-up/action.yml Resolved
Comment thread .github/actions/project-up/action.yml Resolved
Comment thread AGENTS.md Resolved
Comment thread AGENTS.md Resolved
`uses: ./.github/actions/setup-dde` from inside project-up's composite
action resolves against the caller's GITHUB_WORKSPACE, not against the
sbaerlocher/.github checkout — the previous comment claiming otherwise
was wrong (see actions/runner#2185). The action worked in this repo's
self-test only because actions/checkout happens to land sbaerlocher/.github
into the workspace. From any other consumer (e.g. sbaerlocher/savvy) the
runner aborts with `Can't find 'action.yml' under .../setup-dde`.

Reference setup-dde via the full versioned path
`sbaerlocher/.github/.github/actions/setup-dde@<DATE-TAG>` so consumers
get a coherent bundle.

renovate.json: extend the github-actions managerFilePatterns to also
match `actions/<name>/action.yml`. The previous pattern was
workflow-only, so the new cross-repo pin in `project-up/action.yml`
would have rotted silently as new date tags were cut.

AGENTS.md: collapse the composite-action and reusable-workflow notes
into one accurate paragraph; call out test-actions-dde.yml as the one
place `./...` is safe; note that the full-path pin trades a bit of
test fidelity — `smoke-project-up-*` now exercises the tagged
setup-dde, not the in-PR copy.

Signed-off-by: Simon Bärlocher <[email protected]>
@sbaerlocher
sbaerlocher force-pushed the fix/project-up-uses-full-path branch from 2c6e34b to e1d5f8d Compare April 29, 2026 23:10
@sbaerlocher

Copy link
Copy Markdown
Owner Author

Review-Comments alle adressiert (force-push):

  1. Renovate würde nicht auto-updaten (action.yml:62) — renovate.json github-actions.managerFilePatterns erweitert um actions/<name>/action.yml. Pin wird nun vom Standard-Manager + bestehender sbaerlocher/.github-Package-Rule mitgezogen.
  2. Test-Coverage-Regression (action.yml:62) — explizit in AGENTS.md dokumentiert (Variante a). Inline-Shell-Workaround (Variante b) wäre möglich, aber setup-dde's 4-Step-Logik ist zu komplex für ${{ github.action_path }}/../setup-dde/<entrypoint> ohne Duplikation.
  3. AGENTS.md aspirational claim (AGENTS.md:241) — durch (1) jetzt korrekt; Wording bleibt.
  4. Test-Fidelity-Hinweis (AGENTS.md:245) — Satz hinzugefügt, der smoke-project-up-* als tag-gebunden markiert und smoke-setup-dde als direkten Coverage-Pfad nennt.

@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 351e0a0 into main Apr 29, 2026
6 checks passed
@sbaerlocher
sbaerlocher deleted the fix/project-up-uses-full-path branch April 29, 2026 23:13
sbaerlocher added a commit that referenced this pull request Apr 30, 2026
`setup-dde` was wrapping `dde system:install` in
`sudo --preserve-env=HOME,USER,...`, but the upstream README runs the
command unprivileged (`dde system:install`). dde escalates internally
for the individual steps that actually need root — mkcert CA install
and the DNS resolver tweak — using passwordless sudo, which
GitHub-hosted runners provide.

Wrapping the whole command in `sudo` had two side effects we no
longer want:

1. State files written under $HOME/.dde end up root-owned. The next
   unprivileged `dde project:up` then fails with `Permission denied`
   when trying to overwrite the generated dnsmasq config — observed
   in sbaerlocher/savvy#102 once the action-resolution bug fixed in
   #93 stopped masking it.
2. The --preserve-env workaround for HOME/USER/DDE_CONFIG_DIR/
   DDE_DATA_DIR exists only because of the sudo wrap; dropping the
   wrap drops the workaround.

Update the input description so callers know what dde needs from the
host (Docker + passwordless sudo for dde's internal calls), and add a
short comment explaining why this step is intentionally not under sudo.

Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher added a commit that referenced this pull request Apr 30, 2026
`setup-dde` was wrapping `dde system:install` in
`sudo --preserve-env=HOME,USER,...`, but the upstream README runs the
command unprivileged (`dde system:install`). dde escalates internally
for the individual steps that actually need root — mkcert CA install
and the DNS resolver tweak — using passwordless sudo, which
GitHub-hosted runners provide.

Wrapping the whole command in `sudo` had two side effects we no
longer want:

1. State files written under $HOME/.dde end up root-owned. The next
   unprivileged `dde project:up` then fails with `Permission denied`
   when trying to overwrite the generated dnsmasq config — observed
   in sbaerlocher/savvy#102 once the action-resolution bug fixed in
   #93 stopped masking it.
2. The --preserve-env workaround for HOME/USER/DDE_CONFIG_DIR/
   DDE_DATA_DIR exists only because of the sudo wrap; dropping the
   wrap drops the workaround.

Update the input description so callers know what dde needs from the
host (Docker + passwordless sudo for dde's internal calls), and add a
short comment explaining why this step is intentionally not under sudo.

Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher added a commit that referenced this pull request Apr 30, 2026
`setup-dde` was wrapping `dde system:install` in
`sudo --preserve-env=HOME,USER,...`, but the upstream README runs the
command unprivileged (`dde system:install`). dde escalates internally
for the individual steps that actually need root — mkcert CA install
and the DNS resolver tweak — using passwordless sudo, which
GitHub-hosted runners provide.

Wrapping the whole command in `sudo` had two side effects we no
longer want:

1. State files written under $HOME/.dde end up root-owned. The next
   unprivileged `dde project:up` then fails with `Permission denied`
   when trying to overwrite the generated dnsmasq config — observed
   in sbaerlocher/savvy#102 once the action-resolution bug fixed in
   #93 stopped masking it.
2. The --preserve-env workaround for HOME/USER/DDE_CONFIG_DIR/
   DDE_DATA_DIR exists only because of the sudo wrap; dropping the
   wrap drops the workaround.

Update the input description so callers know what dde needs from the
host (Docker + passwordless sudo for dde's internal calls), and add a
short comment explaining why this step is intentionally not under sudo.

Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher added a commit that referenced this pull request Apr 30, 2026
CHANGELOG.md: add the action-resolution fix shipped in #93 to the
2026-04-30 release. Both fixes (#93 and #95) are merged into a single
`### Fixed` block placed after `### Changed (BREAKING)`, matching the
Keep-a-Changelog conventional ordering. The 2026-04-30 release block
now reads: rename (BREAKING), then the two fixes.

README.md / AGENTS.md: bump the "Last updated" markers from
2026-04-28 to 2026-04-30. The AGENTS.md `Version` field is left at
1.3.0 — its meaning (doc-scoped semver vs. release marker) is
unresolved and shouldn't be decided in a docs-bump PR; tracked as a
follow-up.

Signed-off-by: Simon Bärlocher <[email protected]>
sbaerlocher added a commit that referenced this pull request Apr 30, 2026
CHANGELOG.md: add the action-resolution fix shipped in #93 to the
2026-04-30 release. Both fixes (#93 and #95) are merged into a single
`### Fixed` block placed after `### Changed (BREAKING)`, matching the
Keep-a-Changelog conventional ordering. The 2026-04-30 release block
now reads: rename (BREAKING), then the two fixes.

README.md / AGENTS.md: bump the "Last updated" markers from
2026-04-28 to 2026-04-30. The AGENTS.md `Version` field is left at
1.3.0 — its meaning (doc-scoped semver vs. release marker) is
unresolved and shouldn't be decided in a docs-bump PR; tracked as a
follow-up.

Signed-off-by: Simon Bärlocher <[email protected]>
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