From ab99eb6e058f85faeef8827405864a22597029cd Mon Sep 17 00:00:00 2001 From: Amrutha Date: Mon, 22 Sep 2025 15:06:47 -0400 Subject: [PATCH 1/5] Updating pre.yml to run only registration integration test --- .github/workflows/pre.yml | 44 +++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pre.yml b/.github/workflows/pre.yml index b0baa4d862..59dea60b70 100644 --- a/.github/workflows/pre.yml +++ b/.github/workflows/pre.yml @@ -50,27 +50,27 @@ jobs: - name: build run: make build - unit: - name: unit - runs-on: ubuntu-latest - steps: - - name: checkout code - uses: actions/checkout@v5 - - name: install Go - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - - name: unit - run: make test - - name: report coverage - uses: codecov/codecov-action@v5 - with: - token: ${{ secrets.CODECOV_UPLOAD_TOKEN }} - files: ./coverage.out - flags: unit - name: unit - verbose: true - fail_ci_if_error: false + # unit: + # name: unit + # runs-on: ubuntu-latest + # steps: + # - name: checkout code + # uses: actions/checkout@v5 + # - name: install Go + # uses: actions/setup-go@v5 + # with: + # go-version: ${{ env.GO_VERSION }} + # - name: unit + # run: make test + # - name: report coverage + # uses: codecov/codecov-action@v5 + # with: + # token: ${{ secrets.CODECOV_UPLOAD_TOKEN }} + # files: ./coverage.out + # flags: unit + # name: unit + # verbose: true + # fail_ci_if_error: false integration: name: integration @@ -83,4 +83,4 @@ jobs: with: go-version: ${{ env.GO_VERSION }} - name: integration - run: make test-integration + run: ARGS="-test.v" make test-registration-integration From ee6cdd70dfc0f92fbb8c90639e553cb8eb960e11 Mon Sep 17 00:00:00 2001 From: Amrutha Date: Mon, 22 Sep 2025 15:35:49 -0400 Subject: [PATCH 2/5] Updating make target to run only specific tests --- test/integration-test.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-test.mk b/test/integration-test.mk index 7eac078ed6..fc1bdcfcb5 100644 --- a/test/integration-test.mk +++ b/test/integration-test.mk @@ -31,7 +31,7 @@ build-work-integration: test-registration-integration: ensure-kubebuilder-tools go test -c ./test/integration/registration -o ./registration-integration.test - ./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast ${ARGS} + ./registration-integration.test -ginkgo.slow-spec-threshold=15s -ginkgo.v -ginkgo.fail-fast --ginkgo.focus "Joining Process for aws flow" ${ARGS} .PHONY: test-registration-integration test-work-integration: ensure-kubebuilder-tools build-work-integration From dfd939e798f3b1e1b8064d975138a8d80dbd2b01 Mon Sep 17 00:00:00 2001 From: Amrutha Date: Mon, 22 Sep 2025 15:48:53 -0400 Subject: [PATCH 3/5] Updating test file to retrigger integration test: attemp 1 --- test/integration/registration/spokecluster_aws_joining_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/integration/registration/spokecluster_aws_joining_test.go b/test/integration/registration/spokecluster_aws_joining_test.go index 5367f63f33..a5713511dc 100644 --- a/test/integration/registration/spokecluster_aws_joining_test.go +++ b/test/integration/registration/spokecluster_aws_joining_test.go @@ -25,7 +25,7 @@ import ( ) // use ordered container since we need to run beforeAll to restart the hub with aws option -var _ = ginkgo.Describe("Joining Process for aws flow", ginkgo.Ordered, func() { +ginkgo.Describe("Joining Process for aws flow", ginkgo.Ordered, func() { var bootstrapKubeconfig string var managedClusterName string var hubKubeconfigSecret string @@ -257,6 +257,7 @@ var _ = ginkgo.Describe("Joining Process for aws flow", ginkgo.Ordered, func() { cancel := runAgent("joiningtest", agentOptions, commOptions, spokeCfg) defer cancel() + fmt.Printf("testing flaky test attempt 1\n") // The ManagedCluster CR should be created gomega.Eventually(func() error { _, err := util.GetManagedCluster(clusterClient, managedClusterName) From 47dac89d579ae86f13ef941724ff483ea5cb7d4c Mon Sep 17 00:00:00 2001 From: Amrutha Date: Mon, 22 Sep 2025 15:53:08 -0400 Subject: [PATCH 4/5] Updating test file to retrigger integration test: attempt 2 --- test/integration/registration/spokecluster_aws_joining_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/registration/spokecluster_aws_joining_test.go b/test/integration/registration/spokecluster_aws_joining_test.go index a5713511dc..c2690f2d32 100644 --- a/test/integration/registration/spokecluster_aws_joining_test.go +++ b/test/integration/registration/spokecluster_aws_joining_test.go @@ -25,7 +25,7 @@ import ( ) // use ordered container since we need to run beforeAll to restart the hub with aws option -ginkgo.Describe("Joining Process for aws flow", ginkgo.Ordered, func() { +var _ = ginkgo.Describe("Joining Process for aws flow", ginkgo.Ordered, func() { var bootstrapKubeconfig string var managedClusterName string var hubKubeconfigSecret string From cab5ddd33d5ca61cdffb5ff69006a1ac30e049f6 Mon Sep 17 00:00:00 2001 From: Amrutha Date: Mon, 22 Sep 2025 16:03:12 -0400 Subject: [PATCH 5/5] Updating test file to retrigger integration test: attempt 3 --- test/integration/registration/spokecluster_aws_joining_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/registration/spokecluster_aws_joining_test.go b/test/integration/registration/spokecluster_aws_joining_test.go index c2690f2d32..b7f4f8bf26 100644 --- a/test/integration/registration/spokecluster_aws_joining_test.go +++ b/test/integration/registration/spokecluster_aws_joining_test.go @@ -257,7 +257,7 @@ var _ = ginkgo.Describe("Joining Process for aws flow", ginkgo.Ordered, func() { cancel := runAgent("joiningtest", agentOptions, commOptions, spokeCfg) defer cancel() - fmt.Printf("testing flaky test attempt 1\n") + fmt.Printf("testing flaky test attempt 2\n") // The ManagedCluster CR should be created gomega.Eventually(func() error { _, err := util.GetManagedCluster(clusterClient, managedClusterName)