bazelbuild / continuous-integration

Bazel's Continuous Integration Setup
https://buildkite.com
Apache License 2.0
259 stars 136 forks source link

[Bazel CI] Error creating google cloud storage client: google could not find default credentials. #1948

Open sgowroji opened 6 months ago

sgowroji commented 6 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3826#018f3254-f257-41a2-8c5e-350b2a74de4f

Platform: Ubuntu

Logs:

2024-05-01 04:43:26 ERROR  Failed to download artifact: Error creating Google Cloud Storage client: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
2024-05-01 04:43:26 FATAL  Failed to download artifacts: There were errors with downloading some of the artifacts
Traceback (most recent call last):
  File "bazelci.py", line 4434, in <module>
    sys.exit(main())
  File "bazelci.py", line 4402, in main
    execute_commands(
  File "bazelci.py", line 1272, in execute_commands
    os.environ["USE_BAZEL_VERSION"] = download_bazel_binary(tmpdir, binary_platform)
  File "bazelci.py", line 1687, in download_bazel_binary
    return download_binary(dest_dir, platform, binary_name)
  File "bazelci.py", line 1676, in download_binary
    execute_command(
  File "bazelci.py", line 2709, in execute_command
    return subprocess.run(
  File "/usr/lib/python3.8/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['buildkite-agent', 'artifact', 'download', 'bazel', '/tmp/tmpaoaeb44k', '--step', 'Build Bazel (:centos: CentOS 7)']' returned non-zero exit status 1.
🚨 Error: The command exited with status 1

CC Greenteam @salmasamy

Wyverald commented 6 months ago

@fweikert This seems to happen on Windows arm64 and Linux arm64 only. Not sure what's happening there

meteorcloudy commented 3 months ago

We don't have GCP access on those platforms.