Make hook tests use environment variables

Passed in 34m 13s
:pipeline:curl -sS "https://raw.githubusercontent.com/bazelbuild/continuous-integration/master/buildkite/bazelci.py?$(date +%s)" -o bazelci.py && python3.6 bazelci.py project_pipeline | tee /dev/tty | buildkite-agent pipeline upload
Waited 4s
·
Ran in 8s
Buildifier
Waited 3s
·
Ran in 9s
Current LTS on :mac: macOS arm64curl -sS https://raw.githubusercontent.com/bazelbuild/continuous-integration/master/buildkite/bazelci.py?1739359310 -o bazelci.py && python3 bazelci.py runner --task=macos_latest
Waited 10s
·
Ran in 31m 31s
Last RC Bazel on :mac: macOS arm64curl -sS https://raw.githubusercontent.com/bazelbuild/continuous-integration/master/buildkite/bazelci.py?1739359310 -o bazelci.py && python3 bazelci.py runner --task=macos_last_rc
Waited 1s
·
Ran in 19m 18s
Last Green Bazel on :mac: macOS arm64curl -sS https://raw.githubusercontent.com/bazelbuild/continuous-integration/master/buildkite/bazelci.py?1739359310 -o bazelci.py && python3 bazelci.py runner --task=macos_last_green
Waited 3s
·
Ran in 34m 2s
Doc tests on :ubuntu: Ubuntu 20.04 LTScurl -sS https://raw.githubusercontent.com/bazelbuild/continuous-integration/master/buildkite/bazelci.py?1739359310 -o bazelci.py && python3.8 bazelci.py runner --task=doc_tests
Waited 5s
·
Ran in 30s
Total Job Run Time: 1h 25m