ci: cut the Lint and Build fast-path network by environment #408

Merged
Defame1297 merged 4 commits from ci/168-offline-fast-path into main 2026-11-27 07:38:18 +00:00
3 changed files with 7 additions and 5 deletions
Showing only changes of commit 7c148e858d - Show all commits

No files matched your search

+3 -2
View File
@@ -60,8 +60,9 @@ issue.
- **On the fast path the tool steps run in a network namespace without network** (`unshare -rn`
through `$OFFLINE`), except "Test the repository scripts", whose fake registry needs loopback;
the slow path keeps network. *Why:* a runtime download is a bake-in defect and must fail the
job, not silently slow it. *Held:* control: the `$OFFLINE` prefix set by the "Check the baked
tooling against the pins" step.
job, not silently slow it. *Held:* control for the steps that carry the `$OFFLINE` prefix set
by the "Check the baked tooling against the pins" step; review that every new tool step
carries it.
- **Triggers:** both run on pull requests to `main` and on manual dispatch; Build also runs on
`v*` tags, where it checks the tag against `galaxy.yml`. *Why:* the tag is what consumers
install. *Held:* review.
+2 -2
View File
@@ -66,8 +66,8 @@ Read `.gitea/workflows/molecule.yml` for the full command.
`/opt/ci-pins.sha256` lists the five pin files by their checkout-relative path, so `sha256sum -c` runs in the checkout root. When
the checkout's `requirements-dev.txt`, `requirements-dev.lock`, `requirements.yml`, `extensions/molecule/requirements.yml` and `.pre-commit-config.yaml` match, the baked tools and
collections are used as they are, and Lint and Build run their tools without network, so a tool that
downloads at run time fails the job. When a pull request changes a pin the check fails and the job installs the pinned
collections are used as they are, and Lint and Build run their tools (all but the script tests) without
network, so a tool that downloads at run time fails the job. When a pull request changes a pin the check fails and the job installs the pinned
tools and collections itself for that run
(slower, same result), until the image is rebuilt from `main`. `lint.yml`, `build.yml`, `molecule.yml` and `gitea-release-key.yml`
are the real consumers.
+2 -1
View File
@@ -63,7 +63,8 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
image; a job downloads at run time only on the slow path (a pull request that changes a pin
file). *Why:* a run that downloads is slower and depends on the network. *Held:* control: on
the fast path the Lint and Build tool steps run without network, so a download fails the job;
review for the script tests, which keep network, and for Molecule.
review for a new tool step without the prefix, for the script tests, which keep network, and
for Molecule.
- **Recorded speed:** a speed optimisation that adds machinery states its measured saving where
it lives (a comment next to it). *Why:* machinery is kept only for a saving someone can check.
*Held:* review.