Skip to content

Commit

Permalink
Parallelize system-tests (#7954)
Browse files Browse the repository at this point in the history
  • Loading branch information
smola authored Nov 14, 2024
1 parent ea008a2 commit 105c9dc
Showing 1 changed file with 23 additions and 16 deletions.
39 changes: 23 additions & 16 deletions .circleci/config.continue.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ jobs:
parameters:
weblog-variant:
type: string
parallelism: 3
steps:
- setup_system_tests
Expand All @@ -833,32 +834,38 @@ jobs:
- run:
name: Run
command: |
cd system-tests
DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY ./run.sh
- run:
name: Run APM E2E default tests
# Stop the job after 5m to avoid excessive overhead. Will need adjustment as more tests are added.
no_output_timeout: 5m
command: |
cd system-tests
DD_SITE=datadoghq.com DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY ./run.sh APM_TRACING_E2E
echo "
DEFAULT
APM_TRACING_E2E
APM_TRACING_E2E_SINGLE_SPAN
" | circleci tests split > scenarios.list
for scenario in $(<scenarios.list); do
if [[ $scenario =~ .*_E2E.* ]]; then
export DD_SITE=datadoghq.com
export DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY
export DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY
else
export DD_API_KEY=$SYSTEM_TESTS_DD_API_KEY
fi
echo "Running scenario $scenario"
./run.sh $scenario
done
- run:
name: Run APM E2E Single Span tests
# Stop the job after 5m to avoid excessive overhead. Will need adjustment as more tests are added.
no_output_timeout: 5m
name: Collect artifacts
command: |
mkdir -p artifacts
cd system-tests
DD_SITE=datadoghq.com DD_API_KEY=$SYSTEM_TESTS_E2E_DD_API_KEY DD_APPLICATION_KEY=$SYSTEM_TESTS_E2E_DD_APP_KEY ./run.sh APM_TRACING_E2E_SINGLE_SPAN
- run:
name: Collect artifacts
command: tar -cvzf logs_java_<< parameters.weblog-variant >>_dev.tar.gz -C system-tests logs logs_apm_tracing_e2e logs_apm_tracing_e2e_single_span
for log_dir in logs*; do
tar -cvzf ../artifacts/${log_dir}_<< parameters.weblog-variant >>.tar.gz $log_dir
done
- store_artifacts:
path: logs_java_<< parameters.weblog-variant >>_dev.tar.gz
path: artifacts
integrations-system-tests:
machine:
Expand Down

0 comments on commit 105c9dc

Please sign in to comment.