@@ -40,6 +40,17 @@ steps:
4040 profile : " apim-dev"
4141 aws_account : ${{ parameters.aws_account_type }}
4242
43+ - script : |
44+ echo "CPU info:"
45+ lscpu
46+ echo "Memory info:"
47+ free -h
48+ echo "Disk info:"
49+ df -h
50+ echo "Top 5 CPU processes:"
51+ top -b -n 1 | head -15
52+ displayName: "Print System Info"
53+
4354 - bash : |
4455 set -e
4556 if ! [[ $APIGEE_ENVIRONMENT =~ .*-*sandbox ]]; then
@@ -260,40 +271,6 @@ steps:
260271 workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/e2e_batch"
261272 condition: eq(1, 1) # Disable task but make this step visible in the pipeline
262273
263-
264- - bash : |
265- pyenv local 3.11
266- poetry env use 3.11
267- set -e
268- if ! [[ "$APIGEE_ENVIRONMENT" == "prod" || "$APIGEE_ENVIRONMENT" == "int" || "$APIGEE_ENVIRONMENT" == *"sandbox" ]]; then
269- echo "Running E2E batch test cases (Parallelx4)"
270-
271- export AWS_PROFILE="apim-dev"
272- aws_account_no="$(aws sts get-caller-identity --query Account --output text)"
273- echo "Using AWS Account: $aws_account_no"
274-
275- service_name="${FULLY_QUALIFIED_SERVICE_NAME}"
276-
277- pr_no=$(echo "$service_name" | { grep -oE '[0-9]+$' || true; })
278- if [ -z "$pr_no" ]; then
279- workspace="$APIGEE_ENVIRONMENT"
280- else
281- workspace="pr-$pr_no"
282- fi
283-
284- poetry install --no-root # Install dependencies defined in pyproject.toml
285-
286- ENVIRONMENT="$workspace" time poetry run unittest-parallel -v -j 4
287-
288- echo "E2E batch folder test cases executed successfully"
289- else
290- echo "Skipping E2E batch folder test cases as the environment is prod-int-sandbox"
291- fi
292-
293- displayName: e2e parallel 4
294- workingDirectory: "$(Pipeline.Workspace)/s/$(SERVICE_NAME)/$(SERVICE_ARTIFACT_NAME)/e2e_batch"
295- condition: eq(1, 1) # Disable task but make this step visible in the pipeline
296-
297274 - task : PublishTestResults@2
298275 displayName : ' Publish test results'
299276 condition : always()
0 commit comments