← Catalogue

go_test

`go test`'s per-test `--- FAIL` marker, plus the assertion output printed under it.

gotesttoolmatcher

Open in playgroundFile on GitHubHistory

Install: ci-doctor matchers add official/go_test

matchers/go/go_test/matcher.yaml

id: go_testrole: toolclassification: [go, test]description: '`go test`''s per-test `--- FAIL` marker, plus the assertion output printed under it.'pattern: ^--- FAILbefore: 2after: 15

In bundles

allgo

Fixtures

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

go_test_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: go_test_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 go version
35go version
36go build ./...
37go test ./... -count=1
38shell: /usr/bin/bash -e {0}
39##[endgroup]
40go version go1.22.3 linux/amd64
41ok example.com/svc/internal/config 0.014s
42ok example.com/svc/internal/store 0.221s
43ok example.com/svc/internal/telemetry 0.008s
44ok example.com/svc/internal/httpx 0.052s
45ok example.com/svc/internal/queue 0.190s
46ok example.com/svc/internal/auth 0.077s
47--- FAIL: TestReconcile_DetectsDrift (0.00s)
48 reconcile_test.go:112: drift not detected
49 expected: []string{"replicas"}
50 actual: []string{}
51--- FAIL: TestReconcile_IgnoresManaged (0.00s)
52 reconcile_test.go:145: unexpected change for managed field "annotations"
53FAIL
54FAIL example.com/svc/internal/reconcile 0.038s
55ok example.com/svc/internal/api 0.101s
56FAIL
57##[error]Process completed with exit code 1.
58##[group]Post Run actions/checkout@v4
59##[endgroup]
60/usr/bin/git version
61git version 2.54.0
62##[group]Post Run actions/upload-artifact@v4
63##[endgroup]
64Artifact upload complete.
65Post job cleanup.
66Cleaning up orphan processes