home-cache switches off apt sources Artifact Keeper doesn't mirror #131

Closed
nelson wants to merge 2 commits from PIPT-18-apt-sources into main
Owner

Tracked on https://openproject.home.romaine.life/wp/PIPT-18. Launchpad's 503 failed CI / home-cache-linux on #128.

Changed: actions/home-cache already rewrote Ubuntu's archive to Artifact Keeper. It now also switches off every apt source Artifact Keeper doesn't mirror. A file in sources.list.d gets renamed to .off, and a line in sources.list gets commented out. In the job image (catthehacker act-24.04) that covers three sources: the git-core PPA on Launchpad, git-lfs on packagecloud, and packages.microsoft.com. Any of them being down failed apt-get update, against README's "keeps serving what it holds when a source is down".

Test: home-cache-linux now also asserts that Artifact Keeper is the only host apt reads. I ran the action and the test against that exact image digest on the cluster runner's Docker, with an extra foreign line in sources.list. The update and the hello download succeeded, the foreign line was commented out and the three files were renamed.

Not done: jobs that run apt-get update without home-cache still read those hosts. Our CI installs only packages from Ubuntu's archive (shellcheck, python3-yaml, jq and the like), so nothing loses a package it uses.

Tracked on https://openproject.home.romaine.life/wp/PIPT-18. Launchpad's 503 failed `CI / home-cache-linux` on https://forgejo.romaine.life/romaine-life/pipeline-templates/pulls/128. **Changed:** `actions/home-cache` already rewrote Ubuntu's archive to Artifact Keeper. It now also switches off every apt source Artifact Keeper doesn't mirror. A file in `sources.list.d` gets renamed to `.off`, and a line in `sources.list` gets commented out. In the job image (catthehacker act-24.04) that covers three sources: the git-core PPA on Launchpad, git-lfs on packagecloud, and packages.microsoft.com. Any of them being down failed `apt-get update`, against README's "keeps serving what it holds when a source is down". **Test:** `home-cache-linux` now also asserts that Artifact Keeper is the only host apt reads. I ran the action and the test against that exact image digest on the cluster runner's Docker, with an extra foreign line in `sources.list`. The update and the `hello` download succeeded, the foreign line was commented out and the three files were renamed. **Not done:** jobs that run `apt-get update` without home-cache still read those hosts. Our CI installs only packages from Ubuntu's archive (shellcheck, python3-yaml, jq and the like), so nothing loses a package it uses.
home-cache switches off apt sources Artifact Keeper doesn't mirror
Some checks failed
merge-queue 2nd in line, behind #130: nelsong6/forgejo joins the cluster-service suite for its manifests (PIPT-12 step 6)
CI / changes (pull_request) Successful in 8s
Fleet / align (pull_request) Successful in 6s
CI / actionlint (pull_request) Has been cancelled
CI / release-version (pull_request) Has been cancelled
CI / check-versions (pull_request) Has been cancelled
CI / check-fetches (pull_request) Has been cancelled
CI / check-image-digests (pull_request) Has been cancelled
CI / cached-images (pull_request) Has been cancelled
CI / container-health (pull_request) Has been cancelled
CI / azure-cli (pull_request) Has been cancelled
CI / home-cache-linux (pull_request) Has been cancelled
CI / home-cache-windows (pull_request) Has been cancelled
CI / setup-linux (nas) (pull_request) Has been cancelled
CI / setup-windows (pull_request) Has been cancelled
CI / service-runtime (one) (pull_request) Has been cancelled
CI / service-runtime (two) (pull_request) Has been cancelled
CI / service-cancellation (pull_request) Has been cancelled
CI / suite-tests-linux (pull_request) Has been cancelled
CI / suite-tests-windows (pull_request) Has been cancelled
CI / prune-releases (pull_request) Successful in 7s
6c02b4c197
The job image's git-core PPA, packagecloud and Microsoft sources made apt-get update fail
whenever their host was down (Launchpad's 503 failed pipeline-templates PR 128).
Merge branch 'main' into PIPT-18-apt-sources
Some checks failed
Fleet / align (pull_request) Successful in 6s
CI / changes (pull_request) Successful in 9s
CI / prune-releases (pull_request) Successful in 6s
CI / actionlint (pull_request) Successful in 10s
CI / check-versions (pull_request) Successful in 8s
CI / check-fetches (pull_request) Successful in 9s
CI / release-version (pull_request) Successful in 9s
CI / check-image-digests (pull_request) Successful in 8s
CI / cached-images (pull_request) Successful in 11s
CI / azure-cli (pull_request) Successful in 10s
CI / home-cache-linux (pull_request) Successful in 22s
CI / container-health (pull_request) Successful in 30s
CI / suite-tests-linux (pull_request) Successful in 24s
CI / service-cancellation (pull_request) Successful in 36s
CI / service-runtime (one) (pull_request) Successful in 23s
CI / service-runtime (two) (pull_request) Successful in 22s
CI / setup-linux (nas) (pull_request) Successful in 2m55s
CI / home-cache-windows (pull_request) Successful in 25s
CI / suite-tests-windows (pull_request) Successful in 51s
CI / setup-windows (pull_request) Failing after 4m6s
merge-queue conflicts with main
b02549a842
First-time contributor

merge-queue stopped this at b02549a: CI failed: CI / setup-windows (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the queue label.

merge-queue stopped this at b02549a: CI failed: CI / setup-windows (pull_request). Push a fix, or once it is fixed outside this pull request, remove and re-add the `queue` label.
First-time contributor

merge-queue stopped this at b02549a: conflicts with main. Push a fix, or once it is fixed outside this pull request, remove and re-add the queue label.

merge-queue stopped this at b02549a: conflicts with main. Push a fix, or once it is fixed outside this pull request, remove and re-add the `queue` label.
Author
Owner

Superseded by #132 (PIPT-23), which landed the same fix first: home-cache turns off apt sources Artifact Keeper does not mirror, with the same CI assertion. Closing.

Superseded by #132 (PIPT-23), which landed the same fix first: home-cache turns off apt sources Artifact Keeper does not mirror, with the same CI assertion. Closing.
nelson closed this pull request 2026-11-17 12:26:15 -08:00
Some checks are pending
Fleet / align (pull_request) Successful in 6s
CI / changes (pull_request) Successful in 9s
Required
Details
CI / prune-releases (pull_request) Successful in 6s
Required
Details
CI / actionlint (pull_request) Successful in 10s
Required
Details
CI / check-versions (pull_request) Successful in 8s
Required
Details
CI / check-fetches (pull_request) Successful in 9s
Required
Details
CI / release-version (pull_request) Successful in 9s
Required
Details
CI / check-image-digests (pull_request) Successful in 8s
Required
Details
CI / cached-images (pull_request) Successful in 11s
Required
Details
CI / azure-cli (pull_request) Successful in 10s
Required
Details
CI / home-cache-linux (pull_request) Successful in 22s
Required
Details
CI / container-health (pull_request) Successful in 30s
Required
Details
CI / suite-tests-linux (pull_request) Successful in 24s
Required
Details
CI / service-cancellation (pull_request) Successful in 36s
Required
Details
CI / service-runtime (one) (pull_request) Successful in 23s
Required
Details
CI / service-runtime (two) (pull_request) Successful in 22s
Required
Details
CI / setup-linux (nas) (pull_request) Successful in 2m55s
Required
Details
CI / home-cache-windows (pull_request) Successful in 25s
Required
Details
CI / suite-tests-windows (pull_request) Successful in 51s
Required
Details
CI / setup-windows (pull_request) Failing after 4m6s
Required
Details
merge-queue conflicts with main
Suite default / * (pull_request)
Required
Suite release / * (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No description provided.