Skip to content

CI: Support multi-channel database routing in Nginx and increase Selenium sessions for parallel testing - #77

Open
ibexa-yuna wants to merge 13 commits into
6.0from
ci-optimizations
Open

ibexa-yuna wants to merge 13 commits into
6.0from
ci-optimizations

Conversation

@ibexa-yuna

@ibexa-yuna ibexa-yuna commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Description

Enables parallel Behat test execution (multiple processes per runner) by isolating HTTP web requests, database connections, and cache namespaces per worker channel.

  • Nginx virtual host: Listens on ports 8081-8084 in addition to 80; dynamically maps request server port to channel database name (DATABASE_NAME_1..4), passing it to PHP-FPM via fastcgi_param DATABASE_NAME so Symfony Dotenv resolves ${DATABASE_NAME} dynamically inside Doctrine's DATABASE_URL per channel.
  • Cache namespace isolation: Dynamically maps server ports 8081-8084 to fastcgi_param CACHE_NAMESPACE channel_1..4 to prevent cache collisions across parallel workers in Redis / Valkey / filesystem cache.
  • Selenium: Increases max concurrent browser sessions from 1 to 4 (SE_NODE_MAX_SESSIONS=${SE_NODE_MAX_SESSIONS:-4}), raises session timeout to 300s, and increases shared memory (shm_size: 4gb).
  • MySQL entrypoint: Automatically grants privileges to the database user on wildcard channel databases (${MYSQL_DATABASE}_%).

Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com

ibexa-yuna and others added 2 commits October 21, 2026 17:31
…nium sessions for parallel testing

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@mnocon
mnocon requested review from katarzynazawada and removed request for mnocon October 22, 2026 06:33
ibexa-yuna and others added 5 commits October 22, 2026 09:00
…ckagist collision

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Only inject DATABASE_NAME/CACHE_NAMESPACE fastcgi params on channel ports
(8081-8084) so single-process requests use the application configuration.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

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