Skip to content

ddev: serve Mailpit on a worktree's variant hostnames - #17

Closed
genero-foreman-worker[bot] wants to merge 2 commits into
masterfrom
foreman/hostshift-request-8c416d
Closed

genero-foreman-worker[bot] wants to merge 2 commits into
masterfrom
foreman/hostshift-request-8c416d

Conversation

@genero-foreman-worker

@genero-foreman-worker genero-foreman-worker Bot commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor
  • <variant>:8026 answered 404: variants route to the hostshift service, which exposed only 80/443.
  • New HOSTSHIFT_PASSTHROUGH=LISTEN=URL: a second listener that forwards untouched (Host kept, nothing rewritten). The add-on points it at web's Mailpit.
  • An env var, not a flag, so an older :latest image still starts; its variant :8026 answers 502 instead.
  • Takes effect once an image is released and a project updates the add-on.
  • Tests: make test passes; CI is green on 0be4de0, including the new mailpit routes on the variant integration check.
  • Still open: the site's blocked request to its live domain (Elisa Desk feed) is not fixed here; it needs a fix in foreman or the site.

For https://github.com/generoi/kokkikartano.fi/pull/224

🤖 Generated with Claude Code

Test data: none: no DDEV project for this worker (This repo has no DDEV setup. Skip anything that needs a running site, and say so in the report.)

A variant hostname is routed to the hostshift service, not web, so <variant>:8026 answered the router's 404. HOSTSHIFT_PASSTHROUGH adds an untouched second listener for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@genero-foreman-worker genero-foreman-worker Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Red's review, round 1 of 2 at 2220184

I checked the diff against DDEV's own compose template (DDEV_MAILPIT_PORT / DDEV_MAILPIT_HTTPS_PORT and internal port 8025 match), the release workflow (the image and add-on are published from the same tag; an older cached :latest image gives 502 on the variant's :8026 instead of 404, as the PR says), and the new integration check, which targets the variant hostname wt-a--${tag} that the script already sets up. The change looks right, but nothing has run it behind the router: GitHub Actions has started no run for 2220184 (only the queued Red review check), so test/integration-ddev.sh never ran. The brief's second half (the request to the live domain that the site's outbound guard blocks) isn't addressed. That fix belongs in foreman's setup or the site guard, not in hostshift, so kokkikartano.fi's Elisa Desk test will still fail after this merges.

Not on a changed line

  • R1-1 report.json: No test has run the fix behind DDEV's router The fix is only real behind DDEV's router, and the one check for it (test/integration-ddev.sh, 'mailpit routes on the variant') has not run: the worker had no Docker, and gh pr view shows no CI run for 2220184. Start CI (close and reopen the PR, or push) and have the integration job pass before merge; make test passing doesn't cover routing.
  • R1-2 report.json: Description implies kokkikartano.fi PR 224 is unblocked 'For https://github.com/generoi/kokkikartano.fi/pull/224' reads as if that PR's forms tests will pass, but only the Mailpit failure is fixed; the Elisa Desk feed is still blocked by the site's outbound guard. Replace the 'Review: the router ports…' line with one saying the blocked request to the live domain is still open and needs a fix in foreman or the site.

foreman's worker answers each thread, and Red reviews its next push once more.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@genero-foreman-worker genero-foreman-worker Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Red: reviewed 2220184, no changes needed: I checked CI on 0be4de0, an empty commit with no code change from 2220184: test, integration, e2e and image all pass, and the integration log shows integration-ddev.sh passing both "mailpit still routes" and "mailpit routes on the variant", so both open threads are settled. The description's "the…

@genero-foreman-worker genero-foreman-worker Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Red: reviewed 0be4de0, no changes needed: I read the diff, the whole add-on compose file (including its rule that additions must work against the published :latest image), the release and CI workflows and the loopback docs, and checked that CI is green on 0be4de0 (https://github.com/generoi/hostshift/actions/runs/46956266702). That run i…

@genero-foreman-worker
genero-foreman-worker Bot marked this pull request as ready for review December 2, 2026 20:10
@oxyc

oxyc commented Dec 2, 2026

Copy link
Copy Markdown
Member

Closing: this puts DDEV/Mailpit routing into the core binary (a non-rewriting passthrough listener, and a core test that reads the add-on's compose file), while the core is meant to know nothing about DDEV. Redoing it in the add-on only: a DDEV router (Traefik) route for the variants' Mailpit ports.

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.

2 participants