Skip to content

Commit a7f446f

Browse files
delme: run e2e tests on nested cluster on PR
Signed-off-by: Nikita Korolev <nikita.korolev@flant.com>
1 parent 854cedb commit a7f446f

2 files changed

Lines changed: 17 additions & 7 deletions

File tree

.github/workflows/e2e-matrix.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,14 @@
1515
name: E2E Matrix Tests (nested clusters)
1616

1717
on:
18+
pull_request:
19+
types: [opened, reopened, synchronize, labeled, unlabeled]
20+
branches:
21+
- main
22+
- feat/pm
1823
workflow_dispatch:
19-
schedule:
20-
- cron: "40 4 * * *"
24+
# schedule:
25+
# - cron: "40 4 * * *"
2126

2227
concurrency:
2328
group: "${{ github.workflow }}-${{ github.event.number || github.ref }}"
@@ -29,6 +34,7 @@ defaults:
2934

3035
jobs:
3136
cleanup-nested-clusters:
37+
if: github.event_name != 'pull_request'
3238
name: Cleanup nested clusters
3339
runs-on: ubuntu-latest
3440
steps:
@@ -100,6 +106,7 @@ jobs:
100106
cleanup_kind "vmclass"
101107
102108
power-off-vms-for-nested:
109+
if: github.event_name != 'pull_request'
103110
name: Power off VMs for nested clusters
104111
needs: cleanup-nested-clusters
105112
runs-on: ubuntu-latest
@@ -315,7 +322,7 @@ jobs:
315322
fi
316323
set-vars:
317324
name: Set vars
318-
needs: power-off-vms-for-nested
325+
# needs: power-off-vms-for-nested
319326
runs-on: ubuntu-latest
320327
outputs:
321328
date_start: ${{ steps.vars.outputs.date-start }}
@@ -352,6 +359,7 @@ jobs:
352359
BOOTSTRAP_DEV_PROXY: ${{ secrets.BOOTSTRAP_DEV_PROXY }}
353360

354361
e2e-replicated:
362+
if: github.event_name != 'pull_request'
355363
name: E2E Pipeline (Replicated)
356364
needs:
357365
- set-vars
@@ -380,7 +388,7 @@ jobs:
380388
name: End-to-End tests report
381389
needs:
382390
- e2e-ceph
383-
- e2e-replicated
391+
# - e2e-replicated
384392
if: ${{ always()}}
385393
env:
386394
STORAGE_TYPES: '["ceph", "replicated"]'
@@ -647,4 +655,4 @@ jobs:
647655
curl --request POST --header 'Content-Type: application/json' --data "{\"text\": \"${COMBINED_SUMMARY}\"}" "$LOOP_WEBHOOK_URL"
648656
fi
649657
env:
650-
LOOP_WEBHOOK_URL: ${{ secrets.LOOP_WEBHOOK_URL }}
658+
LOOP_WEBHOOK_URL: ${{ secrets.LOOP_TEST_CHANNEL }}

.github/workflows/e2e-reusable-pipeline.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ jobs:
141141
run: |
142142
GIT_SHORT_HASH=$(git rev-parse --short HEAD)
143143
144-
namespace="nightly-e2e-$STORAGE_TYPE-$GIT_SHORT_HASH-$RANDUUID4C"
144+
# namespace="nightly-e2e-$STORAGE_TYPE-$GIT_SHORT_HASH-$RANDUUID4C"
145+
namespace="test-e2e-$STORAGE_TYPE-$GIT_SHORT_HASH-$RANDUUID4C"
145146
146147
echo "namespace=$namespace" >> $GITHUB_OUTPUT
147148
echo "sha_short=$GIT_SHORT_HASH" >> $GITHUB_OUTPUT
@@ -1262,7 +1263,8 @@ jobs:
12621263
echo $SUMMARY > "${summary_file_name_json}"
12631264
12641265
echo "[INFO] Exit code: $GINKGO_EXIT_CODE"
1265-
exit $GINKGO_EXIT_CODE
1266+
# exit $GINKGO_EXIT_CODE
1267+
exit 0
12661268
- name: Upload summary test results (junit/xml)
12671269
uses: actions/upload-artifact@v4
12681270
id: e2e-report-artifact

0 commit comments

Comments
 (0)