Skip to content

Commit f0a9362

Browse files
authored
Merge branch 'aws-cwa-dev' into dependabot/go_modules/extension/azureauthextension/golang.org/x/crypto-0.45.0
2 parents 5f17130 + 6c0c5d9 commit f0a9362

File tree

12 files changed

+63
-15
lines changed

12 files changed

+63
-15
lines changed

.github/workflows/build-and-test-arm.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ jobs:
5050
runs-on: otel-linux-arm64
5151
steps:
5252
- uses: actions/checkout@v4
53+
- run: ./.github/workflows/scripts/free-disk-space.sh
5354
- uses: actions/setup-go@v5
5455
with:
5556
go-version: "1.24.9"
@@ -87,3 +88,4 @@ jobs:
8788
echo "One or more matrix jobs failed."
8889
false
8990
fi
91+
- run: ./.github/workflows/scripts/check-disk-space.sh

.github/workflows/build-and-test-windows.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
GOMEMLIMIT: 2GiB
5757
steps:
5858
- uses: actions/checkout@v4
59+
- run: ./.github/workflows/scripts/free-disk-space.sh
5960
- name: install IIS
6061
run: Install-WindowsFeature -name Web-Server -IncludeManagementTools
6162
- uses: actions/setup-go@v5

.github/workflows/build-and-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
if: ${{ github.actor != 'dependabot[bot]' }}
2626
steps:
2727
- uses: actions/checkout@v4
28+
- run: ./.github/workflows/scripts/free-disk-space.sh
2829
- uses: actions/setup-go@v5
2930
with:
3031
go-version: "1.24.9"
@@ -45,6 +46,7 @@ jobs:
4546
- name: Install Tools
4647
if: steps.go-cache.outputs.cache-hit != 'true'
4748
run: make install-tools
49+
- run: ./.github/workflows/scripts/check-disk-space.sh
4850
check-collector-module-version:
4951
runs-on: ubuntu-latest
5052
needs: [setup-environment]
@@ -82,6 +84,7 @@ jobs:
8284
needs: [setup-environment]
8385
steps:
8486
- uses: actions/checkout@v4
87+
- run: ./.github/workflows/scripts/free-disk-space.sh
8588
- uses: actions/setup-go@v5
8689
with:
8790
go-version: "1.24.9"
@@ -109,6 +112,7 @@ jobs:
109112
key: go-lint-build-${{ matrix.group }}-${{ runner.os }}-${{ hashFiles('**/go.sum') }}
110113
- name: Lint
111114
run: GOOS=${{ matrix.goos }} GOARCH=amd64 make -j2 golint GROUP=${{ matrix.group }}
115+
- run: ./.github/workflows/scripts/check-disk-space.sh
112116
lint:
113117
if: ${{ github.actor != 'dependabot[bot]' && always() }}
114118
runs-on: ubuntu-latest
@@ -301,6 +305,7 @@ jobs:
301305
with:
302306
name: coverage-artifacts-${{ matrix.go-version }}-${{ matrix.runner }}-${{ matrix.group }}
303307
path: ${{ matrix.group }}-coverage.txt
308+
- run: ./.github/workflows/scripts/check-disk-space.sh
304309
unittest:
305310
if: ${{ github.actor != 'dependabot[bot]' && always() }}
306311
runs-on: ubuntu-latest
@@ -450,9 +455,11 @@ jobs:
450455
needs: [setup-environment]
451456
steps:
452457
- uses: actions/checkout@v4
458+
- run: ./.github/workflows/scripts/free-disk-space.sh
453459
- run: make genotelcontribcol
454460
- name: Build Examples
455461
run: make build-examples
462+
- run: ./.github/workflows/scripts/check-disk-space.sh
456463

