Skip to content

Commit ef1b19d

Browse files
committed
Merge remote-tracking branch 'upstream/main' into feat/bitbucket-scm
2 parents d8033cc + f0cdc82 commit ef1b19d

File tree

8 files changed

+69
-26
lines changed

8 files changed

+69
-26
lines changed

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ require (
2323
github.com/spf13/pflag v1.0.10
2424
github.com/stretchr/testify v1.11.1
2525
github.com/tidwall/gjson v1.18.0
26-
gitlab.com/gitlab-org/api/client-go v0.159.0
26+
gitlab.com/gitlab-org/api/client-go v0.160.0
2727
go.uber.org/zap v1.27.0
2828
golang.org/x/sync v0.18.0
2929
golang.org/x/time v0.14.0
3030
gopkg.in/yaml.v3 v3.0.1
31-
k8s.io/api v0.34.1
32-
k8s.io/apimachinery v0.34.1
33-
k8s.io/client-go v0.34.1
31+
k8s.io/api v0.34.2
32+
k8s.io/apimachinery v0.34.2
33+
k8s.io/client-go v0.34.2
3434
k8s.io/utils v0.0.0-20250604170112-4c0f3b243397
3535
sigs.k8s.io/controller-runtime v0.22.4
3636
sigs.k8s.io/multicluster-runtime v0.22.0-beta.0

go.sum

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/controller/promotionstrategy_controller_test.go

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,12 +857,41 @@ var _ = Describe("PromotionStrategy Controller", func() {
857857
Expect(conflictingSha).NotTo(BeEmpty())
858858

859859
By("Checking that there is no previous-environment commit status created, since no active checks are configured")
860+
// List all CTPs owned by this test's PromotionStrategy
861+
ctpList := promoterv1alpha1.ChangeTransferPolicyList{}
862+
err = k8sClient.List(ctx, &ctpList, client.InNamespace(typeNamespacedName.Namespace))
863+
Expect(err).NotTo(HaveOccurred())
864+
865+
// Build a set of CTP UIDs that belong to this test's PromotionStrategy, so that we can continue to run tests
866+
// in parallel without interfering with each other.
867+
ctpUIDs := make(map[string]bool)
868+
for _, ctp := range ctpList.Items {
869+
for _, ownerRef := range ctp.OwnerReferences {
870+
if ownerRef.Name == promotionStrategy.Name && ownerRef.UID == promotionStrategy.UID {
871+
ctpUIDs[string(ctp.UID)] = true
872+
break
873+
}
874+
}
875+
}
876+
877+
// List all previous-environment commit statuses and filter by ownership
860878
csList := promoterv1alpha1.CommitStatusList{}
861879
err = k8sClient.List(ctx, &csList, client.MatchingLabels{
862880
promoterv1alpha1.CommitStatusLabel: promoterv1alpha1.PreviousEnvironmentCommitStatusKey,
863881
})
864882
Expect(err).NotTo(HaveOccurred())
865-
Expect(len(csList.Items)).To(Equal(0))
883+
884+
// Filter to only include commit statuses owned by this test's CTPs
885+
testCommitStatuses := 0
886+
for _, cs := range csList.Items {
887+
for _, ownerRef := range cs.OwnerReferences {
888+
if ctpUIDs[string(ownerRef.UID)] {
889+
testCommitStatuses++
890+
break
891+
}
892+
}
893+
}
894+
Expect(testCommitStatuses).To(Equal(0))
866895

867896
By("Waiting for CTPs to reconcile after the conflict and verifying conflict resolution")
868897
Eventually(func(g Gomega) {

ui/components-lib/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/components-lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"@types/js-yaml": "^4.0.9",
1313
"ace-builds": "^1.43.2",
14-
"js-yaml": "^4.1.0",
14+
"js-yaml": "^4.1.1",
1515
"react": "18.3.1",
1616
"react-ace": "^14.0.1",
1717
"react-dom": "18.3.1",

ui/dashboard/package-lock.json

Lines changed: 16 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/extension/package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"dependencies": {
3535
"@types/js-yaml": "^4.0.9",
3636
"axios": "^1.12.0",
37-
"js-yaml": "^4.1.0",
37+
"js-yaml": "^4.1.1",
3838
"react": "18.3.1",
3939
"react-dom": "18.3.1",
4040
"zustand": "^3.7.2"

0 commit comments

Comments
 (0)