Repository navigation
IBX-12041: Allowed the behat env on Symfony 8.1 Kernels - #150
Merged
Merged
Conversation
Symfony 8.1's framework-bundle recipe ships a Kernel that limits APP_ENV to getAllowedEnvs() (prod, dev, test), so 6.0 project builds running in the behat env fail to boot.
ibexa-workflow-automation-1
Bot
requested review from
Steveb-p,
alongosz,
barw4,
bnowak,
ciastektk,
konradoboza,
mikadamczyk,
tbialcz and
wiewiurdp
and removed request for
a team
October 8, 2026 07:06
konradoboza
approved these changes
Oct 8, 2026
alongosz
approved these changes
Oct 8, 2026
mikadamczyk
approved these changes
Oct 8, 2026
|
alongosz
approved these changes
Oct 8, 2026
ViniTou
added a commit
that referenced
this pull request
Oct 8, 2026
* IBX-12041: Allowed the behat env on Symfony 8.1 Kernels Symfony 8.1's framework-bundle recipe ships a Kernel that limits APP_ENV to getAllowedEnvs() (prod, dev, test), so 6.0 project builds running in the behat env fail to boot. * IBX-12041: Allowed the behat env on Symfony 8.1 Kernels of stable v6 builds * IBX-12041: Matched v6.0 like the other stable version checks
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.



Related PRs:
Description:
Symfony 8.1's framework-bundle recipe ships a Kernel with
getAllowedEnvs()returning['prod', 'dev', 'test'], and the project here runs inbehat- so once 6.0 resolves Symfony 8.1, every browser test build fails on Kernel boot.allow_behat_envadds'behat'to that list in the project'ssrc/Kernel.php. It's a no-op for Kernels withoutgetAllowedEnvs()(Symfony 7.x recipes), so current 6.0 builds are unaffected, and onlybin/6.0.x-devand v6 stable builds (bin/stable, gated onv6.0) are touched. In the stable script all composer runs already use--no-scripts, so one call before the project boots is enough. The helper is inline in both scripts on purpose: nested scripts are fetched fromCI_SCRIPTS_REF(mainby default), so a new_commonfile would 404 until this is merged. The firstcomposer updatenow runs with--no-scriptsand the scripts run after the Kernel is patched, sincepost-update-cmdboots it.Has to be merged before (or together with) the IBX-12041 batch.
For QA:
CI only. Same code ran in the browser tests of the batch PRs via a tmp ci-scripts branch.
Documentation:
N/A