Skip to content

Commit

Permalink
Merge branch 'v0.26' into dapr-sample
Browse files Browse the repository at this point in the history
  • Loading branch information
willtsai authored Nov 13, 2023
2 parents 99f0645 + 10158de commit 01e25d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 45 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ jobs:
run: rad deploy ${{ matrix.path }} ${{ matrix.args }}
- name: Wait for all pods to be ready
if: steps.gen-id.outputs.RUN_TEST == 'true'
id: wait-for-pods
run: |
namespace="default-${{ matrix.app }}"
label="radapp.io/application=${{ matrix.app }}"
Expand Down Expand Up @@ -258,7 +259,7 @@ jobs:
# Handle failures
- name: Get Pod logs for failed tests
id: get-pod-logs
if: failure() && steps.run-playwright-test.outcome == 'failure'
if: failure() && (steps.run-playwright-test.outcome == 'failure' || steps.wait-for-pods.outcome == 'failure')
run: |
# Create pod-logs directory
mkdir -p playwright/pod-logs/${{ matrix.name }}
Expand Down
24 changes: 2 additions & 22 deletions samples/dapr/dapr-azure.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
image: 'ghcr.io/radius-project/samples/dapr-frontend:latest'
env: {
CONNECTION_BACKEND_APPID: backend.name
ASPNETCORE_URLS: 'http://*:8080'
}
ports: {
ui: {
containerPort: 80
provides: frontendRoute.id
containerPort: 8080
}
}
}
Expand All @@ -62,26 +62,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
routes: [
{
path: '/'
destination: frontendRoute.id
}
]
}
}

resource account 'Microsoft.Storage/storageAccounts@2019-06-01' = {
name: 'dapr${uniqueString(resourceGroup().id)}'
location: location
Expand Down
24 changes: 2 additions & 22 deletions samples/dapr/dapr.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
image: 'ghcr.io/radius-project/samples/dapr-frontend:latest'
env: {
CONNECTION_BACKEND_APPID: backend.name
ASPNETCORE_URLS: 'http://*:8080'
}
ports: {
ui: {
containerPort: 80
provides: frontendRoute.id
containerPort: 8080
}
}
}
Expand All @@ -65,26 +65,6 @@ resource frontend 'Applications.Core/containers@2023-10-01-preview' = {
}
}

resource frontendRoute 'Applications.Core/httpRoutes@2023-10-01-preview' = {
name: 'frontend-route'
properties: {
application: app.id
}
}

resource gateway 'Applications.Core/gateways@2023-10-01-preview' = {
name: 'gateway'
properties: {
application: app.id
routes: [
{
path: '/'
destination: frontendRoute.id
}
]
}
}

resource stateStore 'Applications.Dapr/stateStores@2023-10-01-preview' = {
name: 'statestore'
properties: {
Expand Down

0 comments on commit 01e25d1

Please sign in to comment.