← Catalogue

bazel

Bazel reporting that an action or target failed. A wrapper - the compiler or test output it relays is the cause.

anybuildwrappermatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/bazel

matchers/any/bazel/matcher.yaml

id: bazelrole: wrapperclassification: [any, build]description: Bazel reporting that an action or target failed. A wrapper - the compiler or test output it relays is the cause.pattern: '^ERROR: \S+:\d+:\d+: .*(failed|FAILED)|^FAILED: Build did NOT complete|^//\S+\s+FAILED in \d'before: 2after: 10

In bundles

allany

Fixtures

Framing stripped per provider. Highlighted lines are what this matcher selects; the marked line is the anchor.

bazel_build_failureOpen in playground

1Current runner version: '2.336.0'
2##[group]Operating System
3Ubuntu
424.04.4
5LTS
6##[endgroup]
7Secret source: Actions
8Prepare workflow directory
9Prepare all required actions
10Complete job name: bazel_build_failure
11##[group]Set up job
12Image: ubuntu-24.04
13Runner name: 'GitHub Actions 12'
14##[endgroup]
15Download action repository 'actions/checkout@v4'
16Download action repository 'actions/cache@v4'
17##[group]Run actions/checkout@v4
18 with:
19 fetch-depth: 20
20 lfs: false
21##[endgroup]
22Syncing repository: acme/ledger
23##[group]Getting Git version info
24Working directory is '/home/runner/work/ledger/ledger'
25##[endgroup]
26/usr/bin/git checkout --progress --force 8ad41f02
27##[group]Run actions/cache@v4
28 with:
29 path: ~/.cache
30 key: Linux-deps-8ad41f02
31##[endgroup]
32Received 41943040 of 41943040 (100.0%), 40.0 MBs/sec
33Cache restored from key: Linux-deps-8ad41f02
34##[group]Run bazel --version
35bazel --version
36bazel build //src/... --noshow_progress
37shell: /usr/bin/bash -e {0}
38##[endgroup]
39bazel 7.2.0
40Starting local Bazel server and connecting to it...
41INFO: Analyzed 42 targets (128 packages loaded, 4213 targets configured).
42INFO: Found 42 targets...
43ERROR: /builds/team/svc/src/render/BUILD.bazel:12:11: Compiling src/render/shader.cc failed: (Exit 1): gcc failed: error executing command
44src/render/shader.cc:57:19: error: 'GL_TEXTURE_2D_ARRAY' was not declared in this scope
45 57 | glBindTexture(GL_TEXTURE_2D_ARRAY, handle_);
46 | ^~~~~~~~~~~~~~~~~~~
47src/render/shader.cc:58:3: note: suggested alternative: 'GL_TEXTURE_2D'
48Target //src/render:render failed to build
49Use --verbose_failures to see the command lines of failed build steps.
50//src/render:shader_test FAILED in 0.4s
51INFO: Elapsed time: 41.882s, Critical Path: 12.44s
52INFO: 217 processes: 96 internal, 121 linux-sandbox.
53FAILED: Build did NOT complete successfully
54##[error]Process completed with exit code 1.
55##[group]Post Run actions/checkout@v4
56##[endgroup]
57/usr/bin/git version
58git version 2.54.0
59##[group]Post Run actions/upload-artifact@v4
60##[endgroup]
61Artifact upload complete.
62##[warning]bazel-bin/: no matching files. Ensure that the artifact path is relative to the working directory
63Post job cleanup.
64Cleaning up orphan processes