Skip to content

Fix failed PHP 7.2 checks#5028

Merged
Daimona merged 8 commits intophan:v5from
SergiiDolgushev:no-php72-checks
Jul 26, 2025
Merged

Fix failed PHP 7.2 checks#5028
Daimona merged 8 commits intophan:v5from
SergiiDolgushev:no-php72-checks

Conversation

@SergiiDolgushev
Copy link
Copy Markdown
Collaborator

@SergiiDolgushev SergiiDolgushev commented Jul 23, 2025

apt-get update fails for 7.2 with:

Ign:1 http://security.debian.org/debian-security buster/updates InRelease
Err:2 http://security.debian.org/debian-security buster/updates Release
404  Not Found [IP: 151.101.66.132 80]
Ign:3 http://deb.debian.org/debian buster InRelease
Ign:4 http://deb.debian.org/debian buster-updates InRelease
Err:5 http://deb.debian.org/debian buster Release
404  Not Found [IP: 151.101.2.132 80]
Err:6 http://deb.debian.org/debian buster-updates Release
404  Not Found [IP: 151.101.2.132 80]
Reading package lists...
E: The repository 'http://security.debian.org/debian-security buster/updates Release' does not have a Release file.
E: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file.
E: The repository 'http://deb.debian.org/debian buster-updates Release' does not have a Release file. 

Additional context
Initial version of this PR was simply disabling PHP 7.2 checks. Current version of this PR switches from buster (that is unavailable anymore for 7.2) to alpine (for 7.2, while all other checks keep using buster).

@Daimona
Copy link
Copy Markdown
Member

Daimona commented Jul 23, 2025

It would be nice for that image to use a newer OS (e.g. buster -> bookworm), but I'm not sure if it's possible. The thing with dropping PHP 7.2 tests is that, I imagine, we could no longer guarantee that phan works in PHP 7.2. OTOH, maybe we could drop support for PHP 7.2 entirely, or possibly for PHP 7 in general. That would require a new major version though (v6).

@SergiiDolgushev
Copy link
Copy Markdown
Collaborator Author

It would be nice for that image to use a newer OS (e.g. buster -> bookworm), but I'm not sure if it's possible. The thing with dropping PHP 7.2 tests is that, I imagine, we could no longer guarantee that phan works in PHP 7.2. OTOH, maybe we could drop support for PHP 7.2 entirely, or possibly for PHP 7 in general. That would require a new major version though (v6).

Seems like bookworm is unavailable for PHP 7.2. Only options except buster are alpine and stretch. I tried to use stretch, but got similar error:

