mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 23:03:45 +01:00
Merge bitcoin/bitcoin#33887: doc: Improve CI docs on env and qemu-user-static
552eb90071doc: CI - Describe qemu-user-static usage (Hodlinator)2afbbddee5doc: CI - Clarify how important `env -i` is and why (Hodlinator) Pull request description: Should at least partially fix #31199 ACKs for top commit: maflcko: lgtm ACK552eb90071janb84: ACK552eb90071Tree-SHA512: 45807a61d805646384c8162501f432537b7e655aa01434766ffb90ea47da9532387a76fcccac7fe208ad77f4ea5573f60b9be09e1235b9493eaa8795e1d7fbdd
This commit is contained in:
15
ci/README.md
15
ci/README.md
@@ -28,8 +28,19 @@ 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,
|
||||
To run a test that requires emulating a CPU architecture different from the
|
||||
host, we may rely on the container environment recognizing foreign executables
|
||||
and automatically running them using `qemu`. The following sets us up to do so
|
||||
(also works for `podman`):
|
||||
|
||||
```
|
||||
docker run --rm --privileged docker.io/multiarch/qemu-user-static --reset -p yes
|
||||
```
|
||||
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user