Skip to content

IBX-12907: Rebuilt and re-pulled Docker images when starting project containers - #158

Merged
alongosz merged 2 commits into
mainfrom
ibx-12907-compose-up-build-pull
Dec 4, 2026
Merged

alongosz merged 2 commits into
mainfrom
ibx-12907-compose-up-build-pull

Conversation

@alongosz

@alongosz alongosz commented Dec 4, 2026 •

Copy link
Copy Markdown
Member
🎫 Issue IBX-12907

Related PRs:

Description:

Blacksmith runners keep a Docker image cache shared across jobs and product versions. docker compose up -d reuses a cached ibexa-varnish:latest built by another version's job, with that version's varnish5.vcl baked in. The 4.6 VCL keeps only the eZSESSID session cookie, so on 5.0 (IBX_SESSION_ID) Varnish strips the admin session: login works, every later back-office page renders logged out. It broke the Varnish setup jobs of the 5.0 merge-ups deterministically, e.g. commerce run 47305580511, while the GitHub-hosted 5.0 nightly with the same packages built the image fresh and passed.

  • Added --build to docker compose up in the 4.6, 5.0 and 6.0 prepare_project_edition.sh, so images are always built from the current project's Dockerfiles (layer cache keeps it fast).

  • Added --pull always, so cached service images (e.g. ghcr.io/ibexa/docker/php) are refreshed as well.

  • [Tests] Authenticated LinkDependenciesCommandTest with the workflow token (github.token). It called the GitHub API anonymously, sharing the 60 requests per hour limit of the runner's IP with every other job, so it failed at random, e.g. in Tests (8.3):

    1) Ibexa\Tests\ContiniousIntegrationScripts\Command\LinkDependenciesCommandTest::testGeneratesCorrectDependenciesJsonFile
    Github\Exception\ApiLimitExceedException: You have reached GitHub hourly limit! Actual limit is: 60
    
  • 🟢 Varnish setup on Blacksmith (5.0, PHP 8.3/PostgreSQL 18.0/Varnish/Redis 7.2), previously failing 3/3: browser-tests (0) via IBX-12907: Merged branch '4.6' into 5.0 commerce#2169

For QA:

No QA required.

Documentation:

No documentation required.

Blacksmith runners keep a Docker image cache shared across jobs and
product versions. `docker compose up -d` then reuses a cached
`ibexa-varnish:latest` built by another version's job, with that
version's VCL baked in. The 4.6 VCL keeps only the `eZSESSID` session
cookie, so on 5.0 (`IBX_SESSION_ID`) Varnish strips the admin session
and every back-office page after login renders logged out.

`--build` rebuilds images from the current project's Dockerfiles, and
`--pull always` refreshes cached service images such as the PHP one.
…oken

The test called the GitHub API anonymously, which shares a 60 requests
per hour limit per IP with every job on the GitHub-hosted runner, so it
failed at random with ApiLimitExceedException.
@sonarqubecloud

sonarqubecloud Bot commented Dec 4, 2026

Copy link
Copy Markdown

@alongosz
alongosz merged commit 76b1b48 into main Dec 4, 2026
21 checks passed
@alongosz
alongosz deleted the ibx-12907-compose-up-build-pull branch December 4, 2026 13:31
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.

3 participants