Skip to content

Commit d9ebd5d

Browse files
committed
chore: run resourcePlacement e2e in a separate pipeline
Signed-off-by: Wantong Jiang <[email protected]>
1 parent f6245da commit d9ebd5d

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,16 @@ jobs:
8989
strategy:
9090
fail-fast: false
9191
matrix:
92-
customized-settings: [default, joinleave, custom]
92+
customized-settings: [default, resourceplacement, joinleave, custom]
9393
include:
9494
- customized-settings: default
9595
# to shorten the test duration, set the resource snapshot creation interval to 0
9696
resource-snapshot-creation-minimum-interval: 0m
9797
resource-changes-collection-duration: 0m
98+
- customized-settings: resourceplacement
99+
# to shorten the test duration, set the resource snapshot creation interval to 0
100+
resource-snapshot-creation-minimum-interval: 0m
101+
resource-changes-collection-duration: 0m
98102
- customized-settings: joinleave
99103
# to shorten the test duration, set the resource snapshot creation interval to 0
100104
resource-snapshot-creation-minimum-interval: 0m
@@ -136,7 +140,9 @@ jobs:
136140
- name: Run e2e tests
137141
run: |
138142
if [ "${{ matrix.customized-settings }}" = "default" ]; then
139-
make e2e-tests LABEL_FILTER="!custom && !joinleave"
143+
make e2e-tests LABEL_FILTER="!custom && !joinleave && !rp"
144+
elif [ "${{ matrix.customized-settings }}" = "resourceplacement" ]; then
145+
make e2e-tests LABEL_FILTER="!custom && rp"
140146
elif [ "${{ matrix.customized-settings }}" = "joinleave" ]; then
141147
make e2e-tests LABEL_FILTER="!custom && joinleave"
142148
else

test/e2e/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ test suites, follow the steps below:
3535
ginkgo --label-filter="!custom" -v -p .
3636
```
3737

38-
or run the custom configuration e2e tests with the following command
38+
or run the custom configuration e2e tests with the following command:
3939
```sh
4040
ginkgo --label-filter="custom" -v -p .
4141
```
4242

43-
or run tests involving member cluster join/leave scenarios with the following command (serially)
43+
or run tests involving member cluster join/leave scenarios with the following command (serially):
4444
```sh
4545
ginkgo --label-filter="joinleave" -v .
4646
```
4747

48+
or run tests related to resourcePlacement (rp) only with the following command:
49+
```sh
50+
ginkgo --label-filter="rp" -v -p .
51+
```
52+
4853
or create a launch.json in your vscode workspace.
4954
```yaml
5055
{

test/e2e/resource_placement_pickall_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/kubefleet-dev/kubefleet/test/e2e/framework"
3232
)
3333

34-
var _ = Describe("placing namespaced scoped resources using a RP with PickAll policy", func() {
34+
var _ = Describe("placing namespaced scoped resources using a RP with PickAll policy", Label("rp"), func() {
3535
crpName := fmt.Sprintf(crpNameTemplate, GinkgoParallelProcess())
3636
rpName := fmt.Sprintf(rpNameTemplate, GinkgoParallelProcess())
3737

test/e2e/resource_placement_pickn_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
"github.com/kubefleet-dev/kubefleet/test/e2e/framework"
3232
)
3333

34-
var _ = Describe("placing namespaced scoped resources using a RP with PickN policy", func() {
34+
var _ = Describe("placing namespaced scoped resources using a RP with PickN policy", Label("rp"), func() {
3535
crpName := fmt.Sprintf(crpNameTemplate, GinkgoParallelProcess())
3636
rpName := fmt.Sprintf(rpNameTemplate, GinkgoParallelProcess())
3737
rpKey := types.NamespacedName{Name: rpName, Namespace: appNamespace().Name}

0 commit comments

Comments
 (0)