[php-src] PR #14125: Fix libmysql download to stable URL
| From: | KentarouTakeda | Date: | Sat, 04 May 2024 06:12:16 +0000 |
| Subject: | [php-src] PR #14125: Fix libmysql download to stable URL | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-26006@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/14125
Author: KentarouTakeda
Fixed an issue where libmysql download failed in Nightly Test.
Although this issue has not yet occurred in our repository, Once the CDN cache ceases to exist,
issues will begin to occur. I've personally tried this on my own repository with mixed success
and failure, with inconsistent results:
https://github.com/KentarouTakeda/php-src/actions/runs/8931850864/job/24534685059

With this fix:
* As of today, use the URL officially posted on [MySQL Community
Downloads](https://dev.mysql.com/downloads/mysql/).
* The URL before the correction is not officially posted as of today.
* Use versions from the *Archives* instead of the *GA Releases*, which are frequently updated and
removed..
* Corrected
8.0.35 to 8.0.36 at that time.
I have done the above. You can see the test path for this condition
[here](https://github.com/KentarouTakeda/php-src/actions/runs/8948215889/job/24581114749).
The key to this fix is to avoid downloading from *GA Releases* and select the one older version. I
checked the URLs for each version, and it seems that when a new GA Release is published, the
previous releases are moved to *Archives*, and the GA Release URLs are deleted at irregular
intervals.
The reason why our build broke this time was because 8.0.35 as GA was deleted due to
this operation, so we should refer to the longer-lived *Archives* URL from the beginning. In the
future, it will no longer break for the same reason.