doc: CI - Clarify how important env -i is and why

Would hopefully have helped me in this case: https://github.com/bitcoin/bitcoin/pull/31176#issuecomment-2526410039
Since then however, fd813bf863 also made sure a minimal environment is used.
This commit is contained in:
Hodlinator
2025-11-18 14:01:05 +01:00
parent c03081fdb4
commit 2afbbddee5

View File

@@ -28,8 +28,10 @@ the CI locally you may need to reduce that entropy by running:
sudo sysctl -w vm.mmap_rnd_bits=28
```
It is recommended to run the ci system in a clean env. To run the test stage
with a specific configuration,
It is recommended to run the CI system in a clean environment. The `env -i`
command below ensures that *only* specified environment variables are propagated
into the local CI.
To run the test stage with a specific configuration:
```
env -i HOME="$HOME" PATH="$PATH" USER="$USER" bash -c 'FILE_ENV="./ci/test/00_setup_env_arm.sh" ./ci/test_run_all.sh'