+ RESULTS_DIR=/var/workdir/release/a410aca1-7b1b-4035-84b4-7bf05eb06b03/results + TEMP_FILE=/tmp/temp.json + RESULTS_JSON=/tmp/results.json + echo '{}' ++ '[' -d /var/workdir/release/a410aca1-7b1b-4035-84b4-7bf05eb06b03/results ']' ++ find /var/workdir/release/a410aca1-7b1b-4035-84b4-7bf05eb06b03/results -type f + for resultsFile in $([ -d "$RESULTS_DIR" ] && find "$RESULTS_DIR" -type f) + jq . /var/workdir/release/a410aca1-7b1b-4035-84b4-7bf05eb06b03/results/push-snapshot-results.json + jq --slurpfile new /var/workdir/release/a410aca1-7b1b-4035-84b4-7bf05eb06b03/results/push-snapshot-results.json ' # Store current values as $base and get all unique keys from both objects . as $base | ($base | keys + ($new[0] | keys)) | unique | # Process each key and build the merged result reduce .[] as $key ({}; . + {($key): ( # Case 1: Both values are arrays - concatenate them if ($new[0][$key] | type == "array") and ($base[$key] | type == "array") then $base[$key] + $new[0][$key] else # Case 2: Both values are objects - merge them recursively if ($new[0][$key] | type == "object") and ($base[$key] | type == "object") then $base[$key] * $new[0][$key] # Case 3: Default - use new value or fall back to base value else $new[0][$key] // $base[$key] end end )}) ' /tmp/results.json + mv /tmp/temp.json /tmp/results.json ++ cat /tmp/results.json + FINAL_JSON='{ "images": [ { "arches": [ "amd64" ], "oses": [ "linux" ], "name": "tsf-comp-nlwv", "shasum": "sha256:c812d159a40a89ca07ec5593446f88fbe0246495d3310d57e2929da304cf8ac2", "urls": [ "quay.io/rhtap_qe/default-tenant-managed/tsf-comp-nlwv:ba3990ce81844610a3c90ff70311535342e90425", "quay.io/rhtap_qe/default-tenant-managed/tsf-comp-nlwv:latest" ] } ] }' + IFS=/ + read -r namespace name ++ date +%s + PATCH_FILE=/tmp/patch-1774654548.json + echo 'status: {'\''artifacts'\'':{ "images": [ { "arches": [ "amd64" ], "oses": [ "linux" ], "name": "tsf-comp-nlwv", "shasum": "sha256:c812d159a40a89ca07ec5593446f88fbe0246495d3310d57e2929da304cf8ac2", "urls": [ "quay.io/rhtap_qe/default-tenant-managed/tsf-comp-nlwv:ba3990ce81844610a3c90ff70311535342e90425", "quay.io/rhtap_qe/default-tenant-managed/tsf-comp-nlwv:latest" ] } ] }}' + kubectl --warnings-as-errors=true patch release -n default-tenant tsf-app-xtzk-20260327-232357-000-ba3990c-xcg2q --type=merge --subresource status --patch-file /tmp/patch-1774654548.json release.appstudio.redhat.com/tsf-app-xtzk-20260327-232357-000-ba3990c-xcg2q patched + rm -f /tmp/patch-1774654548.json