From 778a06b5b481a3602b7fdd10e7444d83f7b5bc5b Mon Sep 17 00:00:00 2001 From: Josue Giron Date: Sat, 21 Nov 2026 19:50:24 +0000 Subject: [PATCH] ci: test otel against the log in the same commit Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8973f01..a90d97c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,3 +43,13 @@ jobs: - name: govulncheck (otel) working-directory: otel run: go run golang.org/x/vuln/cmd/govulncheck@v1.10.0 ./... + # The steps above test otel against the published log it requires. This + # one tests it against the log in this commit, so a root change that + # breaks otel fails here instead of at the next otel release. The replace + # exists only in the CI checkout; never commit it. + - name: test (otel against this commit's log) + working-directory: otel + run: | + go mod edit -replace github.com/jgolang/log=../ + go mod tidy + go test -race ./...