Skip to content

Commit 3bf73c5

Browse files
committed
runner infos
1 parent 53c0ed1 commit 3bf73c5

File tree

2 files changed

+12
-35
lines changed

2 files changed

+12
-35
lines changed

azure/templates/post-deploy.yml

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -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()

e2e_batch/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
APIGEE_ACCESS_TOKEN ?= $(shell export SSO_LOGIN_URL=https://login.apigee.com && eval get_token -u $(APIGEE_USERNAME))
44
AWS_DOMAIN_NAME=https://$(shell make -C ../terraform -s output name=service_domain_name || true)
5-
PARALLEL_WORKERS=4
5+
PARALLEL_WORKERS=2
66

77
print-token:
88
@echo "APIGEE_ACCESS_TOKEN=$(APIGEE_ACCESS_TOKEN)"

0 commit comments

Comments
 (0)