Skip to content

Commit df2d590

Browse files
committed
test
Signed-off-by: Junpu Fan <junpu@amazon.com>
1 parent 031a0e8 commit df2d590

File tree

1 file changed

+52
-12
lines changed

1 file changed

+52
-12
lines changed

.github/workflows/pr-example.yml

Lines changed: 52 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- codebuild-runner-${{ github.run_id }}-${{ github.run_attempt }}
4141
fleet:x86-build-runner
4242
outputs:
43-
image_uri: ${{ steps.build.outputs.image_uri }}
43+
image_uri: ${{ steps.export.outputs.image_uri }}
4444
steps:
4545
- uses: actions/checkout@v5
4646
- run: .github/scripts/runner_setup.sh
@@ -60,20 +60,60 @@ jobs:
6060
-f docker/vllm/Dockerfile.rayserve .
6161
docker push "$IMAGE_TAG"
6262
docker rmi "$IMAGE_TAG"
63-
echo "image_uri=$IMAGE_TAG" >> "$GITHUB_OUTPUT"
63+
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
64+
- name: Export output
65+
id: export
66+
run: echo "image_uri=$IMAGE_TAG" >> $GITHUB_OUTPUT
67+
- name: Debug local
68+
run: |
69+
echo "Local GITHUB_OUTPUT contents:"
70+
cat $GITHUB_OUTPUT || echo "No output file found"
71+
echo "Local step output: ${{ steps.export.outputs.image_uri }}"
6472
65-
test-vllm-rayserve-ec2-image:
73+
test-job1:
6674
needs: [build-vllm-rayserve-ec2-image]
67-
if: needs.build-vllm-rayserve-ec2-image.result == 'success'
68-
runs-on:
75+
runs-on:
76+
- codebuild-runner-${{ github.run_id }}-${{ github.run_attempt }}
77+
fleet:x86-build-runner
78+
if: always()
79+
steps:
80+
- name: Check received output
81+
run: |
82+
echo "Received job output: ${{ needs.build-vllm-rayserve-ec2-image.outputs.image_uri }}"
83+
if [ -z "${{ needs.build-vllm-rayserve-ec2-image.outputs.image_uri }}" ]; then
84+
echo "❌ Output is missing!"
85+
else
86+
echo "✅ Output received successfully."
87+
fi
88+
89+
test-job2:
90+
needs: [build-vllm-rayserve-ec2-image]
91+
runs-on:
6992
- codebuild-runner-${{ github.run_id }}-${{ github.run_attempt }}
7093
fleet:x86-g6xl-runner
94+
if: always()
7195
steps:
72-
- uses: actions/checkout@v5
73-
- name: Use built image
96+
- name: Check received output
7497
run: |
75-
IMAGE_URI=${{ needs.build-vllm-rayserve-ec2-image.outputs.image_uri }}
76-
echo "Testing image: $IMAGE_URI"
77-
aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
78-
docker pull "$IMAGE_URI"
79-
docker run --rm "$IMAGE_URI" python -c "import torch; import ray; import vllm; print('Test OK')"
98+
echo "Received job output: ${{ needs.build-vllm-rayserve-ec2-image.outputs.image_uri }}"
99+
if [ -z "${{ needs.build-vllm-rayserve-ec2-image.outputs.image_uri }}" ]; then
100+
echo "❌ Output is missing!"
101+
else
102+
echo "✅ Output received successfully."
103+
fi
104+
105+
# test-vllm-rayserve-ec2-image:
106+
# needs: [build-vllm-rayserve-ec2-image]
107+
# if: needs.build-vllm-rayserve-ec2-image.result == 'success'
108+
# runs-on:
109+
# - codebuild-runner-${{ github.run_id }}-${{ github.run_attempt }}
110+
# fleet:x86-g6xl-runner
111+
# steps:
112+
# - uses: actions/checkout@v5
113+
# - name: Use built image
114+
# run: |
115+
# IMAGE_URI=${{ needs.build-vllm-rayserve-ec2-image.outputs.image_uri }}
116+
# echo "Testing image: $IMAGE_URI"
117+
# aws ecr get-login-password --region ${{ secrets.AWS_REGION }} | docker login --username AWS --password-stdin ${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com
118+
# docker pull "$IMAGE_URI"
119+
# docker run --rm "$IMAGE_URI" python -c "import torch; import ray; import vllm; print('Test OK')"

0 commit comments

Comments
 (0)