Skip to content

Commit 39a33d3

Browse files
authored
Remove Hard-Coded ADOT Java Branch Name from Perf Test Workflow (#447)
This PR makes two changes: Removes the hard-coded ADOT Java branch name, allowing the perf test workflow to run against any ADOT Java branch dynamically. Adds logging for the ADOT Java branch name and commit SHA.
1 parent 3f8a5b6 commit 39a33d3

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/java-lambda-layer-perf-test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ on:
1515
description: 'The Java version to run the test'
1616
required: true
1717
default: '17'
18+
type: string
19+
20+
ADOT-Java-Branch:
21+
description: 'ADOT Java branch to use'
22+
required: true
23+
default: 'release/v2.11.x'
1824
type: string
1925

2026
jobs:
@@ -38,9 +44,15 @@ jobs:
3844
uses: actions/checkout@v4
3945
with:
4046
repository: aws-observability/aws-otel-java-instrumentation
41-
ref: release/v1.33.x
47+
ref: ${{ github.event.inputs.ADOT-Java-Branch }}
4248
path: aws-otel-java-instrumentation
4349

50+
- name: Log branch and commit info
51+
run: |
52+
cd aws-otel-java-instrumentation
53+
echo "ADOT Java Branch: ${{ github.event.inputs.ADOT-Java-Branch }}"
54+
echo "ADOT Java Commit Hash: $(git rev-parse HEAD)"
55+
4456
- name: Setup Terraform
4557
uses: hashicorp/setup-terraform@v2
4658

0 commit comments

Comments
 (0)