@@ -70,34 +70,16 @@ jobs:
70
70
with :
71
71
registry : public.ecr.aws
72
72
73
- - name : Setup and Run OTel Collector
74
- run : |
75
- docker-compose -f .github/collector/docker-compose.yml up &
76
- env :
77
- ACCESS_KEY : ${{ secrets.AWS_ACCESS_KEY_ID }}
78
- SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
79
-
80
- - name : Run Springboot App with Java agent
81
- run : |
82
- docker run -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} -e AWS_REGION=us-west-2 -e INSTANCE_ID=${{ github.run_id }}-${{ github.run_number }} -e LISTEN_ADDRESS=0.0.0.0:8080 -e OTEL_RESOURCE_ATTRIBUTES="service.name=aws-otel-integ-test" -e OTEL_EXPORTER_OTLP_ENDPOINT=http://172.17.0.1:4317 -p 8080:8080 public.ecr.aws/u0d6r4y4/aws-otel-java-test-springboot:${{ github.sha }} &
83
-
84
- - name : Directory to checkout test framework
85
- run : mkdir test-framework
86
-
87
- - name : Checkout test framework
88
- uses : actions/checkout@v2
89
- with :
90
- repository : aws-observability/aws-otel-test-framework
91
- ref : terraform
92
- path : test-framework
93
-
94
- - name : Run testing suite
95
- run : ./gradlew :validator:run --args='-c springboot-otel-trace-metric-validation.yml --endpoint http://127.0.0.1:8080 --metric-namespace aws-otel-integ-test -t ${{ github.run_id }}-${{ github.run_number }}'
73
+ - name : Run test containers
74
+ run : docker-compose up --abort-on-container-exit
75
+ working-directory : .github/collector
96
76
env :
97
77
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
98
78
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
99
- AWS_REGION : us-west-2
100
- working-directory : test-framework
79
+ INSTANCE_ID : ${{ github.run_id }}-${{ github.run_number }}
80
+ LISTEN_ADDRESS : 0.0.0.0:8080
81
+ APP_IMAGE : public.ecr.aws/u0d6r4y4/aws-otel-java-test-springboot:${{ github.sha }}
82
+ VALIDATOR_COMMAND : -c springboot-otel-trace-metric-validation.yml --endpoint http://app:8080 --metric-namespace aws-otel-integ-test -t ${{ github.run_id }}-${{ github.run_number }}
101
83
102
84
test_Spark_App_With_Java_Agent :
103
85
name : Test Spark App with AWS OTel Java agent
@@ -122,31 +104,13 @@ jobs:
122
104
id : login-ecr
123
105
uses : aws-actions/amazon-ecr-login@v1
124
106
125
- - name : Setup and Run OTel Collector
126
- run : |
127
- docker-compose -f .github/collector/docker-compose.yml up &
128
- env :
129
- ACCESS_KEY : ${{ secrets.AWS_ACCESS_KEY_ID }}
130
- SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
131
-
132
- - name : Run Spark App with Java agent
133
- run : |
134
- docker run -e AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} -e AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} -e AWS_REGION=us-west-2 -e INSTANCE_ID=${{ github.run_id }}-${{ github.run_number }} -e LISTEN_ADDRESS=0.0.0.0:4567 -e OTEL_EXPORTER_OTLP_ENDPOINT=http://172.17.0.1:4317 -e OTEL_RESOURCE_ATTRIBUTES="service.name=aws-otel-integ-test" -p 4567:4567 public.ecr.aws/u0d6r4y4/aws-otel-java-test-spark:${{ github.sha }} &
135
-
136
- - name : Directory to checkout test framework
137
- run : mkdir test-framework
138
-
139
- - name : Checkout test framework
140
- uses : actions/checkout@v2
141
- with :
142
- repository : aws-observability/aws-otel-test-framework
143
- ref : terraform
144
- path : test-framework
145
-
146
- - name : Run testing suite
147
- run : ./gradlew :validator:run --args='-c spark-otel-trace-metric-validation.yml --endpoint http://127.0.0.1:4567 --metric-namespace aws-otel-integ-test -t ${{ github.run_id }}-${{ github.run_number }}'
107
+ - name : Run test containers
108
+ run : docker-compose up --abort-on-container-exit
109
+ working-directory : .github/collector
148
110
env :
149
111
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
150
112
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
151
- AWS_REGION : us-west-2
152
- working-directory : test-framework
113
+ INSTANCE_ID : ${{ github.run_id }}-${{ github.run_number }}
114
+ LISTEN_ADDRESS : 0.0.0.0:4567
115
+ APP_IMAGE : public.ecr.aws/u0d6r4y4/aws-otel-java-test-spark:${{ github.sha }}
116
+ VALIDATOR_COMMAND : -c spark-otel-trace-metric-validation.yml --endpoint http://app:4567 --metric-namespace aws-otel-integ-test -t ${{ github.run_id }}-${{ github.run_number }}
0 commit comments