mesa/.gitlab-ci
Guilherme Gallo 2d75fd1e0a virgl/ci: make crosvm-runner pass variables in a secure way
crosvm-runner.sh was using `export -p` to create an environment script
for the virtualized system, but this command will dump every declared
environment variable in the system, which includes Gitlab's CI variables
with sensitive data, such as passwords and auth tokens.

Replacing `export -p` to `generate-env.sh`, which only exports the
necessary variables for Mesa CI jobs.

Extra changes:

* Stop changing ${PWD} variable programmatically in scripts. ${PWD} is a
variable used by most prolific coreutils and bash commands, such as `cd`
and `pwd`, besides it is set by subshells [1]; changing this variable
may lead to complex situations.
As drop-in replacement for ${PWD}, use ${DEQP_BIN_DIR} to flag that
there is a special folder where dEQP should be run.
* Double quote path and array variables. See: https://github.com/koalaman/shellcheck/wiki/SC2086
* Do not export variables directly from commands output. See: https://github.com/koalaman/shellcheck/wiki/SC2155

[1]
```
$ cd /tmp
$ export PWD=test; bash -c 'echo $PWD'
/tmp
```

v2:
- Revert $DEQP_BIN_DIR quoting in crosvm-runner.sh and crosvm-init.sh
- Log all the passed variables to stdout, to help with debugging when
  new variable are needed to be put in `generate-env.sh`

v3:
- Revert $DEQP_BIN_DIR quoting leftovers

Signed-off-by: Guilherme Gallo <guilherme.gallo@collabora.com>
Reviewed-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14626>
2022-01-27 18:28:48 +00:00
..
bare-metal gitlab-ci: detect a3xx gpu hang recovery failure 2021-12-03 23:26:27 +00:00
common virgl/ci: make crosvm-runner pass variables in a secure way 2022-01-27 18:28:48 +00:00
container ci: Uprev Kernel to v5.16 2022-01-19 20:14:42 +00:00
fossils
lava ci/traces: Drop PIGLIT_REPLAY_UPLOAD_TO_MINIO. 2022-01-27 04:37:16 +00:00
meson classic/i965: Remove driver 2021-12-03 23:53:06 +00:00
piglit ci/traces: Always generate the junit XML. 2022-01-27 04:37:16 +00:00
vkd3d-proton ci: build the hang-detection tool into x86_test-vk 2021-06-02 16:30:57 +00:00
windows ci/windows: Use 2 container stages 2022-01-21 22:38:16 +00:00
all-skips.txt ci: move windowoverlap exclusion to all-skips 2021-11-29 18:08:49 -05:00
cross-xfail-ppc64el
cross-xfail-s390x llvmpipe: Use lp_build_round_arch on IBM Z (s390x) 2021-11-23 17:49:02 +00:00
crosvm-init.sh virgl/ci: make crosvm-runner pass variables in a secure way 2022-01-27 18:28:48 +00:00
crosvm-runner.sh virgl/ci: make crosvm-runner pass variables in a secure way 2022-01-27 18:28:48 +00:00
deqp-runner.sh ci: Don't set GALLIVM_PERF in the scripts 2021-11-18 13:36:24 +00:00
docs
download-git-cache.sh
fossilize-runner.sh
fossils.yml
gtest-runner.sh ci: Enable testing radeonsi's libva using libva-util unit tests. 2021-10-28 23:17:19 +00:00
image-tags.yml ci/windows: Use 2 container stages 2022-01-21 22:38:16 +00:00
prepare-artifacts.sh ci: Use ci-fairy minio login via token file 2021-12-02 18:01:29 +00:00
report-flakes.py ci: Add known-flake handling for the IRC flake reports 2021-06-01 20:31:00 +00:00
run-shader-db.sh
skqp-runner.sh ci: Build skqp on ARM64 images 2022-01-05 20:15:04 +00:00
test-source-dep.yml ensure csv-files are crlf on disk 2022-01-16 08:39:44 +00:00
x86_64-w64-mingw32