Skip to content

Commit a45d9be

Browse files
committed
feat(workflow): Add test_profiling input to integration tests
- Add test_profiling boolean input to integration-test.yml - Pass through to test-artifacts.yml workflow_call - Add -var="test_profiling" to Linux terraform apply
1 parent 98bdc89 commit a45d9be

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/integration-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ on:
4141
description: 'Filter tests to specific test directory (e.g., ./test/cloudwatchlogs). Leave empty to run all tests.'
4242
type: string
4343
required: false
44+
test_profiling:
45+
description: 'Enable test profiling (sets CWA_TEST_PROFILING=1)'
46+
type: boolean
47+
required: false
48+
default: false
4449

4550
jobs:
4651
CheckBuildTestArtifacts:
@@ -80,3 +85,4 @@ jobs:
8085
test_repo_branch: ${{ inputs.test_repo_branch }}
8186
test_os_filter: ${{ inputs.test_os_filter }}
8287
test_dir_filter: ${{ inputs.test_dir_filter }}
88+
test_profiling: ${{ inputs.test_profiling }}

.github/workflows/test-artifacts.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ on:
4040
description: 'Filter tests to specific test directory (e.g., ./test/cloudwatchlogs)'
4141
type: string
4242
required: false
43+
test_profiling:
44+
description: 'Enable test profiling (sets CWA_TEST_PROFILING=1)'
45+
type: boolean
46+
required: false
47+
default: false
4348
workflow_call:
4449
inputs:
4550
build_id:
@@ -57,6 +62,11 @@ on:
5762
description: 'Filter tests to specific test directory (e.g., ./test/cloudwatchlogs)'
5863
type: string
5964
required: false
65+
test_profiling:
66+
description: 'Enable test profiling (sets CWA_TEST_PROFILING=1)'
67+
type: boolean
68+
required: false
69+
default: false
6070

6171
concurrency:
6272
group: ${{ github.workflow }}-${{ inputs.build_id }}
@@ -457,7 +467,8 @@ jobs:
457467
-var="local_stack_host_name=${{ needs.StartLocalStack.outputs.local_stack_host_name }}" \
458468
-var="s3_bucket=${S3_INTEGRATION_BUCKET}" \
459469
-var="ssh_key_name=${KEY_NAME}" \
460-
-var="test_dir=${{ matrix.arrays.test_dir }}" ; then terraform destroy -auto-approve
470+
-var="test_dir=${{ matrix.arrays.test_dir }}" \
471+
-var="test_profiling=${{ inputs.test_profiling }}" ; then terraform destroy -auto-approve
461472
else
462473
terraform destroy -auto-approve && exit 1
463474
fi

0 commit comments

Comments
 (0)