Repository navigation
fix: harden Lagoon proxy routes and cover unreleased fixes - #110
Open
AaronFeledy wants to merge 4 commits into
Open
AaronFeledy wants to merge 4 commits into
AaronFeledy wants to merge 4 commits into
Conversation
✅ Deploy Preview for lando-lagoon ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Purpose
Prepare the unreleased Lagoon fixes with regression coverage and accurate release notes.
Changes
Build local service-context source images in dependency order before start/rebuild; CI showed Compose trying to pull the not-yet-built local
drupalbase-cliimage from Docker Hub. Keep the Drupal integration scenario andCLI_IMAGEargs.Fix numeric proxy ports, use each basic service’s own container port, and retain the root-domain route for an explicitly selected basic primary.
Cover build-context resolution, additional-context stripping, and proxy generation with isolated tests.
Document the unreleased payload. Relative build contexts, additional-context stripping, dependency refreshes and npm promotion fixes are already on main, not newly imported here. Related fix: strip additional_contexts and resolve relative build contexts #107 remains separate.
Replace retired macOS 14 PR runners and pin the Leia fallback to the existing locked version after CI exposed incompatible latest-tool drift.
Validation
cursor-grok-4.6-xhigh-fast) passed on3f5e8296c9c2be5b62ad0ec7d08ffe0e6554dd84against base380f69c4c21afc913049a264db6b5679165f68d5: no bugs.Limits
Full local Lando/Docker integration and historical multiversion docs were not run. The prior CI head passed all four other Lagoon scenarios but failed both Drupal jobs on local image build ordering; all six final-head Lagoon integration jobs pass. The edge proxy job passed its one failed-job-only rerun after an initial post-rebuild 404; the other five passing jobs were reused. No shared setup, apps or networks were changed. Version/date remain for release automation; no release or package publication is included.
Note
Medium Risk
Proxy port logic affects local routing for Lagoon basic and explicit primary services; behavior change is covered by new unit tests but not full Lando integration in this PR.
Overview
Proxy routing now targets each service’s container port instead of a shared basic port or host mappings: a new
getContainerPorthelper handles numeric andhost:containerCompose syntax, explicit primary servers use per-service ports, and eachlagoon-basicservice gets its own route.Regression tests were added for Lagoon builder compose output (build context resolution, no build on image-only services), compose parsing (
additional_contextsstripping), and proxy route generation.Release notes expand the unreleased changelog; CI pins
lando/run-leia-actionto1.0.0-beta.4and moves unit tests frommacos-14tomacos-15.Reviewed by Cursor Bugbot for commit 3f5e829. Bugbot is set up for automated code reviews on this repo. Configure here.