pmbootstrap aportgen: don't use CDN alpine mirror
Use a deterministic mirror URL instead of CDN for aportgen. Otherwise we may generate a pmaport that wraps an apk from Alpine (e.g. musl-armv7) locally with one up-to-date mirror given by the CDN. But then the build will fail if CDN picks an outdated mirror for CI or BPO.
CI will fail due to 32-bit repos on edge being rebuilt. Creating this MR for reference, as I'm updating the pmaports with this change. We can run CI again and get it reviewed / merged after the rebuild.
Merge request reports
Activity
added type::feature label
mentioned in commit pmaports@3a8cddc2
By Oliver Smith on 2020-07-22T13:59:51
- Resolved by Administrator
Please also adjust
pmb/aportgen/grub_efi.py
, otherwise LGTMBy Luca Weiss on 2020-08-31T11:36:46
Edited by Ghost User
mentioned in commit pmaports@1915c4ec
By Oliver Smith on 2020-07-29T10:58:51
added 11 commits
-
37a8a2a1...5d540ad4 - 10 commits from branch
master
- 72f87c3b - pmbootstrap aportgen: don't use CDN alpine mirror (MR 1963)
By Oliver Smith on 2020-08-31T11:36:38
-
37a8a2a1...5d540ad4 - 10 commits from branch
It is not necessarily updated first. The important thing is, that we have a "standard" mirror that the pmOS infrastructure is using everywhere, so package builds will not fail because of mirror inconsistencies.
Example for the musl package, which we repackage as cross/musl-aarch64 etc:
- Alpine pushes a new musl version
- monitoring fetches APKINDEX from the mirrors and alerts about pmOS cross/musl-* packages being outdated
-
pmbootstrap aportgen
andpmbootstrap build
fetch the new package from the mirror specified in the generatedAPKBUILD
- the package gets pushed to pmaports.git (usually directly without MR, because this is so trivial)
- pmaports.git CI builds musl-aarch64, which downloads the musl apk from alpine mirrors
- bpo instructs sourcehut builds to build musl-aarch64, which downloads the musl apk from alpine mirrors
So the package is downloaded from various places in short succession after the package was updated. Not all mirrors may have the new APKINDEX and package available yet, and so this may fail to build on bpo for example if CDN is used as mirror and the region specific mirror behind the CDN that would be used by the sourcehut servers located in Philadelphia may not have received the updated package yet.
By Oliver Smith on 2020-09-17T10:28:08
Edited by Administratoradded 7 commits
-
72f87c3b...a870a691 - 6 commits from branch
master
- 5b55abd4 - pmbootstrap aportgen: don't use CDN alpine mirror (MR 1963)
By Alexey Min on 2020-09-18T00:20:12
-
72f87c3b...a870a691 - 6 commits from branch
enabled an automatic merge when the pipeline for 5b55abd4 succeeds
By Alexey Min on 2020-09-18T00:21:32