Skip to content

Commit 64233d8

Browse files
authored
CLOUDP-344282: Fix e2e2 labeling run on nightlies (#2686)
1 parent 8dd087d commit 64233d8

File tree

5 files changed

+7
-12
lines changed

5 files changed

+7
-12
lines changed

.github/workflows/tests-e2e2.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,7 @@ jobs:
7373
PR_LABELS: ${{ steps.get-labels.outputs.result || '["test/e2e2/*"]' }}
7474
E2E2_LABELS: ${{ env.e2e2_labels }}
7575
USE_JSON: true
76-
SKIP_PREFIXES: "[\"nightly\"]"
77-
NIGHTLY_MATRIX: "[\"nightly-core\",\"nightly-integration\",\"nightly-flex2dedicated\"]"
76+
SKIP_PREFIXES: "[\"focus\"]"
7877
GITHUB_REF: ${{ github.ref }}
7978
EVENT_NAME: ${{ github.event_name }}
8079
run: |
@@ -85,12 +84,8 @@ jobs:
8584
fi
8685
echo PR_LABELS="${PR_LABELS}"
8786
echo E2E2_LABELS="${E2E2_LABELS}"
88-
if [ "${PR_LABELS}" == '["test/e2e2/*"]' ]; then
89-
echo '{"e2e2":${{ env.NIGHTLY_MATRIX }}}' > result.json
90-
else
91-
make compute-labels
92-
./bin/ginkgo-labels > result.json
93-
fi
87+
make compute-labels
88+
./bin/ginkgo-labels > result.json
9489
echo "E2E2 tests to execute $(cat result.json | jq -c .e2e2)"
9590
echo "e2e2_matrix=$(cat result.json | jq -c .e2e2)" >> $GITHUB_OUTPUT
9691
compute:

test/e2e2/ako_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const (
3737
AtlasProjectCRDName = "atlasprojects.atlas.mongodb.com"
3838
)
3939

40-
var _ = Describe("Atlas Operator Start and Stop test", Ordered, Label("nightly-core", "ako-start-stop"), func() {
40+
var _ = Describe("Atlas Operator Start and Stop test", Ordered, Label("ako-start-stop"), func() {
4141
var ctx context.Context
4242
var kubeClient client.Client
4343
var ako operator.Operator

test/e2e2/all_in_one_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/mongodb/mongodb-atlas-kubernetes/v2/test/helper/e2e2/kube"
2929
)
3030

31-
var _ = Describe("all-in-one.yaml", Ordered, Label("nightly-core", "all-in-one"), func() {
31+
var _ = Describe("all-in-one.yaml", Ordered, Label("all-in-one"), func() {
3232
var kubeClient client.Client
3333

3434
_ = BeforeAll(func() {

test/e2e2/flex_to_dedicated_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import (
4040
//go:embed flex2dedicated/*
4141
var flex2dedicated embed.FS
4242

43-
var _ = Describe("Flex to Dedicated Upgrade", Ordered, Label("nightly-flex2dedicated", "flex-to-dedicated"), func() {
43+
var _ = Describe("Flex to Dedicated Upgrade", Ordered, Label("flex-to-dedicated"), func() {
4444
var ctx context.Context
4545
var kubeClient client.Client
4646
var ako operator.Operator

test/e2e2/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const (
4747
AtlasThirdPartyIntegrationsCRDName = "atlasthirdpartyintegrations.atlas.mongodb.com"
4848
)
4949

50-
var _ = Describe("Atlas Third-Party Integrations Controller", Ordered, Label("nightly-integration", "integrations-ctlr"), func() {
50+
var _ = Describe("Atlas Third-Party Integrations Controller", Ordered, Label("integrations-ctlr"), func() {
5151
var ctx context.Context
5252
var kubeClient client.Client
5353
var ako operator.Operator

0 commit comments

Comments
 (0)