457464
cross-compile:
458465
runs-on: ubuntu-latest
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright The OpenTelemetry Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
declare BASELINE_SPACE
7+
8+
free_space=$(df -m / | tail -1 | awk '{print $4}')
9+
used_space=$((BASELINE_SPACE - free_space))
10+
echo "Job used $used_space MiB of disk space, $free_space MiB remain."
11+
if [ "$used_space" -gt 14336 ]; then
12+
echo "WARNING: The amount of space used exceeds the 14 GiB guaranteed by Github."
13+
fi
14+
if [ "$free_space" -lt 1024 ]; then
15+
echo "WARNING: The amount of space remaining is dangerously low."
16+
# TODO: Make this warning more visible
17+
fi
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright The OpenTelemetry Authors
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
contrib_dir="$(dirname -- "$0")/../../.."
7+
initial_checkout_size=$(du -sm "$contrib_dir" 2>/dev/null | cut -f1 || echo "0")
8+
space_before_cleanup=$(df -m / | tail -1 | awk '{print $4}')
9+
10+
# The Android SDK is the biggest culprit for the lack of disk space in CI.
11+
# It is installed into /usr/local/lib/android manually (ie. not with apt) by this script:
12+
# https://github.com/actions/runner-images/blob/main/images/ubuntu/scripts/build/install-android-sdk.sh
13+
14+
echo "Deleting unused Android SDK and tools..."
15+
if [ -d "/usr/local/lib/android" ]; then
16+
sudo rm -rf /usr/local/lib/android
17+
else
18+
echo "Android SDK directory not found, skipping cleanup"
19+
fi
20+
21+
free_space=$(df -m / | tail -1 | awk '{print $4}')
22+
freed_space=$((free_space - space_before_cleanup))
23+
echo "Freed ${freed_space} MiB of disk space."
24+
25+
# Hypothetical free space with the cleanup but without checkout
26+
baseline_space=$((free_space + initial_checkout_size))
27+
echo "BASELINE_SPACE=${baseline_space}" >> "$GITHUB_ENV"

receiver/awscontainerinsightreceiver/internal/nvme/nvme_lis_scraper_config.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ func getLisMetricRelabelConfig(hostInfoProvider hostInfoProvider) []*relabel.Con
6565
Regex: relabel.MustNewRegexp(".*_bucket|.*_sum|.*_count.*"),
6666
Action: relabel.Drop,
6767
},
68-
// Below metrics are NVMe data collection metrics which are not supported to maintain parity with EBS NVMe metrics
69-
{
70-
SourceLabels: model.LabelNames{"__name__"},
71-
Regex: relabel.MustNewRegexp(".*_nvme_collector_.*"),
72-
Action: relabel.Drop,
73-
},
7468
// Inject static values (clusterName/instanceId/nodeName/volumeID)
7569
{
7670
SourceLabels: model.LabelNames{"instance_id"},

receiver/snowflakereceiver/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ require (
5252
github.com/cespare/xxhash/v2 v2.3.0 // indirect
5353
github.com/danieljoos/wincred v1.2.2 // indirect
5454
github.com/davecgh/go-spew v1.1.1 // indirect
55-
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
55+
github.com/dvsekhvalnov/jose2go v1.7.0 // indirect
5656
github.com/gabriel-vasile/mimetype v1.4.7 // indirect
5757
github.com/go-logr/logr v1.4.2 // indirect
5858
github.com/go-logr/stdr v1.2.2 // indirect

receiver/snowflakereceiver/go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

receiver/sqlqueryreceiver/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ go 1.24.9
44

55
require (
66
github.com/docker/go-connections v0.5.0
7+
github.com/dvsekhvalnov/jose2go v1.7.0 // indirect
78
github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage v0.124.1
89
github.com/open-telemetry/opentelemetry-collector-contrib/internal/coreinternal v0.124.1
910
github.com/open-telemetry/opentelemetry-collector-contrib/internal/sqlquery v0.124.1
@@ -79,7 +80,6 @@ require (
7980
github.com/distribution/reference v0.6.0 // indirect
8081
github.com/docker/docker v28.3.3+incompatible // indirect
8182
github.com/docker/go-units v0.5.0 // indirect
82-
github.com/dvsekhvalnov/jose2go v1.6.0 // indirect
8383
github.com/ebitengine/purego v0.8.2 // indirect
8484
github.com/elastic/lunes v0.1.0 // indirect
8585
github.com/expr-lang/expr v1.17.2 // indirect

receiver/sqlqueryreceiver/go.sum

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)