Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: MregXN <[email protected]>
  • Loading branch information
MregXN committed Dec 17, 2023
1 parent 8a08fd2 commit 15c3d36
Showing 1 changed file with 57 additions and 57 deletions.
114 changes: 57 additions & 57 deletions .github/workflows/dapr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,66 +153,66 @@ jobs:
DATE_TAG=$(date --iso-8601=seconds)
echo "Tags: date=${DATE_TAG}"
# Deploy Linux arm64/amd64 and Windows clusters
# Retry the deployment twice in case of transient failures (such as capacity constraints)
success=false
for i in 1 2 3; do
az deployment sub create \
--name "${{ env.TEST_PREFIX }}" \
--location ${REGION1} \
--template-file ./tests/test-infra/azure-all.bicep \
--parameters \
namePrefix="${{ env.TEST_PREFIX }}" \
enableArm="${{ env.ENABLE_ARM }}" \
location1=${REGION1} \
location2=${REGION2} \
location3=${REGION3} \
dateTag="${DATE_TAG}" \
diagLogAnalyticsWorkspaceResourceId="${{ secrets.AZURE_DIAG_LOG_ANALYTICS_WORKSPACE_ID }}" \
diagStorageResourceId="${{ secrets.AZURE_DIAG_STORAGE_ID }}" \
armDiagLogAnalyticsWorkspaceResourceId="${{ secrets.AZURE_ARM_DIAG_LOG_ANALYTICS_WORKSPACE_ID }}" \
armDiagStorageResourceId="${{ secrets.AZURE_ARM_DIAG_STORAGE_ID }}" \
&& success=true \
&& break \
|| sleep 120
done
# Exit with error if failed
$success || exit 1
shell: bash
- name: Update PR comment for success
if: success() && env.PR_NUMBER != ''
uses: artursouza/[email protected]
with:
header: ${{ github.run_id }}
number: ${{ env.PR_NUMBER }}
append: true
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
message: |
## ✅ Infrastructure deployed
# # Deploy Linux arm64/amd64 and Windows clusters
# # Retry the deployment twice in case of transient failures (such as capacity constraints)
# success=false
# for i in 1 2 3; do
# az deployment sub create \
# --name "${{ env.TEST_PREFIX }}" \
# --location ${REGION1} \
# --template-file ./tests/test-infra/azure-all.bicep \
# --parameters \
# namePrefix="${{ env.TEST_PREFIX }}" \
# enableArm="${{ env.ENABLE_ARM }}" \
# location1=${REGION1} \
# location2=${REGION2} \
# location3=${REGION3} \
# dateTag="${DATE_TAG}" \
# diagLogAnalyticsWorkspaceResourceId="${{ secrets.AZURE_DIAG_LOG_ANALYTICS_WORKSPACE_ID }}" \
# diagStorageResourceId="${{ secrets.AZURE_DIAG_STORAGE_ID }}" \
# armDiagLogAnalyticsWorkspaceResourceId="${{ secrets.AZURE_ARM_DIAG_LOG_ANALYTICS_WORKSPACE_ID }}" \
# armDiagStorageResourceId="${{ secrets.AZURE_ARM_DIAG_STORAGE_ID }}" \
# && success=true \
# && break \
# || sleep 120
# done
# # Exit with error if failed
# $success || exit 1
# shell: bash
# - name: Update PR comment for success
# if: success() && env.PR_NUMBER != ''
# uses: artursouza/[email protected]
# with:
# header: ${{ github.run_id }}
# number: ${{ env.PR_NUMBER }}
# append: true
# GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
# message: |
# ## ✅ Infrastructure deployed

| Cluster | Resource group name | Azure region |
| --- | --- | --- |
| Linux | `Dapr-E2E-${{ env.TEST_PREFIX }}l` | ${{ env.REGION1 }} |
| Windows | `Dapr-E2E-${{ env.TEST_PREFIX }}w` | ${{ env.REGION2 }} |
| Linux/arm64 | `Dapr-E2E-${{ env.TEST_PREFIX }}la` | ${{ env.REGION3 }} |
- name: Update PR comment for failure
if: failure() && env.PR_NUMBER != ''
uses: artursouza/[email protected]
with:
header: ${{ github.run_id }}
number: ${{ env.PR_NUMBER }}
append: true
GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
message: |
## ❌ Infrastructure deployment failed
# | Cluster | Resource group name | Azure region |
# | --- | --- | --- |
# | Linux | `Dapr-E2E-${{ env.TEST_PREFIX }}l` | ${{ env.REGION1 }} |
# | Windows | `Dapr-E2E-${{ env.TEST_PREFIX }}w` | ${{ env.REGION2 }} |
# | Linux/arm64 | `Dapr-E2E-${{ env.TEST_PREFIX }}la` | ${{ env.REGION3 }} |
# - name: Update PR comment for failure
# if: failure() && env.PR_NUMBER != ''
# uses: artursouza/[email protected]
# with:
# header: ${{ github.run_id }}
# number: ${{ env.PR_NUMBER }}
# append: true
# GITHUB_TOKEN: ${{ secrets.DAPR_BOT_TOKEN }}
# message: |
# ## ❌ Infrastructure deployment failed

| Cluster | Resource group name | Azure region |
| --- | --- | --- |
| Linux | `Dapr-E2E-${{ env.TEST_PREFIX }}l` | ${{ env.REGION1 }} |
| Windows | `Dapr-E2E-${{ env.TEST_PREFIX }}w` | ${{ env.REGION2 }} |
| Linux/arm64 | `Dapr-E2E-${{ env.TEST_PREFIX }}la` | ${{ env.REGION3 }} |
# | Cluster | Resource group name | Azure region |
# | --- | --- | --- |
# | Linux | `Dapr-E2E-${{ env.TEST_PREFIX }}l` | ${{ env.REGION1 }} |
# | Windows | `Dapr-E2E-${{ env.TEST_PREFIX }}w` | ${{ env.REGION2 }} |
# | Linux/arm64 | `Dapr-E2E-${{ env.TEST_PREFIX }}la` | ${{ env.REGION3 }} |

Please check the logs for details on the failure.
# Please check the logs for details on the failure.

# build:
# name: Build for ${{ matrix.target_os }} on ${{ matrix.target_arch }}
Expand Down

0 comments on commit 15c3d36

Please sign in to comment.