php-parser autopkgtests fail with php7.4 7.4.3-4ubuntu2 on armhf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php |
Fix Released
|
Unknown
|
|||
php-parser (Ubuntu) |
Fix Released
|
Undecided
|
Bryce Harrington | ||
Focal |
Fix Committed
|
High
|
Bryce Harrington | ||
Groovy |
Fix Released
|
Undecided
|
Bryce Harrington |
Bug Description
[Impact]
Other php SRUs end up blocked from migration due to a test case in php-parser that fails due to an integer format mismatch.
[Test Case]
1. Create lxc container for ubuntu-focal
2. Install php-parser
3. Run autopkgtest php-parser -- null
The testsuite should pass but it does not, and fails with EmulativeTest issues starting with (and similar to) this one:
1) PhpParser\
Failed asserting that actual size 0 matches expected size 1.
/tmp/autopkgtes
[Regression Potential]
Since this is a testsuite fix for integer parsing on armhf, the two things to watch for would be a) issues relating to the testsuite, or b) issues particular to armhf (especially traceable to integer parsing behavior). However, in the first case, the testsuite's behavior would crop up only during building / migrating in the archive and would not produce user-visible effects. In the second case, integer parsing issues already exist in released code so would not be a true regression, the test case only exposes them - by preventing other php packages from migrating.
[Discussion]
php-parser's autopkgtest has been failing in focal on armhf for some time:
http://
The test failure is due to an integer format mismatch. We spotted this issue on groovy and flagged it for upstream:
https:/
There doesn't appear to be a fix identified yet. We addressed it in groovy by disabling the faulty tests (the one listed in this bug, and the one in LP: #1895878), and that may be a low-risk way to address it for focal, too.
https:/
php-parser: https:/
php7.4: https:/
Originally failing Log: https:/
- EmulativeTest:
- EmulativeTest:
- LexerTest:
php7.4 is blocked from migration of three CVEs due to test failures with php-parser. Php-parser has a newer 4.4.0-1 stuck in proposed, but triggering the two together did not resolve the issue:
Newly failing log: https:/
- CodeParsingTest
- Lexer\Emulative
Related branches
- Utkarsh Gupta (community): Approve
- Canonical Server: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 234 lines (+181/-1)5 files modifieddebian/changelog (+49/-0)
debian/control (+2/-1)
debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch (+57/-0)
debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch (+71/-0)
debian/patches/series (+2/-0)
- Chloé Smith (community): Approve
- Christian Ehrhardt : Pending requested
- Bryce Harrington: Pending requested
- Canonical Server packageset reviewers: Pending requested
- git-ubuntu import: Pending requested
-
Diff: 206 lines (+160/-1)5 files modifieddebian/changelog (+28/-0)
debian/control (+2/-1)
debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch (+57/-0)
debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch (+71/-0)
debian/patches/series (+2/-0)
- Bryce Harrington (community): Approve
- Sergio Durigan Junior (community): Needs Fixing
- git-ubuntu developers: Pending requested
- Canonical Server: Pending requested
-
Diff: 186 lines (+146/-1)5 files modifieddebian/changelog (+14/-0)
debian/control (+2/-1)
debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch (+57/-0)
debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch (+71/-0)
debian/patches/series (+2/-0)
- Sergio Durigan Junior (community): Needs Fixing
- git-ubuntu developers: Pending requested
- Canonical Server: Pending requested
- Ubuntu Server Developers: Pending requested
-
Diff: 211 lines (+164/-1)5 files modifieddebian/changelog (+32/-0)
debian/control (+2/-1)
debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch (+57/-0)
debian/patches/0004-Disable-CodeParsingTest-due-to-integer-syntax.patch (+71/-0)
debian/patches/series (+2/-0)
- Bryce Harrington (community): Approve
- Christian Ehrhardt (community): Needs Fixing
- Canonical Server MOTU reviewers: Pending requested
-
Diff: 252 lines (+206/-0)7 files modifieddebian/changelog (+18/-0)
debian/patches/disable-CodeParsingTest-due-to-integer-syntax.patch (+65/-0)
debian/patches/disable-broken-test-case-in-EmulativeTest.patch (+38/-0)
debian/patches/series (+7/-0)
debian/patches/skip-EmulativeTest-testErrorAfterEmulation.patch (+26/-0)
debian/patches/skip-LexerTest-testError.patch (+26/-0)
debian/patches/skip-PrettyPrinterTest.patch (+26/-0)
- Lucas Kanashiro (community): Approve
-
Diff: 144 lines (+76/-18)5 files modifieddebian/changelog (+10/-0)
debian/control (+2/-1)
debian/patches/0003-Disable-new-test-cases-not-yet-32-bit-compatible.patch (+63/-0)
debian/patches/series (+1/-0)
test/PhpParser/Lexer/EmulativeTest.php (+0/-17)
Changed in php-parser (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Bryce Harrington (bryce) |
tags: | added: update-excuse |
tags: | added: ftbfs |
summary: |
- php-parser autopkgtests fail with php7.4 7.4.3-4ubuntu2 + php-parser autopkgtests fail with php7.4 7.4.3-4ubuntu2 on armhf |
description: | updated |
Changed in php: | |
status: | Unknown → New |
Changed in php: | |
status: | New → Fix Released |
The integer syntax issue is forwarded upstream to: /github. com/nikic/ PHP-Parser/ issues/ 662
https:/
This test case is new with 4.4.0, and I'm guessing it's a signed/unsigned issue with the Scalar_LNumber data type.