Revert the v4 cache retry: the gate stays shut, so it is the runner
CI / Tests (PHP 8.2) (pull_request) Successful in 53s
CI / Tests (PHP 8.1) (pull_request) Successful in 1m3s
CI / No Debug Code (pull_request) Successful in 2s
CI / Coding Standards & Static Analysis (pull_request) Successful in 3m27s
CI / Tests (PHP 8.3) (pull_request) Successful in 6m47s
CI / Tests (PHP 8.5) (pull_request) Failing after 12m17s
CI / Build Plugin Zip (pull_request) Skipped
CI / Tests (PHP 8.2) (pull_request) Successful in 53s
CI / Tests (PHP 8.1) (pull_request) Successful in 1m3s
CI / No Debug Code (pull_request) Successful in 2s
CI / Coding Standards & Static Analysis (pull_request) Successful in 3m27s
CI / Tests (PHP 8.3) (pull_request) Successful in 6m47s
CI / Tests (PHP 8.5) (pull_request) Failing after 12m17s
CI / Build Plugin Zip (pull_request) Skipped
Tested and the hypothesis is dead. actions/cache@v4 resolved properly (SHA 0057852) and printed the same GHES warning as v3, so the action version was not what was closing the gate. That points at the runner rather than the action. Gitea's docs say the runner patches the GHES check out of the action's bundle only when it recognises it, and that a bundle it does not recognise "is left alone". No patching for either v3 or v4, and no ACTIONS_CACHE_URL to patch it towards, is what you get when cache is simply off in the runner config. So the fix is cache.enabled in act_runner's config.yaml, with host set to an address job containers can reach. Nothing in this repository unblocks it, and inert steps are what let the Composer cache rot unnoticed, so the experiment comes out again. Both halves — the apt cache and the move to v4 — should land together once the runner serves a cache. Refs #178. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Uw545F1vveNJKjzLxdi2ks
This commit is contained in:
+2
-89
@@ -19,35 +19,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# setup-php installs PHP 8.3+ through php-builder, which apt-installs ~70
|
|
||||||
# -dev packages before unpacking the build (#178). Ubuntu's own image
|
|
||||||
# deletes the .debs after install, so every job re-downloads them from
|
|
||||||
# the archive. Keep them and restore them from the cache server, which
|
|
||||||
# lives in the cluster, turning a WAN download into a local one.
|
|
||||||
#
|
|
||||||
# The dep list is the same for every PHP version on the builder path, so
|
|
||||||
# one shared key serves them all. Only the .debs are cached, never
|
|
||||||
# /var/lib/apt/lists — a stale index is how you get 404s on install.
|
|
||||||
- name: Keep downloaded .debs
|
|
||||||
run: |
|
|
||||||
sudo rm -f /etc/apt/apt.conf.d/docker-clean
|
|
||||||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
|
|
||||||
| sudo tee /etc/apt/apt.conf.d/99keep-downloaded-packages >/dev/null
|
|
||||||
|
|
||||||
- name: Cache apt packages
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /var/cache/apt/archives/*.deb
|
|
||||||
key: apt-php-builder-deps-${{ runner.arch }}-v1
|
|
||||||
|
|
||||||
# Temporary, for #178: shows whether the cache actually served the
|
|
||||||
# builder's dependencies, and times the step that consumes them.
|
|
||||||
- name: Report restored .debs
|
|
||||||
run: |
|
|
||||||
echo "restored .debs: $(ls /var/cache/apt/archives/*.deb 2>/dev/null | wc -l)"
|
|
||||||
echo "restored size: $(du -sh /var/cache/apt/archives 2>/dev/null | cut -f1)"
|
|
||||||
date -u +'setup-php start: %H:%M:%S'
|
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
@@ -55,7 +26,7 @@ jobs:
|
|||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.composer/cache
|
path: ~/.composer/cache
|
||||||
key: composer-${{ hashFiles('composer.json') }}
|
key: composer-${{ hashFiles('composer.json') }}
|
||||||
@@ -83,35 +54,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# setup-php installs PHP 8.3+ through php-builder, which apt-installs ~70
|
|
||||||
# -dev packages before unpacking the build (#178). Ubuntu's own image
|
|
||||||
# deletes the .debs after install, so every job re-downloads them from
|
|
||||||
# the archive. Keep them and restore them from the cache server, which
|
|
||||||
# lives in the cluster, turning a WAN download into a local one.
|
|
||||||
#
|
|
||||||
# The dep list is the same for every PHP version on the builder path, so
|
|
||||||
# one shared key serves them all. Only the .debs are cached, never
|
|
||||||
# /var/lib/apt/lists — a stale index is how you get 404s on install.
|
|
||||||
- name: Keep downloaded .debs
|
|
||||||
run: |
|
|
||||||
sudo rm -f /etc/apt/apt.conf.d/docker-clean
|
|
||||||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
|
|
||||||
| sudo tee /etc/apt/apt.conf.d/99keep-downloaded-packages >/dev/null
|
|
||||||
|
|
||||||
- name: Cache apt packages
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /var/cache/apt/archives/*.deb
|
|
||||||
key: apt-php-builder-deps-${{ runner.arch }}-v1
|
|
||||||
|
|
||||||
# Temporary, for #178: shows whether the cache actually served the
|
|
||||||
# builder's dependencies, and times the step that consumes them.
|
|
||||||
- name: Report restored .debs
|
|
||||||
run: |
|
|
||||||
echo "restored .debs: $(ls /var/cache/apt/archives/*.deb 2>/dev/null | wc -l)"
|
|
||||||
echo "restored size: $(du -sh /var/cache/apt/archives 2>/dev/null | cut -f1)"
|
|
||||||
date -u +'setup-php start: %H:%M:%S'
|
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
@@ -121,7 +63,7 @@ jobs:
|
|||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
|
|
||||||
- name: Cache Composer packages
|
- name: Cache Composer packages
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ~/.composer/cache
|
path: ~/.composer/cache
|
||||||
key: ${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
key: ${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
|
||||||
@@ -155,35 +97,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# setup-php installs PHP 8.3+ through php-builder, which apt-installs ~70
|
|
||||||
# -dev packages before unpacking the build (#178). Ubuntu's own image
|
|
||||||
# deletes the .debs after install, so every job re-downloads them from
|
|
||||||
# the archive. Keep them and restore them from the cache server, which
|
|
||||||
# lives in the cluster, turning a WAN download into a local one.
|
|
||||||
#
|
|
||||||
# The dep list is the same for every PHP version on the builder path, so
|
|
||||||
# one shared key serves them all. Only the .debs are cached, never
|
|
||||||
# /var/lib/apt/lists — a stale index is how you get 404s on install.
|
|
||||||
- name: Keep downloaded .debs
|
|
||||||
run: |
|
|
||||||
sudo rm -f /etc/apt/apt.conf.d/docker-clean
|
|
||||||
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' \
|
|
||||||
| sudo tee /etc/apt/apt.conf.d/99keep-downloaded-packages >/dev/null
|
|
||||||
|
|
||||||
- name: Cache apt packages
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /var/cache/apt/archives/*.deb
|
|
||||||
key: apt-php-builder-deps-${{ runner.arch }}-v1
|
|
||||||
|
|
||||||
# Temporary, for #178: shows whether the cache actually served the
|
|
||||||
# builder's dependencies, and times the step that consumes them.
|
|
||||||
- name: Report restored .debs
|
|
||||||
run: |
|
|
||||||
echo "restored .debs: $(ls /var/cache/apt/archives/*.deb 2>/dev/null | wc -l)"
|
|
||||||
echo "restored size: $(du -sh /var/cache/apt/archives 2>/dev/null | cut -f1)"
|
|
||||||
date -u +'setup-php start: %H:%M:%S'
|
|
||||||
|
|
||||||
- name: Setup PHP
|
- name: Setup PHP
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user