ci: cut the fast-path network by environment, not unshare
The runner's job container refuses unshare, even with a user namespace, so the fast path sets PIP_NO_INDEX and a dead proxy instead; a raw socket is not caught. Assisted-by: Claude Code
This commit is contained in:
1 parent
7c148e858d
commit
4d5042a31f
5 files changed
+35
-28
No files matched your search
+3
-3
@@ -62,9 +62,9 @@ it to this repository's organisation in the Gitea registry as `<version>` and `l
|
||||
- **Bake in:** every tool, collection, hook environment and package a CI job uses is in its
|
||||
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 a new tool step without the prefix, for the script tests, which keep network, and
|
||||
for Molecule.
|
||||
the fast path Lint and Build cut the network by environment, so a download through pip or a
|
||||
proxy-honouring client fails the job; review for a raw socket, 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.
|
||||
|
||||
Reference in new issue
Block a user