-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: MregXN <[email protected]>
- Loading branch information
Showing
1 changed file
with
57 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|