From 75856cb56f2c5e0c161ac465308f2b88a24e317a Mon Sep 17 00:00:00 2001 From: itvi-1234 Date: Thu, 12 Nov 2026 21:56:50 +0530 Subject: [PATCH] Bump the CI fixture to common v0.2.0 and expect the /rc/ extension id The smoke test asserted the old common-integrations id, which no longer exists. The fixture now pins runtimeconditions.io/x/rc/common v0.2.0, and the assertion checks the /rc/ prefix so it holds for both the full id and the short : form. --- scripts/ci-smoke.go | 2 +- testdata/ci/go-project/go.mod | 2 +- testdata/ci/go-project/go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/ci-smoke.go b/scripts/ci-smoke.go index 6edc1d5..88b200c 100644 --- a/scripts/ci-smoke.go +++ b/scripts/ci-smoke.go @@ -210,7 +210,7 @@ func checkProfile(data string) error { if profile.APIVersion != "runtimeconditions.io/v1alpha1" || profile.Kind != "RuntimeConditionsProfile" || profile.Metadata.Name != "ci-fixture" || profile.Workload.URI != "https://example.com/ci-fixture" || profile.Workload.Version != "1.0.0" || len(profile.Extensions) != 1 || - profile.Extensions[0] != "https://runtimeconditions.io/extensions/common-integrations/v1alpha1/runtimeconditions.extension.yaml" || + !strings.HasPrefix(profile.Extensions[0], "https://runtimeconditions.io/extensions/rc/common-integrations") || len(profile.Conditions) != 1 || profile.Conditions[0].Kind != "cache" || profile.Conditions[0].Interface["type"] != "key_value" || profile.Conditions[0].Interface["engine"] != "redis" { return fmt.Errorf("unexpected generated profile:\n%s", data) diff --git a/testdata/ci/go-project/go.mod b/testdata/ci/go-project/go.mod index ced99c5..0dcadfd 100644 --- a/testdata/ci/go-project/go.mod +++ b/testdata/ci/go-project/go.mod @@ -2,4 +2,4 @@ module example.com/rc-cli-ci-fixture go 1.25.0 -require runtimeconditions.io/x/rc/common v0.1.0 +require runtimeconditions.io/x/rc/common v0.2.0 diff --git a/testdata/ci/go-project/go.sum b/testdata/ci/go-project/go.sum index 6f58144..c6f0506 100644 --- a/testdata/ci/go-project/go.sum +++ b/testdata/ci/go-project/go.sum @@ -1,2 +1,2 @@ -runtimeconditions.io/x/rc/common v0.1.0 h1:65dv8adIbg7WQR1YbcTx6QfaEc4UBncuJ8GP0Z2/VV4= -runtimeconditions.io/x/rc/common v0.1.0/go.mod h1:nlO8VZnPbfC2ohtbJwkhv7AEqG5KEWMPCDHCpOVMrkM= +runtimeconditions.io/x/rc/common v0.2.0 h1:W1fdeprrNE2XdJUvtsEgclT1aRSJ3UPRus7oysE+VY8= +runtimeconditions.io/x/rc/common v0.2.0/go.mod h1:VMdIVuWNgvHH+ywZ54l83ZrLfxjjiM743r93nj9MiPA=