fix(phpunit): add Fedora 43 stage-1 compatibility fixes#18107
Open
miz060 wants to merge 6 commits into
Open
Conversation
miz060
force-pushed
the
mitchzhu/f43-phpunit-stage1-pins
branch
from
July 24, 2026 00:21
3408ec7 to
c2e0204
Compare
miz060
force-pushed
the
mitchzhu/f43-phpunit-stage1-pins
branch
from
July 24, 2026 00:44
c2e0204 to
1989d6f
Compare
PHPUnit 12.5.24 treats incomplete PHP version constraints as runner issues, causing %check to exit non-zero after the suite completes. Backport upstream's complete 8.1.0 and 8.2.0 requirements without changing the package runtime API. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
The Fedora stage-1 PHPUnit 13.1 runner initializes code-coverage 14 color APIs before loading the test bootstrap, so it cannot execute the code-coverage 13 suite. Retain the full suite with PHPUnit 13.0 and use a direct installed-API smoke test for the incompatible stage-1 runner without changing the code-coverage 13 API. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
Comparator 8.0.0 tests fail against PME's diff 8.3 because expected output does not account for the newer diff behavior. Update to upstream comparator 8.1.4, which retains the same dependency majors and adds diff 8.3 compatibility. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
PHPUnit 12.5.24 reports type6's incomplete PHP 8.2 constraints as runner issues, causing %check to exit non-zero. Backport upstream's version-constraint correction without changing the type6 runtime API. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
miz060
force-pushed
the
mitchzhu/f43-phpunit-stage1-pins
branch
from
July 24, 2026 01:01
1989d6f to
4ca66bc
Compare
miz060
marked this pull request as ready for review
July 24, 2026 01:02
PHPUnit 13.0.5 diff assertions fail against PME's comparator 8.1.2 and diff 8.3 output. Backport upstream diff8 configuration and conditionally exclude comparator-output assertion classes only with the older buildroot comparator; comparator 8.1.4 restores the full suite automatically. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
Comparator 8.1.4 requires sebastian/diff 8.3 or newer, while Azure Linux still rendered diff 8.0.0. Update diff8 to Fedora 8.3.0 so the Azure Linux runtime package set satisfies comparator's dependency and matches the PME stage-1 stack. Signed-off-by: Mitch Zhu <mitchzhu@microsoft.com>
miz060
force-pushed
the
mitchzhu/f43-phpunit-stage1-pins
branch
from
July 24, 2026 01:15
4ca66bc to
7f19fe9
Compare
Member
|
/azp run |
|
Azure Pipelines: 3 pipeline(s) were filtered out due to trigger conditions. |
Collaborator
|
@miz060 scratch build check is failing on |
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.
Apply targeted compatibility fixes needed to build and test the existing PHP/PHPUnit component generation against the Fedora 43 stage-1 dependencies.
These changes retain PHPUnit 13.0 and code-coverage 13, use upstream fixes where available, and avoid unavailable dependency pins or mirror injections.
Change list:
Validation: