Skip to content

Commit 2bf72bb

Browse files
authored
Run e2e tests on arm (open-telemetry#1965)
1 parent b9a7efe commit 2bf72bb

File tree

10 files changed

+26
-15
lines changed

10 files changed

+26
-15
lines changed

.github/workflows/kind.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,32 @@ on:
1010

1111
jobs:
1212
build-auto-instrumentation:
13-
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
runner: [ubuntu-latest, ubuntu-22.04-arm]
16+
runs-on: ${{ matrix.runner }}
1417
steps:
1518
- name: Checkout Repo
1619
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1720
- name: Build auto-instrumentation
1821
run: |
1922
IMG=otel-go-instrumentation:latest make docker-build
20-
docker save otel-go-instrumentation:latest -o otel-go-instrumentation.tar
23+
docker save otel-go-instrumentation:latest -o otel-go-instrumentation-${{ matrix.runner }}.tar
2124
- name: Upload Docker image artifact
2225
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
2326
with:
24-
name: otel-go-instrumentation
25-
path: otel-go-instrumentation.tar
27+
name: otel-go-instrumentation-${{ matrix.runner }}
28+
path: otel-go-instrumentation-${{ matrix.runner }}.tar
29+
2630
kubernetes-test:
2731
needs:
2832
- build-auto-instrumentation
2933
strategy:
3034
matrix:
3135
k8s-version: ["v1.26.0"]
3236
library: ["autosdk", "nethttp", "nethttp_custom", "gin", "databasesql", "grpc", "otelglobal", "kafka-go"]
33-
runs-on: ubuntu-latest
37+
runner: [ubuntu-latest, ubuntu-22.04-arm]
38+
runs-on: ${{ matrix.runner }}
3439
steps:
3540
- name: Checkout Repo
3641
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -58,10 +63,10 @@ jobs:
5863
- name: Download Docker image artifact
5964
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4
6065
with:
61-
name: otel-go-instrumentation
66+
name: otel-go-instrumentation-${{ matrix.runner }}
6267
- name: Load Docker image
6368
run: |
64-
docker load -i otel-go-instrumentation.tar
69+
docker load -i otel-go-instrumentation-${{ matrix.runner }}.tar
6570
- name: Kind load images
6671
run: |
6772
kind load docker-image otel-go-instrumentation --name chart-testing

internal/test/e2e/autosdk/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/databasesql/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/gin/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/grpc/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/kafka-go/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/nethttp/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/nethttp_custom/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/e2e/otelglobal/traces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
{
77
"key": "process.runtime.description",
88
"value": {
9-
"stringValue": "go version 1.24.1 linux/amd64"
9+
"stringValue": "go version 1.24.1 linux/VALID_ARCH"
1010
}
1111
},
1212
{

internal/test/test_helpers/utilities.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ redact_json() {
161161
end
162162
| .resourceSpans[].scopeSpans|=sort_by(.scope.name)
163163
| .resourceSpans[].scopeSpans[].spans|=sort_by(.kind)
164+
| .resourceSpans[].resource.attributes[]? |= if
165+
(.key == "process.runtime.description") then
166+
.value.stringValue |= sub("amd64|arm64"; "VALID_ARCH")
167+
else
168+
.
169+
end
164170
' > ${BATS_TEST_DIRNAME}/traces.json
165171
}
166172

0 commit comments

Comments
 (0)