Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build-targets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,22 @@ jobs:
name: ${{ github.sha }}-${{ matrix.build-target }}-build
path: ${{ matrix.build-target }}-build.tar.gz
retention-days: 90
smoke-tests:
name: Trigger Smoke Tests
runs-on: ubuntu-latest
needs: build
if: success()
permissions:
actions: write
steps:
- name: Trigger SageMaker smoke tests
env:
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run smoke-tests-sagemaker.yaml \
--repo ${{ github.repository }} \
--ref ${{ github.ref }}

handle-failures:
name: Handle Failures
runs-on: ubuntu-latest
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,34 @@ jobs:
fi
echo "Tag is from a valid branch."

- name: Verify smoke tests passed
run: |
echo "Checking smoke test results for commit $COMMIT_SHA..."

# Find smoke test runs for this commit
RUN_INFO=$(gh run list --workflow=smoke-tests-sagemaker.yaml --json headSha,conclusion,status --limit 50 | \
jq -r --arg sha "$COMMIT_SHA" '.[] | select(.headSha == $sha) | "\(.status) \(.conclusion)"' | head -1)

if [ -z "$RUN_INFO" ]; then
echo "Error: No smoke test run found for commit $COMMIT_SHA"
exit 1
fi

STATUS=$(echo "$RUN_INFO" | cut -d' ' -f1)
CONCLUSION=$(echo "$RUN_INFO" | cut -d' ' -f2)

if [ "$STATUS" != "completed" ]; then
echo "Error: Smoke tests not completed (status: $STATUS)"
exit 1
fi

if [ "$CONCLUSION" != "success" ]; then
echo "Error: Smoke tests failed (conclusion: $CONCLUSION)"
exit 1
fi

echo "Smoke tests passed for commit $COMMIT_SHA"

- name: Download sagemaker artifacts by commit ID
run: |
gh run download --name "$COMMIT_SHA-code-editor-sagemaker-server-build" --name "$COMMIT_SHA-code-editor-sagemaker-server-src"
Expand Down