testdriverai 6.1.8-canary.68bcfa2.0 → 6.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -69,6 +69,8 @@ jobs:
|
|
|
69
69
|
AWS_REGION: us-east-2
|
|
70
70
|
AWS_LAUNCH_TEMPLATE_ID: lt-00d02f31cfc602f27
|
|
71
71
|
AMI_ID: ami-085f872ca0cd80fed
|
|
72
|
+
RESOLUTION_WIDTH: 1920
|
|
73
|
+
RESOLUTION_HEIGHT: 1080
|
|
72
74
|
- name: Run TestDriver
|
|
73
75
|
run: node bin/testdriverai.js run testdriver/acceptance/${{ matrix.test }} --ip="${{ steps.aws-setup.outputs.public-ip }}" --junit=out.xml
|
|
74
76
|
env:
|
package/package.json
CHANGED
|
@@ -8,6 +8,7 @@ set -euo pipefail
|
|
|
8
8
|
: "${AWS_LAUNCH_TEMPLATE_VERSION:=\$Latest}"
|
|
9
9
|
: "${AWS_TAG_PREFIX:=td}"
|
|
10
10
|
: "${RUNNER_CLASS_ID:=default}"
|
|
11
|
+
: "${RESOLUTION:=1440x900}"
|
|
11
12
|
|
|
12
13
|
TAG_NAME="${AWS_TAG_PREFIX}-"$(date +%s)
|
|
13
14
|
WS_CONFIG_PATH='C:\Windows\Temp\pyautogui-ws.json'
|
|
@@ -19,7 +20,7 @@ RUN_JSON=$(aws ec2 run-instances \
|
|
|
19
20
|
--region "$AWS_REGION" \
|
|
20
21
|
--image-id "$AMI_ID" \
|
|
21
22
|
--launch-template "LaunchTemplateId=$AWS_LAUNCH_TEMPLATE_ID,Version=$AWS_LAUNCH_TEMPLATE_VERSION" \
|
|
22
|
-
--tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=${TAG_NAME}},{Key=Class,Value=${RUNNER_CLASS_ID}}]" \
|
|
23
|
+
--tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=${TAG_NAME}},{Key=Class,Value=${RUNNER_CLASS_ID}},{Key=TD_RESOLUTION,Value=${RESOLUTION}}]" \
|
|
23
24
|
--output json)
|
|
24
25
|
|
|
25
26
|
INSTANCE_ID=$(jq -r '.Instances[0].InstanceId' <<<"$RUN_JSON")
|
|
@@ -143,7 +144,7 @@ done
|
|
|
143
144
|
|
|
144
145
|
echo "Getting Public IP..."
|
|
145
146
|
|
|
146
|
-
# # ---
|
|
147
|
+
# # --- 5) Get instance Public IP ---
|
|
147
148
|
DESC_JSON=$(aws ec2 describe-instances --region "$AWS_REGION" --instance-ids "$INSTANCE_ID" --output json)
|
|
148
149
|
PUBLIC_IP=$(jq -r '.Reservations[0].Instances[0].PublicIpAddress // empty' <<<"$DESC_JSON")
|
|
149
150
|
[ -n "$PUBLIC_IP" ] || PUBLIC_IP="No public IP assigned"
|
|
@@ -151,7 +152,7 @@ PUBLIC_IP=$(jq -r '.Reservations[0].Instances[0].PublicIpAddress // empty' <<<"$
|
|
|
151
152
|
# echo "Getting Websocket Port..."
|
|
152
153
|
|
|
153
154
|
|
|
154
|
-
# ---
|
|
155
|
+
# --- 6) Read WebSocket config JSON ---
|
|
155
156
|
echo "Reading WebSocket configuration from: $WS_CONFIG_PATH"
|
|
156
157
|
READ_JSON=$(aws ssm send-command \
|
|
157
158
|
--region "$AWS_REGION" \
|
|
@@ -182,7 +183,7 @@ if [ -n "$STDERR" ] && [ "$STDERR" != "null" ]; then
|
|
|
182
183
|
fi
|
|
183
184
|
echo "WebSocket config raw output: $STDOUT"
|
|
184
185
|
|
|
185
|
-
# ---
|
|
186
|
+
# --- 7) Output results ---
|
|
186
187
|
echo "Setup complete!"
|
|
187
188
|
echo "PUBLIC_IP=$PUBLIC_IP"
|
|
188
189
|
echo "INSTANCE_ID=$INSTANCE_ID"
|