@@ -193,108 +193,150 @@ jobs:
193
193
194
194
s3-regression-tests-download :
195
195
needs : check-s3-related-changes
196
- if : github.repository == 'aws/aws-sdk-java-v2' && needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
196
+ if : github.repository == 'aws/aws-sdk-java-v2'
197
197
runs-on : ubuntu-latest
198
198
env :
199
199
REGRESSION_TEST : DownloadStreamingRegressionTesting
200
200
steps :
201
+ - name : Skip test - no S3 related changes
202
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes != 'true'
203
+ run : |
204
+ echo "No S3 related changes detected. Skipping S3 regression tests for downloads."
205
+ exit 0
201
206
- name : Configure AWS Credentials
207
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
202
208
uses : aws-actions/configure-aws-credentials@v4
203
209
with :
204
210
role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
205
211
aws-region : us-west-2
206
212
role-duration-seconds : 7200
207
213
- name : Run s3 regression tests for downloads
214
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
208
215
uses : aws-actions/aws-codebuild-run-build@v1
209
216
with :
210
217
project-name : aws-sdk-java-v2-s3-regression-tests
211
218
env-vars-for-codebuild : REGRESSION_TEST
212
219
s3-regression-tests-control-plane :
213
220
needs : check-s3-related-changes
214
- if : github.repository == 'aws/aws-sdk-java-v2' && needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
221
+ if : github.repository == 'aws/aws-sdk-java-v2'
215
222
runs-on : ubuntu-latest
216
223
env :
217
224
REGRESSION_TEST : ControlPlaneOperationRegressionTesting
218
225
steps :
226
+ - name : Skip test - no S3 related changes
227
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes != 'true'
228
+ run : |
229
+ echo "No S3 related changes detected. Skipping S3 regression tests for control plane."
230
+ exit 0
219
231
- name : Configure AWS Credentials
232
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
220
233
uses : aws-actions/configure-aws-credentials@v4
221
234
with :
222
235
role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
223
236
aws-region : us-west-2
224
237
role-duration-seconds : 7200
225
238
- name : Run s3 regression tests for control plane
239
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
226
240
uses : aws-actions/aws-codebuild-run-build@v1
227
241
with :
228
242
project-name : aws-sdk-java-v2-s3-regression-tests
229
243
env-vars-for-codebuild : REGRESSION_TEST
230
244
s3-regression-tests-upload-sync :
231
245
needs : check-s3-related-changes
232
- if : github.repository == 'aws/aws-sdk-java-v2' && needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
246
+ if : github.repository == 'aws/aws-sdk-java-v2'
233
247
runs-on : ubuntu-latest
234
248
env :
235
249
REGRESSION_TEST : UploadSyncRegressionTesting
236
250
steps :
251
+ - name : Skip test - no S3 related changes
252
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes != 'true'
253
+ run : |
254
+ echo "No S3 related changes detected. Skipping S3 regression tests for upload sync."
255
+ exit 0
237
256
- name : Configure AWS Credentials
257
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
238
258
uses : aws-actions/configure-aws-credentials@v4
239
259
with :
240
260
role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
241
261
aws-region : us-west-2
242
262
role-duration-seconds : 7200
243
263
- name : Run s3 regression tests for uploads
264
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
244
265
uses : aws-actions/aws-codebuild-run-build@v1
245
266
with :
246
267
project-name : aws-sdk-java-v2-s3-regression-tests
247
268
env-vars-for-codebuild : REGRESSION_TEST
248
269
s3-regression-tests-upload-async :
249
270
needs : check-s3-related-changes
250
- if : github.repository == 'aws/aws-sdk-java-v2' && needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
271
+ if : github.repository == 'aws/aws-sdk-java-v2'
251
272
runs-on : ubuntu-latest
252
273
env :
253
274
REGRESSION_TEST : UploadAsyncRegressionTesting
254
275
steps :
276
+ - name : Skip test - no S3 related changes
277
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes != 'true'
278
+ run : |
279
+ echo "No S3 related changes detected. Skipping S3 regression tests for upload async."
280
+ exit 0
255
281
- name : Configure AWS Credentials
282
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
256
283
uses : aws-actions/configure-aws-credentials@v4
257
284
with :
258
285
role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
259
286
aws-region : us-west-2
260
287
role-duration-seconds : 7200
261
288
- name : Run s3 regression tests for uploads
289
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
262
290
uses : aws-actions/aws-codebuild-run-build@v1
263
291
with :
264
292
project-name : aws-sdk-java-v2-s3-regression-tests
265
293
env-vars-for-codebuild : REGRESSION_TEST
266
294
s3-regression-tests-upload-crt :
267
295
needs : check-s3-related-changes
268
- if : github.repository == 'aws/aws-sdk-java-v2' && needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
296
+ if : github.repository == 'aws/aws-sdk-java-v2'
269
297
runs-on : ubuntu-latest
270
298
env :
271
299
REGRESSION_TEST : UploadCrtRegressionTesting
272
300
steps :
301
+ - name : Skip test - no S3 related changes
302
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes != 'true'
303
+ run : |
304
+ echo "No S3 related changes detected. Skipping S3 regression tests for upload CRT."
305
+ exit 0
273
306
- name : Configure AWS Credentials
307
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
274
308
uses : aws-actions/configure-aws-credentials@v4
275
309
with :
276
310
role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
277
311
aws-region : us-west-2
278
312
role-duration-seconds : 7200
279
313
- name : Run s3 regression tests for uploads
314
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
280
315
uses : aws-actions/aws-codebuild-run-build@v1
281
316
with :
282
317
project-name : aws-sdk-java-v2-s3-regression-tests
283
318
env-vars-for-codebuild : REGRESSION_TEST
284
319
s3-regression-tests-upload-multi :
285
320
needs : check-s3-related-changes
286
- if : github.repository == 'aws/aws-sdk-java-v2' && needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
321
+ if : github.repository == 'aws/aws-sdk-java-v2'
287
322
runs-on : ubuntu-latest
288
323
env :
289
324
REGRESSION_TEST : UploadTransferManagerRegressionTesting
290
325
steps :
326
+ - name : Skip test - no S3 related changes
327
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes != 'true'
328
+ run : |
329
+ echo "No S3 related changes detected. Skipping S3 regression tests for upload transfer manager."
330
+ exit 0
291
331
- name : Configure AWS Credentials
332
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
292
333
uses : aws-actions/configure-aws-credentials@v4
293
334
with :
294
335
role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
295
336
aws-region : us-west-2
296
337
role-duration-seconds : 7200
297
338
- name : Run s3 regression tests for uploads
339
+ if : needs.check-s3-related-changes.outputs.has_s3_related_changes == 'true'
298
340
uses : aws-actions/aws-codebuild-run-build@v1
299
341
with :
300
342
project-name : aws-sdk-java-v2-s3-regression-tests
0 commit comments