docs(agents): never use Python; tests and guards use bash and jq #207
Loading…
Reference in a new issue
No description provided.
Delete branch "sean/never-python"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Python is present in these images whether anyone asks or not: on AlmaLinux 10 dnf IS Python (/usr/bin/dnf is a symlink to dnf-3, dnf5 is not packaged for this release), so the interpreter and fourteen python3 rpms arrive with the package manager. Measured: elixir-builder:v2 answers python3 3.12.13 although no line in its Dockerfile installs it. Its presence is not permission. The cost is start-up and it compounds: over 200 iterations python3 starts in 18 ms, 21 ms once it imports json/os/sys/urllib, against 2.7 ms for jq -- 7.6 times. One test file starts its Python fake-mc fixture 2,806 times in a single run, counted by instrumenting the fixture; at 21 ms that is about 59 seconds of interpreter start-up inside a 112-second test, and most of the 69 seconds of CPU it costs. Tests, guards and fixtures use bash and jq. https://claude.ai/code/session_01KZoQin34jeyt6nDGqvJA76