Repository navigation
[3.0] Silences the manifest build in the Docker entrypoint without backgrounding it - #9686
Merged
Sesquipedalian merged 1 commit intoSep 13, 2026
Conversation
…nding it The entrypoint runs under /bin/sh, which is dash in the php image. Dash has no &> operator, so `php -f … &>/dev/null` parsed as `php -f … &` followed by an empty redirection: the build ran in the background, its output went to the container log, and "ready" was logged before the manifest existed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
This was referenced Sep 13, 2026
Sesquipedalian
approved these changes
Sep 13, 2026
Member
|
I did not realize the Docker image uses dash as its shell. |
Sesquipedalian
merged commit Sep 13, 2026
c8ff442
into
SimpleMachines:release-3.0
17 of 18 checks passed
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.
Description
.docker/php/entrypoint.shruns under#!/bin/sh, which in thephp:*-apacheimage is dash. Dash has no&>operator, so the line added in #9679parses as
php -f … &followed by an empty>/dev/null. The build is sent to the background, its output is not discarded, and|| trueguards the empty redirection rather than the build.Measured in the container:
and on a real
docker compose upfromrelease-3.0:"ready" is logged — and
install.phpwas already answering 200 — about a minute before the manifest existed, so an install started straight afterdocker compose upquietly runs without one. The build's own output, git's identity error included, lands in the container log.This spells the redirect the POSIX way, so the build is waited for and its output discarded, while a failing build still cannot stop the container starting under
set -eu:Waiting does mean the first start of a checkout with no manifest takes as long as the build, which over a Windows bind mount was about 75 seconds on this stack. That is what the
building manifest.php/readylog lines around it already describe.Nothing here is reachable from the PHPUnit suite: it is a shell script run by the container.
Issues References (Fixes|Related|Closes)
🤖 Generated with Claude Code