bazelbuild / buildtools

A bazel BUILD file formatter and editor
Apache License 2.0
1.02k stars 416 forks source link

[Bazel CI] Error with Jq buildozer/npm/package.json failed #1277

Closed sgowroji closed 2 months ago

sgowroji commented 3 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3973#01909085-36e1-46d6-8d7f-4ca4defcf6b5

Platform: MacOS

Logs:

ERROR: /Users/buildkite/builds/bk-macos-arm64-49d5/bazel-org-repo-root/buildtools/buildozer/npm/BUILD.bazel:43:21: Jq buildozer/npm/package.json failed: (Exit 126): bash failed: error executing Jq command (from target //buildozer/npm:package)
  (cd /private/var/tmp/_bazel_buildkite/f04129956e693ff6baf12be6084dbcb1/sandbox/darwin-sandbox/455/execroot/buildtools && \
  exec env - \
  /bin/bash -c 'external/jq_darwin_arm64/jq  '\''$ARGS.named.STAMP as $stamp|.version = ($stamp.BUILD_SCM_VERSION // "0.0.0")'\'' '\''buildozer/npm/package.json'\'' > bazel-out/darwin_arm64-fastbuild/bin/buildozer/npm/package.json')
# Configuration: 70803f24e9466ec67db9601dc634d2b3809c3a78b65048c40cd86c9103753870
# Execution platform: @@internal_platforms_do_not_use//host:host
Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
/bin/bash: external/jq_darwin_arm64/jq: Bad CPU type in executable
(06:07:18) INFO: Elapsed time: 35.466s, Critical Path: 6.84s
(06:07:18) INFO: 898 processes: 338 remote cache hit, 444 internal, 115 darwin-sandbox, 1 local.
(06:07:18) ERROR: Build did NOT complete successfully
STATUS
//buildozer/npm:integration_test                                FAILED TO BUILD

Culprit:

Steps:

 git clone https://github.com/bazelbuild/buildtools
git reset 80f1f6802857db4d74983ee7ffa0b83e2bbeeda4  --hard
export USE_BAZEL_VERSION=8a244ccb5bd484c45bec4446211bf95c32683ac9
bazel build //... 

CC Greenteam @comius

sgowroji commented 3 months ago

CC @vladmos

vladmos commented 2 months ago

Should be fixed now.

Attila421 commented 1 month ago

Incongnito history