Repository navigation
CI: Support multi-channel WEB_HOST and database routing for parallel Behat tests - #213
Open
ibexa-yuna wants to merge 9 commits into
Open
ibexa-yuna wants to merge 9 commits into
ibexa-yuna wants to merge 9 commits into
Conversation
…Behat tests Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…CE to all edition configs
…obust URL parsing Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
mnocon
suggested changes
Oct 22, 2026
…ckagist collision Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
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.



Description
Enables multi-process Behat test execution without collisions by dynamically routing Mink web requests, CLI Doctrine database connections, and cache namespaces based on the active worker channel.
ENV_TEST_CHANNEL_READABLE={p}when executingfastest.bootstrap_channel.php): Centralizes idempotent channel routing used across all Behat edition configs (behat_ibexa_oss.php,behat_ibexa_commerce.php,behat_ibexa_experience.php,behat_ibexa_headless.php).8080 + $channel(e.g.http://web:8081for process 1,http://web:8082for process 2), directing requests to the corresponding isolated Nginx port. Bypasses Varnish reverse proxy directly towebcontainer when running in parallel.DATABASE_NAMEandDATABASE_URL(resolving from$_ENV,$_SERVER, andgetenv()) to${baseDbName}_${channel}with robustparse_urlreconstruction so migrations, fixtures, and repository commands act on the process-specific database.CACHE_NAMESPACE=channel_${channel}in CLI environment to isolate Redis / Valkey caches per worker.--unsafely-treat-insecure-origin-as-secure.Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com