Skip to content

[DOCS] AGENTS.md: test each behaviour in one image, not in every image built on it - #672

Merged
Kanti merged 2 commits into
masterfrom
task/additional-services-in-every-image
Nov 24, 2026
Merged

Kanti merged 2 commits into
masterfrom
task/additional-services-in-every-image

Conversation

@Kanti

@Kanti Kanti commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Why

#671: RUN docker-service enable ssh on webdevops/php-nginx:8.4-alpine failed because of a broken python3-ndbm in the Alpine repository (aports#18589), which Alpine has fixed since with 3.14.10-r3.

A first version of this pull request ran AdditionalServicesChecks (install, enable and start the services an image does not run) in every image, not only in webdevops/php. That would not have caught #671:

  • php-nginx, php-apache and the -dev images are built FROM webdevops/php and use the same packages and package sources. In the run on master on 2026-11-23, webdevops/php:8.4-alpine (amd64) passed this check, ssh included (14:50 to 15:01 UTC). The broken package appeared in the repository after it.
  • An image test runs at build time; it cannot see a package repository that breaks later.

So the same check in every image would only make the pipeline longer. This pull request writes that down for the agents instead.

What

  • AGENTS.md, new section "Test each behaviour in one image" under "Build and test":
  • The image tests are unchanged against master.

Tests

None; documentation for agents only.

How it was verified

The CI run on master (build, 2026-11-23 13:10 UTC): the job webdevops/php:8.4-alpine (amd64) with AdditionalServicesChecks passed, the job webdevops/php-nginx:8.4-alpine (amd64) too. docker-service enable ssh in local Alpine images from 2026-11-18 and 2026-11-20 (python3-3.14.10-r1) now installs python3-ndbm-3.14.10-r3 and succeeds.

…y image

Only webdevops/php checked that docker-service installs, enables and starts
the services an image does not run. #671 failed with
docker-service enable ssh in php-nginx:8.4-alpine (a broken python3-ndbm in
the Alpine repository). php-nginx, php-apache and the -dev images now run the
same check, so a nightly build shows it when one of them cannot add a service.
…e built on it

The images built FROM webdevops/php share its packages and package sources,
and image tests cannot see a package repository that breaks after the build
(#671), so the additional services stay tested in webdevops/php only.
@Kanti Kanti changed the title [TASK] Image tests: install and start the additional services in every image [DOCS] AGENTS.md: test each behaviour in one image, not in every image built on it Nov 24, 2026
@sonarqubecloud

Copy link
Copy Markdown

@Kanti
Kanti marked this pull request as ready for review November 24, 2026 12:57
@Kanti
Kanti merged commit dda39df into master Nov 24, 2026
10 of 30 checks passed
@Kanti
Kanti deleted the task/additional-services-in-every-image branch November 24, 2026 12:58
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