Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a3ee3b8cc | ||
|
|
77fb604d7e | ||
|
|
1b2b50304e |
No files matched your search
+6
-17
@@ -63,24 +63,13 @@ jobs:
|
|||||||
- /data/gitea-pages:/data/gitea-pages
|
- /data/gitea-pages:/data/gitea-pages
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# TEMPORARY (remove once understood): the image provably carries
|
# Fail fast when the job container is not the baked image: a stale
|
||||||
# the tool-cache entry (verified with `docker run --rm <image> ls
|
# tag on the runner (`forcePull=false` in its pull log) silently
|
||||||
# /opt/hostedtoolcache/node/26.8.2/x64/bin`), yet setup-node still
|
# reintroduces the per-job download. Mirrors the publish job's
|
||||||
# downloads. Print what the job container actually sees at
|
# NPM_TOKEN assert — cheap, and it names the invariant.
|
||||||
# runtime, mounts first — a mount over /opt/hostedtoolcache would
|
- name: Assert the baked tool cache is present
|
||||||
# hide the baked directory from the probe.
|
|
||||||
- name: Tool cache diagnostics
|
|
||||||
run: |
|
run: |
|
||||||
id
|
test -f "/opt/hostedtoolcache/node/$(tr -d '[:space:]' < .node-version)/x64.complete"
|
||||||
grep -E 'hostedtoolcache|workspace|overlay' /proc/mounts || true
|
|
||||||
ls -la /opt/hostedtoolcache || true
|
|
||||||
ls -la /opt/hostedtoolcache/node || true
|
|
||||||
ls -la "/opt/hostedtoolcache/node/$(tr -d '[:space:]' < .node-version)/" || true
|
|
||||||
test -f "/opt/hostedtoolcache/node/$(tr -d '[:space:]' < .node-version)/x64.complete" && echo MARKER-PRESENT || echo MARKER-MISSING
|
|
||||||
ls -la "/opt/hostedtoolcache/node/$(tr -d '[:space:]' < .node-version)/x64/bin" || true
|
|
||||||
"/opt/hostedtoolcache/node/$(tr -d '[:space:]' < .node-version)/x64/bin/node" -v || true
|
|
||||||
env | grep -iE 'RUNNER|TOOL|CACHE' || true
|
|
||||||
head -2 /etc/os-release
|
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version-file: .node-version
|
node-version-file: .node-version
|
||||||
|
|||||||
+7
-2
@@ -45,7 +45,12 @@ Maintenance:
|
|||||||
☐ Add a minimal dir-listing webserver to the gitea docker setup for serving landing page (reuse existing reverse proxy)
|
☐ Add a minimal dir-listing webserver to the gitea docker setup for serving landing page (reuse existing reverse proxy)
|
||||||
☐ CI writes landing page to a shared volume keyed by project + tag (e.g. `/landing/tiny-pattern-ts/<tag>/`)
|
☐ CI writes landing page to a shared volume keyed by project + tag (e.g. `/landing/tiny-pattern-ts/<tag>/`)
|
||||||
☐ Browse to `…/tiny-pattern-ts/index.html` in the browser
|
☐ Browse to `…/tiny-pattern-ts/index.html` in the browser
|
||||||
☐ Stop Gitea CI re-downloading Node on every job (branch chore/fix-ci)
|
✔ Stop Gitea CI re-downloading Node on every job @done
|
||||||
✔ Share the warm npm cache with the publish job @done
|
✔ Share the warm npm cache with the publish job @done
|
||||||
✔ Bake Node into the CI job image (docker/Dockerfile, container.image in ci.yml) @done
|
✔ Bake Node into the CI job image (docker/Dockerfile, container.image in ci.yml) @done
|
||||||
☐ Build/push gitea.e1nsnull.de/tmu/act-ci:26.8.2 and confirm setup-node skips the download (first run on the branch = acceptance test) @high
|
✔ Build/push gitea.e1nsnull.de/tmu/act-ci:26.8.2 and confirm setup-node skips the download @done
|
||||||
|
✔ Write the `<version>/x64.complete` marker — actions/tool-cache ignores a bare directory, so the probe missed and the download continued @done
|
||||||
|
✔ Log tool-cache state from the job container to find it (temporary, removed once understood) @done
|
||||||
|
✔ Guard the invariant in CI (`Assert the baked tool cache is present`) @done
|
||||||
|
☐ Enable force-pull for the runner so a changed act-ci image is never missed @low
|
||||||
|
→ the tag encodes only the Node version, so a Dockerfile change yields new content under an unchanged tag; with `forcePull=false` the runner keeps the old image (see CONTRIBUTING § CI runner image)
|
||||||
Reference in new issue
Block a user