Skip to content

[CI] Set APP_SECRET for the REST functional tests job - #287

Merged
konradoboza merged 1 commit into
6.0from
ci-app-secret-functional-tests
Nov 24, 2026
Merged

konradoboza merged 1 commit into
6.0from
ci-app-secret-functional-tests

Conversation

@konradoboza

@konradoboza konradoboza commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The REST functional tests job fails on 6.0 since the Pagerfanta 4 upgrade (IBX-13147): ErrorMessageTest::testUnknownApiUriReturnsErrorPageForClientExpectingHtml gets 500 instead of the 404 HTML page. Nothing in this package changed; a rerun of the last green Backend CI on 6.0 fails the same way.

  • integration-tests-callable.yaml sets a non-empty APP_SECRET for the job.

Note

Why the secret is empty: the Symfony recipe writes APP_SECRET= to .env and a generated secret to .env.dev. doc/docker/base-dev.yml passes APP_SECRET through to the app container, Compose reads the empty value from --env-file=.env, and a real environment variable wins over the dotenv files, so the generated secret is never used. babdev/pagerfanta-bundle 4.8 rejects an empty secret when it signs cursors ("The secret for signing cursors must not be empty"), which breaks every Twig-rendered page, the error page included. A variable from the workflow's env takes precedence over the env file, so the container gets a usable secret.

Note

This is a fix for this job only (and for the callers of this workflow, such as ibexa/http-cache). Other jobs and local setups started from base-dev.yml keep the empty secret.

@sonarqubecloud

Copy link
Copy Markdown

@konradoboza
konradoboza merged commit 7a94484 into 6.0 Nov 24, 2026
7 checks passed
@konradoboza
konradoboza deleted the ci-app-secret-functional-tests branch November 24, 2026 09:53
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.

2 participants