+ echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0 + RESULTS_DIR_PATH=results + '[' -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0 ']' + mkdir -p /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0 + RESULTS_DIR_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/results + mkdir -p /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/results + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/results + RELEASE_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release.json + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release.json + get-resource release happy-path-bh74/snapshot-sample-7fqc-d499148-899hr + tee /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "Release", "metadata": { "annotations": { "pac.test.appstudio.openshift.io/sha": "d49914874789147eb2de9bb6a12cd5d150bfff92", "pac.test.appstudio.openshift.io/url-repository": "https://github.com/redhat-appstudio-qe/dc-metro-map-release" }, "creationTimestamp": "2026-08-12T16:06:03Z", "finalizers": [ "appstudio.redhat.com/release-finalizer" ], "generateName": "snapshot-sample-7fqc-d499148-", "generation": 1, "labels": { "appstudio.openshift.io/application": "appstudio", "appstudio.openshift.io/component": "dc-metro-map", "pac.test.appstudio.openshift.io/event-type": "push", "pac.test.appstudio.openshift.io/sender": "release-service-e2e", "release.appstudio.openshift.io/automated": "true", "release.appstudio.openshift.io/releasePlan": "source-releaseplan", "release.appstudio.openshift.io/snapshot": "snapshot-sample-7fqc" }, "name": "snapshot-sample-7fqc-d499148-899hr", "namespace": "happy-path-bh74", "resourceVersion": "10756", "uid": "087a1843-08aa-4fb6-9d21-67d5599f2b82" }, "spec": { "gracePeriodDays": 7, "releasePlan": "source-releaseplan", "snapshot": "snapshot-sample-7fqc" }, "status": { "attribution": { "author": "kubernetes-admin", "standingAuthorization": true }, "automated": true, "conditions": [ { "lastTransitionTime": "2026-08-12T16:06:03Z", "message": "", "reason": "Progressing", "status": "False", "type": "Released" }, { "lastTransitionTime": "2026-08-12T16:06:03Z", "message": "", "reason": "Succeeded", "status": "True", "type": "Validated" }, { "lastTransitionTime": "2026-08-12T16:06:03Z", "message": "", "reason": "Skipped", "status": "True", "type": "TenantCollectorsPipelineProcessed" }, { "lastTransitionTime": "2026-08-12T16:06:03Z", "message": "", "reason": "Skipped", "status": "True", "type": "ManagedCollectorsPipelineProcessed" }, { "lastTransitionTime": "2026-08-12T16:06:03Z", "message": "", "reason": "Skipped", "status": "True", "type": "TenantPipelineProcessed" }, { "lastTransitionTime": "2026-08-12T16:06:03Z", "message": "", "reason": "Progressing", "status": "False", "type": "ManagedPipelineProcessed" } ], "expirationTime": "2026-08-19T16:06:03Z", "managedPipelineAttempts": [ { "pipelineRun": "happy-path-managed/managed-6p5kx", "roleBindings": { "tenantRoleBinding": "happy-path-bh74/snapshot-sample-7fqc-d499148-899hr-rolebinding-for-releasefzmq4" }, "startTime": "2026-08-12T16:06:03Z", "status": "Progressing" } ], "managedProcessing": { "pipelineRun": "happy-path-managed/managed-6p5kx", "roleBindings": { "tenantRoleBinding": "happy-path-bh74/snapshot-sample-7fqc-d499148-899hr-rolebinding-for-releasefzmq4" }, "startTime": "2026-08-12T16:06:03Z" }, "startTime": "2026-08-12T16:06:03Z", "target": "happy-path-managed", "validation": { "time": "2026-08-12T16:06:03Z" } } } + RELEASEPLAN_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan.json + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan.json + get-resource releaseplan happy-path-bh74/source-releaseplan + tee /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "ReleasePlan", "metadata": { "creationTimestamp": "2026-08-12T16:06:02Z", "generation": 1, "labels": { "release.appstudio.openshift.io/author": "kubernetes-admin", "release.appstudio.openshift.io/auto-release": "true", "release.appstudio.openshift.io/standing-attribution": "true" }, "name": "source-releaseplan", "namespace": "happy-path-bh74", "resourceVersion": "10643", "uid": "5d1e4d3c-96c3-4230-858a-45972eeb7821" }, "spec": { "application": "appstudio", "releaseGracePeriodDays": 7, "target": "happy-path-managed" }, "status": { "conditions": [ { "lastTransitionTime": "2026-08-12T16:06:02Z", "message": "", "reason": "Matched", "status": "True", "type": "Matched" } ], "releasePlanAdmission": { "active": true, "name": "happy-path-managed/demo" } } } + RELEASEPLANADMISSION_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan_admission.json + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan_admission.json + get-resource releaseplanadmission happy-path-managed/demo + tee /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan_admission.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "ReleasePlanAdmission", "metadata": { "creationTimestamp": "2026-08-12T16:06:02Z", "generation": 1, "labels": { "release.appstudio.openshift.io/block-releases": "false" }, "name": "demo", "namespace": "happy-path-managed", "resourceVersion": "10642", "uid": "e19ea83f-3b4c-484b-8899-37c8974732e0" }, "spec": { "applications": [ "appstudio" ], "data": { "mapping": { "components": [ { "component": "", "repository": "quay.io/redhat-appstudio-qe/dcmetromap" } ] } }, "origin": "happy-path-bh74", "pipeline": { "pipelineRef": { "params": [ { "name": "url", "value": "https://github.com/konflux-ci/release-service-catalog" }, { "name": "revision", "value": "development" }, { "name": "pathInRepo", "value": "pipelines/managed/e2e/e2e.yaml" } ], "resolver": "git" }, "serviceAccountName": "release-service-account", "timeouts": {} }, "policy": "hpath-policy-bn2e" }, "status": { "conditions": [ { "lastTransitionTime": "2026-08-12T16:06:02Z", "message": "", "reason": "Matched", "status": "True", "type": "Matched" } ], "releasePlans": [ { "active": true, "name": "happy-path-bh74/source-releaseplan" } ], "retryInfo": { "enabled": false, "reason": "pipeline not configured for retries" } } } + RELEASESERVICECONFIG_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_service_config.json + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_service_config.json + get-resource releaseserviceconfig release-service/release-service-config + tee /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_service_config.json { "apiVersion": "appstudio.redhat.com/v1alpha1", "kind": "ReleaseServiceConfig", "metadata": { "creationTimestamp": "2026-08-12T16:01:39Z", "generation": 1, "labels": { "konflux.konflux-ci.dev/component": "release", "konflux.konflux-ci.dev/owner": "konflux-release-service" }, "name": "release-service-config", "namespace": "release-service", "ownerReferences": [ { "apiVersion": "konflux.konflux-ci.dev/v1alpha1", "blockOwnerDeletion": true, "controller": true, "kind": "KonfluxReleaseService", "name": "konflux-release-service", "uid": "dded6747-a117-41c8-bb31-8a31c20a0329" } ], "resourceVersion": "7234", "uid": "d50b62e9-74ab-44a1-936d-769eba76de87" }, "spec": { "debug": false } } + echo -e '\nFetching Snapshot Spec' + SNAPSHOTSPEC_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/snapshot_spec.json + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/snapshot_spec.json Fetching Snapshot Spec + get-resource snapshot happy-path-bh74/snapshot-sample-7fqc '{.spec}' + jq '(if (.componentGroup == null or .componentGroup == "") then .componentGroup = .application else . end) | del(.application)' + tee /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/snapshot_spec.json { "artifacts": {}, "components": [ { "containerImage": "quay.io/hacbs-release-tests/dcmetromap@sha256:544259be8bcd9e6a2066224b805d854d863064c9b64fa3a87bfcd03f5b0f28e6", "name": "dc-metro-map", "source": { "git": { "revision": "d49914874789147eb2de9bb6a12cd5d150bfff92", "url": "https://github.com/redhat-appstudio-qe/dc-metro-map-release" } } } ], "componentGroup": "appstudio" } ++ get-resource snapshot happy-path-bh74/snapshot-sample-7fqc '{.metadata.labels}' + labels='{"appstudio.openshift.io/application":"appstudio","appstudio.openshift.io/component":"dc-metro-map","pac.test.appstudio.openshift.io/event-type":"push","pac.test.appstudio.openshift.io/sender":"release-service-e2e","release.appstudio.openshift.io/author":"release-service-e2e","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 happy-path-bh74/snapshot-sample-7fqc-d499148-899hr '{.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 + collectors_result='{}' + echo '***collectors' + jq {} *** Fetching merged data json + echo '***' + echo -e '\nFetching merged data json' ++ get-resource release happy-path-bh74/snapshot-sample-7fqc-d499148-899hr '{.spec.data}' + release_result='{}' ++ get-resource releaseplan happy-path-bh74/source-releaseplan '{.spec.data}' + release_plan_result='{}' ++ get-resource releaseplanadmission happy-path-managed/demo '{.spec.data}' + release_plan_admission_result='{"mapping":{"components":[{"component":"","repository":"quay.io/redhat-appstudio-qe/dcmetromap"}]}}' ++ merge-json '{}' '{}' + merged_output='{}' ++ merge-json '{}' '{}' + merged_output='{}' ++ merge-json '{}' '{"mapping":{"components":[{"component":"","repository":"quay.io/redhat-appstudio-qe/dcmetromap"}]}}' + merged_output='{"mapping":{"components":[{"component":"","repository":"quay.io/redhat-appstudio-qe/dcmetromap"}]}}' + DATA_PATH=2e96dd9f-8e72-4ca1-b722-b49707ec66b0/data.json + echo -n 2e96dd9f-8e72-4ca1-b722-b49707ec66b0/data.json + echo '{"mapping":{"components":[{"component":"","repository":"quay.io/redhat-appstudio-qe/dcmetromap"}]}}' + tee /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/data.json {"mapping":{"components":[{"component":"","repository":"quay.io/redhat-appstudio-qe/dcmetromap"}]}} ++ jq -c .spec.pipeline.pipelineRef /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/release_plan_admission.json + pipelineref='{"params":[{"name":"url","value":"https://github.com/konflux-ci/release-service-catalog"},{"name":"revision","value":"development"},{"name":"pathInRepo","value":"pipelines/managed/e2e/e2e.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=development ++ jq -r '.params[] | select(.name=="pathInRepo") | .value' + pathinrepo=pipelines/managed/e2e/e2e.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/development ++ jq -r '.sha // ""' + sha=acbaf0738b24edf5947e9f66fa42cb905a77f00b + org=konflux-ci + repo=release-service-catalog + revision=development + pathinrepo=pipelines/managed/e2e/e2e.yaml + sha=acbaf0738b24edf5947e9f66fa42cb905a77f00b + 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 development --arg pathinrepo pipelines/managed/e2e/e2e.yaml --arg sha acbaf0738b24edf5947e9f66fa42cb905a77f00b '$ARGS.named' + json='{"org":"konflux-ci","repo":"release-service-catalog","revision":"development","pathinrepo":"pipelines/managed/e2e/e2e.yaml","sha":"acbaf0738b24edf5947e9f66fa42cb905a77f00b"}' + echo '{"org":"konflux-ci","repo":"release-service-catalog","revision":"development","pathinrepo":"pipelines/managed/e2e/e2e.yaml","sha":"acbaf0738b24edf5947e9f66fa42cb905a77f00b"}' + jq . { "org": "konflux-ci", "repo": "release-service-catalog", "revision": "development", "pathinrepo": "pipelines/managed/e2e/e2e.yaml", "sha": "acbaf0738b24edf5947e9f66fa42cb905a77f00b" } ++ jq -r '.singleComponentMode // "false"' /var/workdir/release/2e96dd9f-8e72-4ca1-b722-b49707ec66b0/data.json + SINGLE_COMPONENT_MODE=false ++ echo happy-path-bh74/snapshot-sample-7fqc ++ cut -f2 -d/ + SNAPSHOT_NAME=snapshot-sample-7fqc ++ echo happy-path-bh74/snapshot-sample-7fqc ++ cut -f1 -d/ + SNAPSHOT_NAMESPACE=happy-path-bh74 + echo -n false + tee /tekton/results/singleComponentMode + echo -n snapshot-sample-7fqc + tee /tekton/results/snapshotName + echo -n happy-path-bh74 + tee /tekton/results/snapshotNamespace falsesnapshot-sample-7fqchappy-path-bh74