Repository navigation
fix: keep other PHP builds running when one matrix job fails - #39
Merged
Merged
Conversation
A transient PECL error on the PHP 8.1 build cancelled the remaining build-php jobs because the matrix defaults to fail-fast. Turn fail-fast off so one flaky job doesn't block the other image builds.
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.
Why
The scheduled/push `Build, Test, and Push Docker images` run on `main` failed on 2026-10-16 with:
```
build-php (8.1): No releases available for package "pecl.php.net/apcu"
```
This was a transient PECL error, not a code problem. The same unchanged code passed on the fork (see below), and the failure didn't come from the Dockerfile.
The real amplifier is the matrix strategy. `build-php` uses the default `fail-fast: true`, so the first job to error cancels every other PHP version. In the 2026-10-16 run, 6 of 7 PHP builds were cancelled, not failed. One flaky job blocked six healthy image builds from pushing.
Change
Set `fail-fast: false` on the `build-php` matrix in `test.yml` and `deploy.yml`. Each PHP version now builds and pushes independently. The push steps already gate on `if: success()` for their own job, so a failed version still won't push.
Testing
Not covered