0.085 Ign:1 http://security.debian.org/debian-security stretch/updates InRelease                                             
0.089 Ign:2 http://deb.debian.org/debian stretch InRelease                                                                   
0.093 Ign:3 http://security.debian.org/debian-security buster/updates InRelease                                              
0.096 Ign:4 http://deb.debian.org/debian stretch-updates InRelease                                                           
0.100 Ign:5 http://security.debian.org/debian-security stretch/updates Release
0.107 Ign:6 http://security.debian.org/debian-security buster/updates Release
0.113 Ign:7 http://deb.debian.org/debian buster InRelease
0.114 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages
0.120 Ign:9 http://deb.debian.org/debian buster-updates InRelease
0.120 Ign:10 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.126 Ign:11 http://deb.debian.org/debian stretch Release
0.127 Ign:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages
0.133 Ign:13 http://deb.debian.org/debian stretch-updates Release
0.133 Ign:14 http://security.debian.org/debian-security buster/updates/main all Packages
0.140 Ign:15 http://deb.debian.org/debian buster Release
0.143 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages
0.147 Ign:16 http://deb.debian.org/debian buster-updates Release
0.149 Ign:10 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.154 Ign:17 http://deb.debian.org/debian stretch/main arm64 Packages
0.156 Ign:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages
0.160 Ign:18 http://deb.debian.org/debian stretch/main all Packages
0.162 Ign:14 http://security.debian.org/debian-security buster/updates/main all Packages
0.166 Ign:19 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.169 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages
0.173 Ign:20 http://deb.debian.org/debian stretch-updates/main all Packages
0.175 Ign:10 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.180 Ign:21 http://deb.debian.org/debian buster/main arm64 Packages
0.182 Ign:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages
0.189 Ign:22 http://deb.debian.org/debian buster/main all Packages
0.189 Ign:14 http://security.debian.org/debian-security buster/updates/main all Packages
0.195 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages
0.197 Ign:23 http://deb.debian.org/debian buster-updates/main all Packages
0.202 Ign:10 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.204 Ign:24 http://deb.debian.org/debian buster-updates/main arm64 Packages
0.209 Ign:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages
0.211 Ign:17 http://deb.debian.org/debian stretch/main arm64 Packages
0.215 Ign:14 http://security.debian.org/debian-security buster/updates/main all Packages
0.217 Ign:18 http://deb.debian.org/debian stretch/main all Packages
0.221 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages
0.225 Ign:19 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.228 Ign:10 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.230 Ign:20 http://deb.debian.org/debian stretch-updates/main all Packages
0.237 Ign:21 http://deb.debian.org/debian buster/main arm64 Packages
0.237 Ign:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages
0.244 Ign:14 http://security.debian.org/debian-security buster/updates/main all Packages
0.244 Ign:22 http://deb.debian.org/debian buster/main all Packages
0.250 Ign:8 http://security.debian.org/debian-security stretch/updates/main all Packages
0.251 Ign:23 http://deb.debian.org/debian buster-updates/main all Packages
0.257 Err:10 http://security.debian.org/debian-security stretch/updates/main arm64 Packages
0.257   404  Not Found [IP: 151.101.130.132 80]
0.258 Ign:24 http://deb.debian.org/debian buster-updates/main arm64 Packages
0.264 Ign:17 http://deb.debian.org/debian stretch/main arm64 Packages
0.264 Err:12 http://security.debian.org/debian-security buster/updates/main arm64 Packages
0.264   404  Not Found [IP: 151.101.130.132 80]
0.270 Ign:18 http://deb.debian.org/debian stretch/main all Packages
0.270 Ign:14 http://security.debian.org/debian-security buster/updates/main all Packages
0.280 Ign:19 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.287 Ign:20 http://deb.debian.org/debian stretch-updates/main all Packages
0.294 Ign:21 http://deb.debian.org/debian buster/main arm64 Packages
0.301 Ign:22 http://deb.debian.org/debian buster/main all Packages
0.308 Ign:23 http://deb.debian.org/debian buster-updates/main all Packages
0.314 Ign:24 http://deb.debian.org/debian buster-updates/main arm64 Packages
0.325 Ign:17 http://deb.debian.org/debian stretch/main arm64 Packages
0.332 Ign:18 http://deb.debian.org/debian stretch/main all Packages
0.339 Ign:19 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.345 Ign:20 http://deb.debian.org/debian stretch-updates/main all Packages
0.350 Ign:21 http://deb.debian.org/debian buster/main arm64 Packages
0.357 Ign:22 http://deb.debian.org/debian buster/main all Packages
0.363 Ign:23 http://deb.debian.org/debian buster-updates/main all Packages
0.369 Ign:24 http://deb.debian.org/debian buster-updates/main arm64 Packages
0.376 Ign:17 http://deb.debian.org/debian stretch/main arm64 Packages
0.383 Ign:18 http://deb.debian.org/debian stretch/main all Packages
0.389 Ign:19 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.395 Ign:20 http://deb.debian.org/debian stretch-updates/main all Packages
0.400 Ign:21 http://deb.debian.org/debian buster/main arm64 Packages
0.407 Ign:22 http://deb.debian.org/debian buster/main all Packages
0.414 Ign:23 http://deb.debian.org/debian buster-updates/main all Packages
0.420 Ign:24 http://deb.debian.org/debian buster-updates/main arm64 Packages
0.428 Err:17 http://deb.debian.org/debian stretch/main arm64 Packages
0.428   404  Not Found [IP: 151.101.2.132 80]
0.434 Ign:18 http://deb.debian.org/debian stretch/main all Packages
0.442 Err:19 http://deb.debian.org/debian stretch-updates/main arm64 Packages
0.442   404  Not Found [IP: 151.101.2.132 80]
0.446 Ign:20 http://deb.debian.org/debian stretch-updates/main all Packages
0.451 Err:21 http://deb.debian.org/debian buster/main arm64 Packages
0.451   404  Not Found [IP: 151.101.2.132 80]
0.459 Ign:22 http://deb.debian.org/debian buster/main all Packages
0.468 Ign:23 http://deb.debian.org/debian buster-updates/main all Packages
0.477 Err:24 http://deb.debian.org/debian buster-updates/main arm64 Packages
0.477   404  Not Found [IP: 151.101.2.132 80]
0.482 Reading package lists...
0.494 W: The repository 'http://security.debian.org/debian-security stretch/updates Release' does not have a Release file.
0.494 W: The repository 'http://security.debian.org/debian-security buster/updates Release' does not have a Release file.
0.494 W: The repository 'http://deb.debian.org/debian stretch Release' does not have a Release file.
0.494 W: The repository 'http://deb.debian.org/debian stretch-updates Release' does not have a Release file.
0.494 W: The repository 'http://deb.debian.org/debian buster Release' does not have a Release file.
0.494 W: The repository 'http://deb.debian.org/debian buster-updates Release' does not have a Release file.
0.494 E: Failed to fetch http://security.debian.org/debian-security/dists/stretch/updates/main/binary-arm64/Packages  404  Not Found [IP: 151.101.130.132 80]
0.494 E: Failed to fetch http://security.debian.org/debian-security/dists/buster/updates/main/binary-arm64/Packages  404  Not Found [IP: 151.101.130.132 80]
0.494 E: Failed to fetch http://deb.debian.org/debian/dists/stretch/main/binary-arm64/Packages  404  Not Found [IP: 151.101.2.132 80]
0.494 E: Failed to fetch http://deb.debian.org/debian/dists/stretch-updates/main/binary-arm64/Packages  404  Not Found [IP: 151.101.2.132 80]
0.494 E: Failed to fetch http://deb.debian.org/debian/dists/buster/main/binary-arm64/Packages  404  Not Found [IP: 151.101.2.132 80]
0.494 E: Failed to fetch http://deb.debian.org/debian/dists/buster-updates/main/binary-arm64/Packages  404  Not Found [IP: 151.101.2.132 80]
0.494 E: Some index files failed to download. They have been ignored, or old ones used instead.
------

