Skip to content

Commit

Permalink
Upmerge v0.32 to edge (#1293)
Browse files Browse the repository at this point in the history
* Make env configurable (#1046)

Signed-off-by: Reshma Abdul Rahim <[email protected]>

* Adding test AKS workflow to v0.32 (#1052)

* Run functional tests every 2 hours and add another workflow that runs… (#1020)

* Run functional tests every 2 hours and add another workflow that runs the tests on AKS instead of k3d

Signed-off-by: ytimocin <[email protected]>

* Triggering workflow

Signed-off-by: ytimocin <[email protected]>

---------

Signed-off-by: ytimocin <[email protected]>

* Removing the run of the AKS workflow on PRs (#1051)

Signed-off-by: ytimocin <[email protected]>

* Update the timeout (30s) for Playwright

Signed-off-by: ytimocin <[email protected]>

---------

Signed-off-by: ytimocin <[email protected]>

* Use retry and update eshop playwright tests to wait for the catalog to appear (#1213)

Signed-off-by: ytimocin <[email protected]>

---------

Signed-off-by: Reshma Abdul Rahim <[email protected]>
Signed-off-by: ytimocin <[email protected]>
Signed-off-by: willdavsmith <[email protected]>
Co-authored-by: Reshma Abdul Rahim <[email protected]>
Co-authored-by: Yetkin Timocin <[email protected]>
  • Loading branch information
3 people authored Apr 25, 2024
1 parent 2717f4e commit 6949da2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
7 changes: 4 additions & 3 deletions .github/scripts/cleanup-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

set -e

echo "cleaning up cluster"
echo "Cleaning up cluster"

# Delete all test resources in queuemessages.
if kubectl get crd queuemessages.ucp.dev >/dev/null 2>&1; then
Expand All @@ -39,9 +39,10 @@ if kubectl get crd resources.ucp.dev >/dev/null 2>&1; then
fi

# Delete all test namespaces.
echo "delete all test namespaces"
# Any namespace that is not in the list below will be deleted.
echo "Delete all test namespaces"
namespaces=$(kubectl get namespace |
grep -E '^containers.*|^dapr |^dapr-dapr.*|^demo.*|^demo-demo-.*|^eshop-containers.*|^volumes.*|^volumes-myapp.*|^azure.*' |
grep -vE '(radius-system|kube-system|kube-public|kube-node-lease|gatekeeper-system|default|dapr-system|cert-manager)' |
awk '{print $1}')
for ns in $namespaces; do
if [ -z "$ns" ]; then
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/test-aks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ on:
paths:
- "samples/**"
- ".github/workflows/**"
pull_request:
types: [opened, synchronize, reopened]
branches:
- v*.*
- edge
schedule: # Run every 2 hours
- cron: "0 */2 * * *"
env:
Expand All @@ -38,7 +43,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: az CLI login
run: |
az login --service-principal \
Expand Down Expand Up @@ -107,20 +112,20 @@ jobs:
- name: eshop-azure
os: ubuntu-latest-m
runOnPullRequest: true
app: eshop
app: eshop-azure
env: azure
path: ./samples/eshop/eshop.bicep
uiTestFile: tests/eshop/eshop.app.spec.ts
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-azure/providers/Applications.Core/environments/azure'
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-azure/providers/Applications.Core/environments/azure' -p applicationName=eshop-azure
credential: azure
- name: eshop-aws
os: ubuntu-latest-m
runOnPullRequest: true
app: eshop
app: eshop-aws
env: aws
path: ./samples/eshop/eshop.bicep
uiTestFile: tests/eshop/eshop.app.spec.ts
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-aws/providers/Applications.Core/environments/aws'
deployArgs: -p environment='/planes/radius/local/resourceGroups/eshop-aws/providers/Applications.Core/environments/aws' -p applicationName=eshop-aws
credential: aws
env:
BRANCH: ${{ github.base_ref || github.ref_name }}
Expand Down Expand Up @@ -159,7 +164,7 @@ jobs:
if: steps.gen-id.outputs.RUN_TEST == 'true'
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
- name: az CLI login
if: steps.gen-id.outputs.RUN_TEST == 'true'
run: |
Expand Down
8 changes: 4 additions & 4 deletions playwright/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion playwright/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"license": "ISC",
"devDependencies": {
"@playwright/test": "^1.43.0",
"@types/node": "^20.12.5",
"@types/node": "^20.12.6",
"@types/uuid": "^9.0.8",
"typescript": "^5.4.4"
},
Expand Down

0 comments on commit 6949da2

Please sign in to comment.