Repository navigation
ddev: serve Mailpit on a worktree's variant hostnames - #17
genero-foreman-worker[bot] wants to merge 2 commits into
Conversation
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>
There was a problem hiding this comment.
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-1report.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, andgh pr viewshows no CI run for 2220184. Start CI (close and reopen the PR, or push) and have the integration job pass before merge;make testpassing doesn't cover routing.R1-2report.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>
There was a problem hiding this comment.
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…
There was a problem hiding this comment.
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…
|
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. |
<variant>:8026answered 404: variants route to thehostshiftservice, which exposed only 80/443.HOSTSHIFT_PASSTHROUGH=LISTEN=URL: a second listener that forwards untouched (Host kept, nothing rewritten). The add-on points it at web's Mailpit.:latestimage still starts; its variant :8026 answers 502 instead.make testpasses; CI is green on 0be4de0, including the newmailpit routes on the variantintegration check.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.)