Skip to content

The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu

CI: give the collector-building jobs a cache key of their own

Claude719381b56a7a
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 93429b38..2afba1d1 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -443,9 +443,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
with:
+ # The exporter is listed because builder.yaml compiles it into the
+ # collector this job builds. Its go.sum both keys this job's module
+ # cache apart from the CLI-only jobs -- which otherwise win the same
+ # key and leave the collector tree uncached -- and prefetches the
+ # collector core with retries before the builder runs.
modules: |
cli/beacon
cli/beacon-hooks
+ collector-builder/exporter/beaconjsonexporter
- name: Build Linux beacon binary
working-directory: cli/beacon
run: make build-linux-amd64
@@ -473,9 +479,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
with:
+ # The exporter is listed because builder.yaml compiles it into the
+ # collector this job builds. Its go.sum both keys this job's module
+ # cache apart from the CLI-only jobs -- which otherwise win the same
+ # key and leave the collector tree uncached -- and prefetches the
+ # collector core with retries before the builder runs.
modules: |
cli/beacon
cli/beacon-hooks
+ collector-builder/exporter/beaconjsonexporter
- name: Build collector for Linux
run: |
go install go.opentelemetry.io/collector/cmd/[email protected]
@@ -556,9 +568,15 @@ jobs:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-go
with:
+ # The exporter is listed because builder.yaml compiles it into the
+ # collector this job builds. Its go.sum both keys this job's module
+ # cache apart from the CLI-only jobs -- which otherwise win the same
+ # key and leave the collector tree uncached -- and prefetches the
+ # collector core with retries before the builder runs.
modules: |
cli/beacon
cli/beacon-hooks
+ collector-builder/exporter/beaconjsonexporter
# Cheap, and it runs before anything is built: a syntax error in a packaging script would
# otherwise surface inside an MSI custom action, where what the user sees is a rollback.
diff --git a/.github/workflows/release-check.yml b/.github/workflows/release-check.yml
index fe8233d9..3d0f08c0 100644
--- a/.github/workflows/release-check.yml
+++ b/.github/workflows/release-check.yml
@@ -26,9 +26,15 @@ jobs:
fetch-depth: 0
- uses: ./.github/actions/setup-go
with:
+ # The exporter is listed because builder.yaml compiles it into the
+ # collector this job builds. Its go.sum both keys this job's module
+ # cache apart from the CLI-only jobs -- which otherwise win the same
+ # key and leave the collector tree uncached -- and prefetches the
+ # collector core with retries before the builder runs.
modules: |
cli/beacon
cli/beacon-hooks
+ collector-builder/exporter/beaconjsonexporter
- uses: goreleaser/goreleaser-action@v6
with:
# Keep formulas working until we intentionally migrate the tap to casks.