+ echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54 + RESULTS_DIR_PATH=results + '[' -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54 ']' + mkdir -p /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54 + RESULTS_DIR_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/results + mkdir -p /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/results + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/results + RELEASE_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/release.json + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/release.json + get-resource release ex-registry-sh-32b942c2/snapshot-sample-32b942c2-xmlbw + tee /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/release.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "Release", "metadata": { "creationTimestamp": "2026-07-06T21:58:39Z", "finalizers": [ "appstudio.redhat.com/release-finalizer" ], "generateName": "snapshot-sample-32b942c2-", "generation": 1, "labels": { "appstudio.openshift.io/application": "appstudio", "appstudio.openshift.io/component": "dc-metro-map", "pac.test.appstudio.openshift.io/event-type": "push", "release.appstudio.openshift.io/automated": "true", "release.appstudio.openshift.io/releasePlan": "source-releaseplan", "release.appstudio.openshift.io/snapshot": "snapshot-sample-32b942c2" }, "name": "snapshot-sample-32b942c2-xmlbw", "namespace": "ex-registry-sh-32b942c2", "resourceVersion": "9425", "uid": "5bdadaf1-a955-4382-bfaf-b4e579949a81" }, "spec": { "gracePeriodDays": 7, "releasePlan": "source-releaseplan", "snapshot": "snapshot-sample-32b942c2" }, "status": { "attribution": { "author": "kubernetes-admin", "standingAuthorization": true }, "automated": true, "conditions": [ { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Progressing", "status": "False", "type": "Released" }, { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Succeeded", "status": "True", "type": "Validated" }, { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Skipped", "status": "True", "type": "TenantCollectorsPipelineProcessed" }, { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Skipped", "status": "True", "type": "ManagedCollectorsPipelineProcessed" }, { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Skipped", "status": "True", "type": "TenantPipelineProcessed" }, { "lastTransitionTime": "2026-07-06T21:58:40Z", "message": "", "reason": "Progressing", "status": "False", "type": "ManagedPipelineProcessed" } ], "expirationTime": "2026-07-13T21:58:39Z", "managedProcessing": { "pipelineRun": "ex-registry-sh-managed-32b942c2/managed-ls8h2", "roleBindings": { "tenantRoleBinding": "ex-registry-sh-32b942c2/snapshot-sample-32b942c2-xmlbw-rolebinding-for-release-pipzb5dp" }, "startTime": "2026-07-06T21:58:40Z" }, "startTime": "2026-07-06T21:58:39Z", "target": "ex-registry-sh-managed-32b942c2", "validation": { "time": "2026-07-06T21:58:39Z" } } } + RELEASEPLAN_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan.json + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan.json + get-resource releaseplan ex-registry-sh-32b942c2/source-releaseplan + tee /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "ReleasePlan", "metadata": { "creationTimestamp": "2026-07-06T21:58:39Z", "generation": 1, "labels": { "originating-tool": "push-to-external-registry-self-hosted-quay", "release.appstudio.openshift.io/author": "kubernetes-admin", "release.appstudio.openshift.io/auto-release": "true", "release.appstudio.openshift.io/releasePlanAdmission": "demo", "release.appstudio.openshift.io/standing-attribution": "true" }, "name": "source-releaseplan", "namespace": "ex-registry-sh-32b942c2", "resourceVersion": "9404", "uid": "06f6bbed-ce6d-4692-9c50-dce02c4073dc" }, "spec": { "application": "appstudio", "releaseGracePeriodDays": 7, "target": "ex-registry-sh-managed-32b942c2" }, "status": { "conditions": [ { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Matched", "status": "True", "type": "Matched" } ], "releasePlanAdmission": { "active": true, "name": "ex-registry-sh-managed-32b942c2/demo" } } } + RELEASEPLANADMISSION_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan_admission.json + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan_admission.json + get-resource releaseplanadmission ex-registry-sh-managed-32b942c2/demo + tee /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan_admission.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "ReleasePlanAdmission", "metadata": { "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"appstudio.redhat.com/v1alpha1\",\"kind\":\"ReleasePlanAdmission\",\"metadata\":{\"annotations\":{},\"labels\":{\"originating-tool\":\"push-to-external-registry-self-hosted-quay\"},\"name\":\"demo\",\"namespace\":\"ex-registry-sh-managed-32b942c2\"},\"spec\":{\"applications\":[\"appstudio\"],\"data\":{\"mapping\":{\"components\":[{\"name\":\"dc-metro-map\",\"repositories\":[{\"url\":\"quay-service.quay/test-org/released-dc-metro-map\"}]}],\"defaults\":{\"public\":true,\"pushSourceContainer\":false,\"tags\":[\"latest\"]},\"registrySecret\":\"quay-api-token\"}},\"origin\":\"ex-registry-sh-32b942c2\",\"pipeline\":{\"pipelineRef\":{\"ociStorage\":\"quay-service.quay/test-org/trusted-artifacts\",\"params\":[{\"name\":\"url\",\"value\":\"https://github.com/konflux-ci/release-service-catalog\"},{\"name\":\"revision\",\"value\":\"2ec8cae131f2126c9243aa9aeff7ecd260f2f43e\"},{\"name\":\"pathInRepo\",\"value\":\"pipelines/managed/push-to-external-registry/push-to-external-registry.yaml\"}],\"resolver\":\"git\"},\"serviceAccountName\":\"release-service-account\",\"timeouts\":{\"pipeline\":\"4h0m0s\",\"tasks\":\"4h0m0s\"}},\"policy\":\"ex-registry-sh-policy-32b942c2\"}}\n" }, "creationTimestamp": "2026-07-06T21:58:36Z", "generation": 1, "labels": { "originating-tool": "push-to-external-registry-self-hosted-quay", "release.appstudio.openshift.io/block-releases": "false" }, "name": "demo", "namespace": "ex-registry-sh-managed-32b942c2", "resourceVersion": "9405", "uid": "8b177ee8-884e-4f7b-9dd9-939256abb990" }, "spec": { "applications": [ "appstudio" ], "data": { "mapping": { "components": [ { "name": "dc-metro-map", "repositories": [ { "url": "quay-service.quay/test-org/released-dc-metro-map" } ] } ], "defaults": { "public": true, "pushSourceContainer": false, "tags": [ "latest" ] }, "registrySecret": "quay-api-token" } }, "origin": "ex-registry-sh-32b942c2", "pipeline": { "pipelineRef": { "ociStorage": "quay-service.quay/test-org/trusted-artifacts", "params": [ { "name": "url", "value": "https://github.com/konflux-ci/release-service-catalog" }, { "name": "revision", "value": "2ec8cae131f2126c9243aa9aeff7ecd260f2f43e" }, { "name": "pathInRepo", "value": "pipelines/managed/push-to-external-registry/push-to-external-registry.yaml" } ], "resolver": "git" }, "serviceAccountName": "release-service-account", "timeouts": { "pipeline": "4h0m0s", "tasks": "4h0m0s" } }, "policy": "ex-registry-sh-policy-32b942c2" }, "status": { "conditions": [ { "lastTransitionTime": "2026-07-06T21:58:39Z", "message": "", "reason": "Matched", "status": "True", "type": "Matched" } ], "releasePlans": [ { "active": true, "name": "ex-registry-sh-32b942c2/source-releaseplan" } ] } } + RELEASESERVICECONFIG_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_service_config.json + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_service_config.json + get-resource releaseserviceconfig release-service/release-service-config + tee /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_service_config.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "ReleaseServiceConfig", "metadata": { "creationTimestamp": "2026-07-06T21:54:33Z", "generation": 1, "name": "release-service-config", "namespace": "release-service", "resourceVersion": "7016", "uid": "3f2697c3-9a52-4159-937f-08a97131ff42" }, "spec": { "EmptyDirOverrides": [ { "pathInRepo": "pipelines/managed/fbc-release/fbc-release.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-artifacts-to-cdn/push-artifacts-to-cdn.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-disk-images-to-cdn/push-disk-images-to-cdn.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-disk-images-to-marketplaces/push-disk-images-to-marketplaces.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-oot-kmods/push-oot-kmods.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-rpm-to-koji/push-rpm-to-koji.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-tekton-task-bundles-to-external-registry/push-tekton-task-bundles-to-external-registry.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-to-addons-registry/push-to-addons-registry.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-to-external-registry/push-to-external-registry.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/release-to-github/release-to-github.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/release-to-mrrc/release-to-mrrc.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/rh-advisories/rh-advisories.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/rh-push-to-external-registry/rh-push-to-external-registry.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/rh-push-to-registry-redhat-io/rh-push-to-registry-redhat-io.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/rhtap-service-push/rhtap-service-push.yaml", "revision": ".*", "url": ".*" }, { "pathInRepo": "pipelines/managed/push-rpms-to-pulp/push-rpms-to-pulp.yaml", "revision": ".*", "url": ".*" } ], "debug": true } } + echo -e '\nFetching Snapshot Spec' + SNAPSHOTSPEC_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/snapshot_spec.json + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/snapshot_spec.json Fetching Snapshot Spec + get-resource snapshot ex-registry-sh-32b942c2/snapshot-sample-32b942c2 '{.spec}' + jq '(if (.componentGroup == null or .componentGroup == "") then .componentGroup = .application else . end) | del(.application)' + tee /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/snapshot_spec.json { "artifacts": {}, "componentGroup": "appstudio", "components": [ { "containerImage": "quay-service.quay/test-org/dcmetromap@sha256:544259be8bcd9e6a2066224b805d854d863064c9b64fa3a87bfcd03f5b0f28e6", "name": "dc-metro-map", "source": { "git": { "revision": "d49914874789147eb2de9bb6a12cd5d150bfff92", "url": "https://github.com/redhat-appstudio-qe/dc-metro-map-release" } }, "version": "" } ] } ++ get-resource snapshot ex-registry-sh-32b942c2/snapshot-sample-32b942c2 '{.metadata.labels}' + labels='{"appstudio.openshift.io/application":"appstudio","appstudio.openshift.io/component":"dc-metro-map","originating-tool":"push-to-external-registry-self-hosted-quay","pac.test.appstudio.openshift.io/event-type":"push","test.appstudio.openshift.io/type":"component"}' ++ jq -r '."appstudio.openshift.io/build-pipelinerun" // ""' + BUILD_ID= + echo -n '' + tee /tekton/results/snapshotBuildId + echo -e '\nGenerating collectors data' Generating collectors data ++ get-resource release ex-registry-sh-32b942c2/snapshot-sample-32b942c2-xmlbw '{.status.collectors}' + collectors_status='{}' + echo '***collectors status' + echo '{}' + echo '***' ***collectors status {} *** ++ jq -c ' def deepmerge(a; b): reduce b[] as $item (a; reduce ($item | keys_unsorted[]) as $key (.; $item[$key] as $val | ($val | type) as $type | .[$key] = if ($type == "object") then deepmerge({}; [if .[$key] == null then {} else .[$key] end, $val]) elif ($type == "array") then (.[$key] + $val | unique) else $val end) ); # Ensure we safely handle missing collectors (.? // {}) as $collectors | # Flatten and combine the managed and tenant sections [($collectors.managed? // {} | to_entries | map(.value)) + ($collectors.tenant? // {} | to_entries | map(.value))] | flatten | deepmerge({}; .) ' + collectors_result='{}' + echo '***collectors' + jq ***collectors {} + echo '***' + echo -e '\nFetching merged data json' *** Fetching merged data json ++ get-resource release ex-registry-sh-32b942c2/snapshot-sample-32b942c2-xmlbw '{.spec.data}' + release_result='{}' ++ get-resource releaseplan ex-registry-sh-32b942c2/source-releaseplan '{.spec.data}' + release_plan_result='{}' ++ get-resource releaseplanadmission ex-registry-sh-managed-32b942c2/demo '{.spec.data}' + release_plan_admission_result='{"mapping":{"components":[{"name":"dc-metro-map","repositories":[{"url":"quay-service.quay/test-org/released-dc-metro-map"}]}],"defaults":{"public":true,"pushSourceContainer":false,"tags":["latest"]},"registrySecret":"quay-api-token"}}' ++ merge-json '{}' '{}' + merged_output='{}' ++ merge-json '{}' '{}' + merged_output='{}' ++ merge-json '{}' '{"mapping":{"components":[{"name":"dc-metro-map","repositories":[{"url":"quay-service.quay/test-org/released-dc-metro-map"}]}],"defaults":{"public":true,"pushSourceContainer":false,"tags":["latest"]},"registrySecret":"quay-api-token"}}' + merged_output='{"mapping":{"components":[{"name":"dc-metro-map","repositories":[{"url":"quay-service.quay/test-org/released-dc-metro-map"}]}],"defaults":{"public":true,"pushSourceContainer":false,"tags":["latest"]},"registrySecret":"quay-api-token"}}' + DATA_PATH=8181fd5b-b1e2-40cd-bdfa-63968660aa54/data.json + echo -n 8181fd5b-b1e2-40cd-bdfa-63968660aa54/data.json + echo '{"mapping":{"components":[{"name":"dc-metro-map","repositories":[{"url":"quay-service.quay/test-org/released-dc-metro-map"}]}],"defaults":{"public":true,"pushSourceContainer":false,"tags":["latest"]},"registrySecret":"quay-api-token"}}' + tee /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/data.json {"mapping":{"components":[{"name":"dc-metro-map","repositories":[{"url":"quay-service.quay/test-org/released-dc-metro-map"}]}],"defaults":{"public":true,"pushSourceContainer":false,"tags":["latest"]},"registrySecret":"quay-api-token"}} ++ jq -c .spec.pipeline.pipelineRef /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/release_plan_admission.json + pipelineref='{"ociStorage":"quay-service.quay/test-org/trusted-artifacts","params":[{"name":"url","value":"https://github.com/konflux-ci/release-service-catalog"},{"name":"revision","value":"2ec8cae131f2126c9243aa9aeff7ecd260f2f43e"},{"name":"pathInRepo","value":"pipelines/managed/push-to-external-registry/push-to-external-registry.yaml"}],"resolver":"git"}' ++ jq -r '.resolver // ""' + resolver=git + '[' git == git ']' ++ jq -r '.params[] | select(.name=="url") | .value' + url=https://github.com/konflux-ci/release-service-catalog ++ jq -r '.params[] | select(.name=="revision") | .value' + revision=2ec8cae131f2126c9243aa9aeff7ecd260f2f43e ++ jq -r '.params[] | select(.name=="pathInRepo") | .value' + pathinrepo=pipelines/managed/push-to-external-registry/push-to-external-registry.yaml + orgrepo=konflux-ci/release-service-catalog ++ echo konflux-ci/release-service-catalog ++ cut -f1 -d/ + org=konflux-ci ++ echo konflux-ci/release-service-catalog ++ cut -f2 -d/ ++ cut -d. -f1 + repo=release-service-catalog ++ curl -s https://api.github.com/repos/konflux-ci/release-service-catalog/commits/2ec8cae131f2126c9243aa9aeff7ecd260f2f43e ++ jq -r '.sha // ""' + sha=2ec8cae131f2126c9243aa9aeff7ecd260f2f43e + org=konflux-ci + repo=release-service-catalog + revision=2ec8cae131f2126c9243aa9aeff7ecd260f2f43e + pathinrepo=pipelines/managed/push-to-external-registry/push-to-external-registry.yaml + sha=2ec8cae131f2126c9243aa9aeff7ecd260f2f43e + echo '' + echo 'Release Pipeline Ref Info:' + echo -------------------------- Release Pipeline Ref Info: -------------------------- ++ jq -n -c --arg org konflux-ci --arg repo release-service-catalog --arg revision 2ec8cae131f2126c9243aa9aeff7ecd260f2f43e --arg pathinrepo pipelines/managed/push-to-external-registry/push-to-external-registry.yaml --arg sha 2ec8cae131f2126c9243aa9aeff7ecd260f2f43e '$ARGS.named' + json='{"org":"konflux-ci","repo":"release-service-catalog","revision":"2ec8cae131f2126c9243aa9aeff7ecd260f2f43e","pathinrepo":"pipelines/managed/push-to-external-registry/push-to-external-registry.yaml","sha":"2ec8cae131f2126c9243aa9aeff7ecd260f2f43e"}' + echo '{"org":"konflux-ci","repo":"release-service-catalog","revision":"2ec8cae131f2126c9243aa9aeff7ecd260f2f43e","pathinrepo":"pipelines/managed/push-to-external-registry/push-to-external-registry.yaml","sha":"2ec8cae131f2126c9243aa9aeff7ecd260f2f43e"}' + jq . { "org": "konflux-ci", "repo": "release-service-catalog", "revision": "2ec8cae131f2126c9243aa9aeff7ecd260f2f43e", "pathinrepo": "pipelines/managed/push-to-external-registry/push-to-external-registry.yaml", "sha": "2ec8cae131f2126c9243aa9aeff7ecd260f2f43e" } ++ jq -r '.singleComponentMode // "false"' /var/workdir/release/8181fd5b-b1e2-40cd-bdfa-63968660aa54/data.json + SINGLE_COMPONENT_MODE=false ++ echo ex-registry-sh-32b942c2/snapshot-sample-32b942c2 ++ cut -f2 -d/ + SNAPSHOT_NAME=snapshot-sample-32b942c2 ++ echo ex-registry-sh-32b942c2/snapshot-sample-32b942c2 ++ cut -f1 -d/ + SNAPSHOT_NAMESPACE=ex-registry-sh-32b942c2 + echo -n false + tee /tekton/results/singleComponentMode + echo -n snapshot-sample-32b942c2 + tee /tekton/results/snapshotName + echo -n ex-registry-sh-32b942c2 + tee /tekton/results/snapshotNamespace falsesnapshot-sample-32b942c2ex-registry-sh-32b942c2