Compare commits

...
Author SHA1 Message Date
argoyle f63752ba66 Merge branch 'main' into fix/goreleaser-gitea-url
schemas / vulnerabilities (pull_request) Waiting to run
schemas / check (pull_request) Waiting to run
schemas / check-release (pull_request) Waiting to run
schemas / build (pull_request) Waiting for needed jobs
pre-commit / pre-commit (pull_request) Waiting to run
2026-10-07 19:25:48 +00:00
argoyle 7d2773f6a1 fix(monitoring): use otel.SetLoggerProvider (#998)
schemas / vulnerabilities (push) Waiting to run
schemas / check-release (push) Waiting to run
schemas / check (push) Waiting to run
pre-commit / pre-commit (push) Waiting to run
Release / release (push) Blocked by required conditions
Unbound Release / Check Preconditions (push) Blocked by required conditions
opentelemetry-go v1.47.0 (#990) deprecates `go.opentelemetry.io/otel/log/global`. staticcheck SA1019 in `golangci-lint-full` now fails pre-commit on every PR (e.g. #997).

Swap `global.SetLoggerProvider` for `otel.SetLoggerProvider` and drop the import. `go mod tidy` marks `otel/log` indirect. Locally: `golangci-lint-full` passed, `go test ./...` passed.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01Ma8eHhW59hLAJuLzBnLvUu
Reviewed-on: #998
2026-10-07 19:25:32 +00:00
argoyleandClaude Opus 5.5 3921de91a6 ci: run goreleaser without the runner's GOCACHEPROG
schemas / vulnerabilities (pull_request) Successful in 3m32s
schemas / check (pull_request) Successful in 5m5s
schemas / check-release (pull_request) Successful in 5m12s
pre-commit / pre-commit (pull_request) Failing after 11m14s
schemas / build (pull_request) Successful in 15m19s
schemas / deploy-prod (pull_request) Skipped
goreleaser runs several go builds at once; each spawns its own gobuildcache,
and they time out on its per-entry file locks while one holds the lock
across a slow S3 call ('failed to acquire lock: context deadline exceeded',
check-release on #997). Use Go's local cache for goreleaser.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ma8eHhW59hLAJuLzBnLvUu
2026-10-07 16:57:18 +02:00
argoyleandClaude Opus 5.5 00160e172d fix: release to the Gitea API on its public URL
schemas / vulnerabilities (pull_request) Successful in 2m9s
schemas / check-release (pull_request) Failing after 3m3s
schemas / check (pull_request) Successful in 4m8s
schemas / build (pull_request) Skipped
schemas / deploy-prod (pull_request) Skipped
pre-commit / pre-commit (pull_request) Failing after 13m43s
schemas / check (push) Skipped
schemas / vulnerabilities (push) Skipped
schemas / check-release (push) Skipped
schemas / build (push) Skipped
pre-commit / pre-commit (push) Skipped
goreleaser's gitea_urls.api still pointed at the AWS in-cluster service (gitea-http.gitea.svc.cluster.local), which does not resolve from the Frostmoln runner. Use https://git.unbound.se/api/v1. Also drop RELEASE_TOKEN_FILE=/runner-secrets/release-token (the AWS runner mount); the Frostmoln runner exports RELEASE_TOKEN_FILE itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ma8eHhW59hLAJuLzBnLvUu
2026-10-07 16:13:23 +02:00
5 changed files with 11 additions and 10 deletions

No files matched your search

+6 -2
View File
@@ -61,11 +61,15 @@ jobs:
with:
version: '~> v2'
args: check
- name: Test release build
- name: Install goreleaser
uses: goreleaser/goreleaser-action@v7
with:
version: '~> v2'
args: release --snapshot --clean
install-only: true
# Without the runner's GOCACHEPROG (gobuildcache): goreleaser's parallel
# go builds contend for its per-entry locks and time out.
- name: Test release build
run: env -u GOCACHEPROG goreleaser release --snapshot --clean
build:
needs: [check, vulnerabilities, check-release]
+2 -4
View File
@@ -5,9 +5,6 @@ on:
tags:
- 'v*'
env:
RELEASE_TOKEN_FILE: /runner-secrets/release-token
jobs:
release:
runs-on: ubuntu-latest
@@ -30,4 +27,5 @@ jobs:
run: |
GITEA_TOKEN=$(cat "${RELEASE_TOKEN_FILE}")
export GITEA_TOKEN
goreleaser release --clean
# Without GOCACHEPROG: parallel builds contend for gobuildcache's locks.
env -u GOCACHEPROG goreleaser release --clean
+1 -1
View File
@@ -2,7 +2,7 @@ project_name: unbound-schemas
version: 2
gitea_urls:
api: http://gitea-http.gitea.svc.cluster.local:3000/api/v1
api: https://git.unbound.se/api/v1
download: https://gitea.unbound.se
env:
+1 -1
View File
@@ -26,7 +26,6 @@ require (
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp v1.47.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.47.0
go.opentelemetry.io/otel/exporters/stdout/stdoutlog v0.23.0
go.opentelemetry.io/otel/log v1.47.0
go.opentelemetry.io/otel/sdk v1.47.0
go.opentelemetry.io/otel/sdk/log v1.47.0
go.opentelemetry.io/otel/sdk/metric v1.47.0
@@ -81,6 +80,7 @@ require (
github.com/wundergraph/go-arena v1.3.0 // indirect
go.opentelemetry.io/auto/sdk v1.2.1 // indirect
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.47.0 // indirect
go.opentelemetry.io/otel/log v1.47.0 // indirect
go.opentelemetry.io/otel/metric v1.47.0 // indirect
go.opentelemetry.io/proto/otlp v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
+1 -2
View File
@@ -12,7 +12,6 @@ import (
"go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp"
"go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp"
"go.opentelemetry.io/otel/exporters/stdout/stdoutlog"
"go.opentelemetry.io/otel/log/global"
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/sdk/log"
"go.opentelemetry.io/otel/sdk/metric"
@@ -75,7 +74,7 @@ func SetupOTelSDK(ctx context.Context, enabled bool, serviceName, buildVersion,
processor := log.NewSimpleProcessor(logExporter)
logProvider := log.NewLoggerProvider(log.WithProcessor(processor))
global.SetLoggerProvider(logProvider)
otel.SetLoggerProvider(logProvider)
shutdownFuncs = append(shutdownFuncs, logProvider.Shutdown)
exp, err := otlpmetrichttp.New(ctx)