Is it a good idea to try using alpine?

@Daimona
Copy link
Copy Markdown
Member

Daimona commented Jul 24, 2025

It would be nice for that image to use a newer OS (e.g. buster -> bookworm), but I'm not sure if it's possible. The thing with dropping PHP 7.2 tests is that, I imagine, we could no longer guarantee that phan works in PHP 7.2. OTOH, maybe we could drop support for PHP 7.2 entirely, or possibly for PHP 7 in general. That would require a new major version though (v6).

Seems like bookworm is unavailable for PHP 7.2. Only options except buster are alpine and stretch.

Right. I guess it makes sense, since PHP 7.2 is quite old.

I tried to use stretch, but got similar error:

Yeah, that's even older...

Is it a good idea to try using alpine?

I quickly tried it and it doesn't seem to work out of the box. I'm sure this can be worked around, but TBH I'd consider dropping support for PHP 7 in a new v6 branch.

@SergiiDolgushev SergiiDolgushev changed the title Disable PHP 7.2 checks Fix failed PHP 7.2 checks Jul 25, 2025
@SergiiDolgushev
Copy link
Copy Markdown
Collaborator Author

I guess when there will be actual code changes incompatible with PHP 7.2, it will have to be dropped indeed. But right now we can get PHP 7.2 checks back green by switching to alpine. Which was done in the latest commits (and PR description was updated).

The last step would be to fix the root cause of failed 8.1 check.

@Daimona @rlerdorf are there any other potential side effects from switching to alpine in docker image that is used to run the checks? Otherwise, are we good to merge this once 8.1 is fixed?

@SergiiDolgushev
Copy link
Copy Markdown
Collaborator Author

Instead of switching all checks to alpine completely, the latest version of this PR doing this for 7.2 only. Which seems the simplest solution for now.

@Daimona can we please include this change in 5.5.1?

@SergiiDolgushev SergiiDolgushev requested a review from Daimona July 25, 2025 18:55
@Daimona
Copy link
Copy Markdown
Member

Daimona commented Jul 26, 2025

Yep, I think this is fine for now. Thank you!

@Daimona Daimona merged commit 4f90bc5 into phan:v5 Jul 26, 2025
11 checks passed
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.

2 participants