{
    "apiVersion": "v1",
    "items": [
        {
            "apiVersion": "tekton.dev/v1",
            "kind": "TaskRun",
            "metadata": {
                "annotations": {
                    "chains.tekton.dev/signed": "true",
                    "operator-sdk/primary-resource": "retry-task-timeout-y5zm/snapshot-sample-i89w-d499148-cvn7j",
                    "operator-sdk/primary-resource-type": "Release.appstudio.redhat.com",
                    "pac.test.appstudio.openshift.io/sha": "d49914874789147eb2de9bb6a12cd5d150bfff92",
                    "pac.test.appstudio.openshift.io/url-repository": "https://github.com/redhat-appstudio-qe/dc-metro-map-release",
                    "pipeline.tekton.dev/release": "d55f53a",
                    "results.tekton.dev/childReadyForDeletion": "true",
                    "results.tekton.dev/record": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a/records/c2fb59a1-4bd9-463c-b013-a871701fdf48",
                    "results.tekton.dev/result": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "results.tekton.dev/stored": "true",
                    "tekton.dev/pipelines.minVersion": "0.12.1",
                    "tekton.dev/tags": "release"
                },
                "creationTimestamp": "2026-11-26T12:12:58Z",
                "deletionGracePeriodSeconds": 0,
                "deletionTimestamp": "2026-11-26T12:14:55Z",
                "finalizers": [
                    "results.tekton.dev/taskrun"
                ],
                "generation": 2,
                "labels": {
                    "app.kubernetes.io/managed-by": "tekton-pipelines",
                    "appstudio.openshift.io/application": "appstudio",
                    "appstudio.openshift.io/service": "release",
                    "appstudio.openshift.io/snapshot": "snapshot-sample-i89w",
                    "pipelines.appstudio.openshift.io/type": "managed",
                    "release.appstudio.openshift.io/attempt": "1",
                    "release.appstudio.openshift.io/name": "snapshot-sample-i89w-d499148-cvn7j",
                    "release.appstudio.openshift.io/namespace": "retry-task-timeout-y5zm",
                    "tekton.dev/memberOf": "tasks",
                    "tekton.dev/pipeline": "retry-e2e-managed",
                    "tekton.dev/pipelineRun": "managed-4h8bw",
                    "tekton.dev/pipelineRunUID": "35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "tekton.dev/pipelineTask": "collect-data"
                },
                "name": "managed-4h8bw-collect-data",
                "namespace": "retry-task-timeout-managed",
                "ownerReferences": [
                    {
                        "apiVersion": "tekton.dev/v1",
                        "blockOwnerDeletion": true,
                        "controller": true,
                        "kind": "PipelineRun",
                        "name": "managed-4h8bw",
                        "uid": "35c2ed64-f7ca-468d-abd5-994f8b856a9a"
                    }
                ],
                "resourceVersion": "24922",
                "uid": "c2fb59a1-4bd9-463c-b013-a871701fdf48"
            },
            "spec": {
                "params": [
                    {
                        "name": "releasePlanAdmission",
                        "value": "retry-task-timeout-managed/demo"
                    }
                ],
                "serviceAccountName": "release-service-account",
                "taskSpec": {
                    "params": [
                        {
                            "name": "releasePlanAdmission",
                            "type": "string"
                        }
                    ],
                    "results": [
                        {
                            "name": "failMode",
                            "type": "string"
                        },
                        {
                            "name": "failOnTask",
                            "type": "string"
                        }
                    ],
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "50m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "collect-data",
                            "script": "#!/usr/bin/env bash\nset -euo pipefail\n\nDATA=$(get-resource releasePlanAdmission \"retry-task-timeout-managed/demo\" |\n  jq '.spec.data // {}')\n\nFAIL_MODE=$(jq -r '.failMode // \"none\"' \u003c\u003c\u003c\"${DATA}\")\nFAIL_ON_TASK=$(jq -r '.failOnTask // \"task-01\"' \u003c\u003c\u003c\"${DATA}\")\n\nprintf '%s' \"${FAIL_MODE}\" \u003e \"$(results.failMode.path)\"\nprintf '%s' \"${FAIL_ON_TASK}\" \u003e \"$(results.failOnTask.path)\"\n"
                        }
                    ]
                },
                "timeout": "1h0m0s"
            },
            "status": {
                "artifacts": {},
                "completionTime": "2026-11-26T12:13:03Z",
                "conditions": [
                    {
                        "lastTransitionTime": "2026-11-26T12:13:03Z",
                        "message": "All Steps have completed executing",
                        "reason": "Succeeded",
                        "status": "True",
                        "type": "Succeeded"
                    }
                ],
                "podName": "managed-4h8bw-collect-data-pod",
                "provenance": {
                    "featureFlags": {
                        "awaitSidecarReadiness": true,
                        "coschedule": "workspaces",
                        "enableAPIFields": "beta",
                        "enableProvenanceInStatus": true,
                        "enforceNonfalsifiability": "none",
                        "maxResultSize": 4096,
                        "resultExtractionMethod": "termination-message",
                        "runningInEnvWithInjectedSidecars": true,
                        "sendCloudEventsForRuns": true,
                        "setSecurityContext": true,
                        "verificationNoMatchPolicy": "ignore"
                    }
                },
                "results": [
                    {
                        "name": "failMode",
                        "type": "string",
                        "value": "task-timeout"
                    },
                    {
                        "name": "failOnTask",
                        "type": "string",
                        "value": "task-01"
                    }
                ],
                "startTime": "2026-11-26T12:12:58Z",
                "steps": [
                    {
                        "container": "step-collect-data",
                        "imageID": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                        "name": "collect-data",
                        "provenance": {},
                        "terminated": {
                            "containerID": "containerd://a897c6d1a81c34ccefbd91b2796171bdc2ea69ac5b496e12b0cf27af8673be63",
                            "exitCode": 0,
                            "finishedAt": "2026-11-26T12:13:02Z",
                            "message": "[{\"key\":\"failMode\",\"value\":\"task-timeout\",\"type\":1},{\"key\":\"failOnTask\",\"value\":\"task-01\",\"type\":1}]",
                            "reason": "Completed",
                            "startedAt": "2026-11-26T12:13:02Z"
                        },
                        "terminationReason": "Completed"
                    }
                ],
                "taskSpec": {
                    "params": [
                        {
                            "name": "releasePlanAdmission",
                            "type": "string"
                        }
                    ],
                    "results": [
                        {
                            "name": "failMode",
                            "type": "string"
                        },
                        {
                            "name": "failOnTask",
                            "type": "string"
                        }
                    ],
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "50m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "collect-data",
                            "script": "#!/usr/bin/env bash\nset -euo pipefail\n\nDATA=$(get-resource releasePlanAdmission \"retry-task-timeout-managed/demo\" |\n  jq '.spec.data // {}')\n\nFAIL_MODE=$(jq -r '.failMode // \"none\"' \u003c\u003c\u003c\"${DATA}\")\nFAIL_ON_TASK=$(jq -r '.failOnTask // \"task-01\"' \u003c\u003c\u003c\"${DATA}\")\n\nprintf '%s' \"${FAIL_MODE}\" \u003e \"/tekton/results/failMode\"\nprintf '%s' \"${FAIL_ON_TASK}\" \u003e \"/tekton/results/failOnTask\"\n"
                        }
                    ]
                }
            }
        },
        {
            "apiVersion": "tekton.dev/v1",
            "kind": "TaskRun",
            "metadata": {
                "annotations": {
                    "chains.tekton.dev/signed": "true",
                    "operator-sdk/primary-resource": "retry-task-timeout-y5zm/snapshot-sample-i89w-d499148-cvn7j",
                    "operator-sdk/primary-resource-type": "Release.appstudio.redhat.com",
                    "pac.test.appstudio.openshift.io/sha": "d49914874789147eb2de9bb6a12cd5d150bfff92",
                    "pac.test.appstudio.openshift.io/url-repository": "https://github.com/redhat-appstudio-qe/dc-metro-map-release",
                    "pipeline.tekton.dev/release": "d55f53a",
                    "results.tekton.dev/childReadyForDeletion": "true",
                    "results.tekton.dev/record": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a/records/00c59736-e4b9-4565-894b-658294dc8ae4",
                    "results.tekton.dev/result": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "results.tekton.dev/stored": "true",
                    "tekton.dev/pipelines.minVersion": "0.12.1",
                    "tekton.dev/tags": "release"
                },
                "creationTimestamp": "2026-11-26T12:14:42Z",
                "deletionGracePeriodSeconds": 0,
                "deletionTimestamp": "2026-11-26T12:14:55Z",
                "finalizers": [
                    "results.tekton.dev/taskrun"
                ],
                "generation": 2,
                "labels": {
                    "app.kubernetes.io/managed-by": "tekton-pipelines",
                    "appstudio.openshift.io/application": "appstudio",
                    "appstudio.openshift.io/service": "release",
                    "appstudio.openshift.io/snapshot": "snapshot-sample-i89w",
                    "pipelines.appstudio.openshift.io/type": "managed",
                    "release.appstudio.openshift.io/attempt": "1",
                    "release.appstudio.openshift.io/name": "snapshot-sample-i89w-d499148-cvn7j",
                    "release.appstudio.openshift.io/namespace": "retry-task-timeout-y5zm",
                    "tekton.dev/memberOf": "finally",
                    "tekton.dev/pipeline": "retry-e2e-managed",
                    "tekton.dev/pipelineRun": "managed-4h8bw",
                    "tekton.dev/pipelineRunUID": "35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "tekton.dev/pipelineTask": "finalize"
                },
                "name": "managed-4h8bw-finalize",
                "namespace": "retry-task-timeout-managed",
                "ownerReferences": [
                    {
                        "apiVersion": "tekton.dev/v1",
                        "blockOwnerDeletion": true,
                        "controller": true,
                        "kind": "PipelineRun",
                        "name": "managed-4h8bw",
                        "uid": "35c2ed64-f7ca-468d-abd5-994f8b856a9a"
                    }
                ],
                "resourceVersion": "24946",
                "uid": "00c59736-e4b9-4565-894b-658294dc8ae4"
            },
            "spec": {
                "serviceAccountName": "release-service-account",
                "taskSpec": {
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "32Mi"
                                },
                                "requests": {
                                    "cpu": "50m",
                                    "memory": "32Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "finalize-step-01",
                            "script": "#!/usr/bin/env bash\necho \"finalize: complete\"\n"
                        }
                    ]
                },
                "timeout": "1h0m0s"
            },
            "status": {
                "artifacts": {},
                "completionTime": "2026-11-26T12:14:47Z",
                "conditions": [
                    {
                        "lastTransitionTime": "2026-11-26T12:14:47Z",
                        "message": "All Steps have completed executing",
                        "reason": "Succeeded",
                        "status": "True",
                        "type": "Succeeded"
                    }
                ],
                "podName": "managed-4h8bw-finalize-pod",
                "provenance": {
                    "featureFlags": {
                        "awaitSidecarReadiness": true,
                        "coschedule": "workspaces",
                        "enableAPIFields": "beta",
                        "enableProvenanceInStatus": true,
                        "enforceNonfalsifiability": "none",
                        "maxResultSize": 4096,
                        "resultExtractionMethod": "termination-message",
                        "runningInEnvWithInjectedSidecars": true,
                        "sendCloudEventsForRuns": true,
                        "setSecurityContext": true,
                        "verificationNoMatchPolicy": "ignore"
                    }
                },
                "startTime": "2026-11-26T12:14:42Z",
                "steps": [
                    {
                        "container": "step-finalize-step-01",
                        "imageID": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                        "name": "finalize-step-01",
                        "provenance": {},
                        "terminated": {
                            "containerID": "containerd://3031b42754d4f1dc1378e4e8d5687d761831b839dd46b7a31162162b8f4d8975",
                            "exitCode": 0,
                            "finishedAt": "2026-11-26T12:14:46Z",
                            "reason": "Completed",
                            "startedAt": "2026-11-26T12:14:46Z"
                        },
                        "terminationReason": "Completed"
                    }
                ],
                "taskSpec": {
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "32Mi"
                                },
                                "requests": {
                                    "cpu": "50m",
                                    "memory": "32Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "finalize-step-01",
                            "script": "#!/usr/bin/env bash\necho \"finalize: complete\"\n"
                        }
                    ]
                }
            }
        },
        {
            "apiVersion": "tekton.dev/v1",
            "kind": "TaskRun",
            "metadata": {
                "annotations": {
                    "chains.tekton.dev/signed": "true",
                    "operator-sdk/primary-resource": "retry-task-timeout-y5zm/snapshot-sample-i89w-d499148-cvn7j",
                    "operator-sdk/primary-resource-type": "Release.appstudio.redhat.com",
                    "pac.test.appstudio.openshift.io/sha": "d49914874789147eb2de9bb6a12cd5d150bfff92",
                    "pac.test.appstudio.openshift.io/url-repository": "https://github.com/redhat-appstudio-qe/dc-metro-map-release",
                    "pipeline.tekton.dev/release": "d55f53a",
                    "results.tekton.dev/childReadyForDeletion": "true",
                    "results.tekton.dev/record": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a/records/cdd0fae7-3940-4d3a-8b2e-ed472551973e",
                    "results.tekton.dev/result": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "results.tekton.dev/stored": "true",
                    "tekton.dev/pipelines.minVersion": "0.12.1",
                    "tekton.dev/tags": "release"
                },
                "creationTimestamp": "2026-11-26T12:13:03Z",
                "deletionGracePeriodSeconds": 0,
                "deletionTimestamp": "2026-11-26T12:14:55Z",
                "finalizers": [
                    "results.tekton.dev/taskrun"
                ],
                "generation": 2,
                "labels": {
                    "app.kubernetes.io/managed-by": "tekton-pipelines",
                    "appstudio.openshift.io/application": "appstudio",
                    "appstudio.openshift.io/service": "release",
                    "appstudio.openshift.io/snapshot": "snapshot-sample-i89w",
                    "pipelines.appstudio.openshift.io/type": "managed",
                    "release.appstudio.openshift.io/attempt": "1",
                    "release.appstudio.openshift.io/name": "snapshot-sample-i89w-d499148-cvn7j",
                    "release.appstudio.openshift.io/namespace": "retry-task-timeout-y5zm",
                    "tekton.dev/memberOf": "tasks",
                    "tekton.dev/pipeline": "retry-e2e-managed",
                    "tekton.dev/pipelineRun": "managed-4h8bw",
                    "tekton.dev/pipelineRunUID": "35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "tekton.dev/pipelineTask": "task-01"
                },
                "name": "managed-4h8bw-task-01",
                "namespace": "retry-task-timeout-managed",
                "ownerReferences": [
                    {
                        "apiVersion": "tekton.dev/v1",
                        "blockOwnerDeletion": true,
                        "controller": true,
                        "kind": "PipelineRun",
                        "name": "managed-4h8bw",
                        "uid": "35c2ed64-f7ca-468d-abd5-994f8b856a9a"
                    }
                ],
                "resourceVersion": "24928",
                "uid": "cdd0fae7-3940-4d3a-8b2e-ed472551973e"
            },
            "spec": {
                "params": [
                    {
                        "name": "failMode",
                        "value": "task-timeout"
                    },
                    {
                        "name": "failOnTask",
                        "value": "task-01"
                    }
                ],
                "serviceAccountName": "release-service-account",
                "taskSpec": {
                    "params": [
                        {
                            "name": "failMode",
                            "type": "string"
                        },
                        {
                            "name": "failOnTask",
                            "type": "string"
                        }
                    ],
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "100m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-01-step-01",
                            "script": "#!/usr/bin/env bash\nset -euo pipefail\n\nFAIL_MODE=\"$(params.failMode)\"\nFAIL_ON_TASK=\"$(params.failOnTask)\"\n\n# Only inject failures into the selected task.\n[[ \"${FAIL_ON_TASK}\" == \"task-01\" ]] || exit 0\n\necho \"task-01-step-01: failMode=${FAIL_MODE}\"\n\ncase \"${FAIL_MODE}\" in\n  error)\n    exit 1\n    ;;\n  oom)\n    # Trigger OOM only when the task is still running with the\n    # original memory limit. After retry mitigation the limit\n    # should be increased and this path should no longer OOM.\n    LIMIT=\"max\"\n    [[ -r /sys/fs/cgroup/memory.max ]] \u0026\u0026 read -r LIMIT \u003c /sys/fs/cgroup/memory.max\n\n    THRESHOLD=104857600 # 100 Mi\n\n    if [[ \"${LIMIT}\" != \"max\" ]] \u0026\u0026 (( LIMIT \u003c THRESHOLD )); then\n      echo \"limit ${LIMIT} \u003c ${THRESHOLD}: triggering OOMKill\"\n\n      X=$(dd if=/dev/zero bs=1M count=150 status=none | tr '\\0' 'a')\n      echo \"${#X}\"\n    else\n      echo \"limit ${LIMIT} sufficient\"\n    fi\n    ;;\n  task-timeout)\n    # Sleep longer than the task timeout. Which is set to 1 minute.\n    sleep 90\n    ;;\n  none)\n    ;;\n  *)\n    echo \"unknown fail mode: ${FAIL_MODE}\" \u003e\u00262\n    exit 1\n    ;;\nesac\n"
                        },
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "32Mi"
                                },
                                "requests": {
                                    "cpu": "50m",
                                    "memory": "32Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-01-step-02",
                            "script": "#!/usr/bin/env bash\necho \"task-01-step-02: complete\"\n"
                        }
                    ]
                },
                "timeout": "6m0s"
            },
            "status": {
                "artifacts": {},
                "completionTime": "2026-11-26T12:14:37Z",
                "conditions": [
                    {
                        "lastTransitionTime": "2026-11-26T12:14:37Z",
                        "message": "All Steps have completed executing",
                        "reason": "Succeeded",
                        "status": "True",
                        "type": "Succeeded"
                    }
                ],
                "podName": "managed-4h8bw-task-01-pod",
                "provenance": {
                    "featureFlags": {
                        "awaitSidecarReadiness": true,
                        "coschedule": "workspaces",
                        "enableAPIFields": "beta",
                        "enableProvenanceInStatus": true,
                        "enforceNonfalsifiability": "none",
                        "maxResultSize": 4096,
                        "resultExtractionMethod": "termination-message",
                        "runningInEnvWithInjectedSidecars": true,
                        "sendCloudEventsForRuns": true,
                        "setSecurityContext": true,
                        "verificationNoMatchPolicy": "ignore"
                    }
                },
                "startTime": "2026-11-26T12:13:03Z",
                "steps": [
                    {
                        "container": "step-task-01-step-01",
                        "imageID": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                        "name": "task-01-step-01",
                        "provenance": {},
                        "terminated": {
                            "containerID": "containerd://0961bae7ef418aaf5ccd02ceb248ab99bb3823221db4dd0490a592d011336915",
                            "exitCode": 0,
                            "finishedAt": "2026-11-26T12:14:36Z",
                            "reason": "Completed",
                            "startedAt": "2026-11-26T12:13:06Z"
                        },
                        "terminationReason": "Completed"
                    },
                    {
                        "container": "step-task-01-step-02",
                        "imageID": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                        "name": "task-01-step-02",
                        "provenance": {},
                        "terminated": {
                            "containerID": "containerd://27bcc2d93fe180f6d87aeb1c0b4b9db92af207d23a0e54e7f798024d3e5d68a4",
                            "exitCode": 0,
                            "finishedAt": "2026-11-26T12:14:36Z",
                            "reason": "Completed",
                            "startedAt": "2026-11-26T12:14:36Z"
                        },
                        "terminationReason": "Completed"
                    }
                ],
                "taskSpec": {
                    "params": [
                        {
                            "name": "failMode",
                            "type": "string"
                        },
                        {
                            "name": "failOnTask",
                            "type": "string"
                        }
                    ],
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "100m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-01-step-01",
                            "script": "#!/usr/bin/env bash\nset -euo pipefail\n\nFAIL_MODE=\"task-timeout\"\nFAIL_ON_TASK=\"task-01\"\n\n# Only inject failures into the selected task.\n[[ \"${FAIL_ON_TASK}\" == \"task-01\" ]] || exit 0\n\necho \"task-01-step-01: failMode=${FAIL_MODE}\"\n\ncase \"${FAIL_MODE}\" in\n  error)\n    exit 1\n    ;;\n  oom)\n    # Trigger OOM only when the task is still running with the\n    # original memory limit. After retry mitigation the limit\n    # should be increased and this path should no longer OOM.\n    LIMIT=\"max\"\n    [[ -r /sys/fs/cgroup/memory.max ]] \u0026\u0026 read -r LIMIT \u003c /sys/fs/cgroup/memory.max\n\n    THRESHOLD=104857600 # 100 Mi\n\n    if [[ \"${LIMIT}\" != \"max\" ]] \u0026\u0026 (( LIMIT \u003c THRESHOLD )); then\n      echo \"limit ${LIMIT} \u003c ${THRESHOLD}: triggering OOMKill\"\n\n      X=$(dd if=/dev/zero bs=1M count=150 status=none | tr '\\0' 'a')\n      echo \"${#X}\"\n    else\n      echo \"limit ${LIMIT} sufficient\"\n    fi\n    ;;\n  task-timeout)\n    # Sleep longer than the task timeout. Which is set to 1 minute.\n    sleep 90\n    ;;\n  none)\n    ;;\n  *)\n    echo \"unknown fail mode: ${FAIL_MODE}\" \u003e\u00262\n    exit 1\n    ;;\nesac\n"
                        },
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "32Mi"
                                },
                                "requests": {
                                    "cpu": "50m",
                                    "memory": "32Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-01-step-02",
                            "script": "#!/usr/bin/env bash\necho \"task-01-step-02: complete\"\n"
                        }
                    ]
                }
            }
        },
        {
            "apiVersion": "tekton.dev/v1",
            "kind": "TaskRun",
            "metadata": {
                "annotations": {
                    "chains.tekton.dev/signed": "true",
                    "operator-sdk/primary-resource": "retry-task-timeout-y5zm/snapshot-sample-i89w-d499148-cvn7j",
                    "operator-sdk/primary-resource-type": "Release.appstudio.redhat.com",
                    "pac.test.appstudio.openshift.io/sha": "d49914874789147eb2de9bb6a12cd5d150bfff92",
                    "pac.test.appstudio.openshift.io/url-repository": "https://github.com/redhat-appstudio-qe/dc-metro-map-release",
                    "pipeline.tekton.dev/release": "d55f53a",
                    "results.tekton.dev/childReadyForDeletion": "true",
                    "results.tekton.dev/record": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a/records/0a16dcb8-791e-4270-8785-49b202af1931",
                    "results.tekton.dev/result": "retry-task-timeout-managed/results/35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "results.tekton.dev/stored": "true",
                    "tekton.dev/pipelines.minVersion": "0.12.1",
                    "tekton.dev/tags": "release"
                },
                "creationTimestamp": "2026-11-26T12:14:37Z",
                "deletionGracePeriodSeconds": 0,
                "deletionTimestamp": "2026-11-26T12:14:55Z",
                "finalizers": [
                    "results.tekton.dev/taskrun"
                ],
                "generation": 2,
                "labels": {
                    "app.kubernetes.io/managed-by": "tekton-pipelines",
                    "appstudio.openshift.io/application": "appstudio",
                    "appstudio.openshift.io/service": "release",
                    "appstudio.openshift.io/snapshot": "snapshot-sample-i89w",
                    "pipelines.appstudio.openshift.io/type": "managed",
                    "release.appstudio.openshift.io/attempt": "1",
                    "release.appstudio.openshift.io/name": "snapshot-sample-i89w-d499148-cvn7j",
                    "release.appstudio.openshift.io/namespace": "retry-task-timeout-y5zm",
                    "tekton.dev/memberOf": "tasks",
                    "tekton.dev/pipeline": "retry-e2e-managed",
                    "tekton.dev/pipelineRun": "managed-4h8bw",
                    "tekton.dev/pipelineRunUID": "35c2ed64-f7ca-468d-abd5-994f8b856a9a",
                    "tekton.dev/pipelineTask": "task-02"
                },
                "name": "managed-4h8bw-task-02",
                "namespace": "retry-task-timeout-managed",
                "ownerReferences": [
                    {
                        "apiVersion": "tekton.dev/v1",
                        "blockOwnerDeletion": true,
                        "controller": true,
                        "kind": "PipelineRun",
                        "name": "managed-4h8bw",
                        "uid": "35c2ed64-f7ca-468d-abd5-994f8b856a9a"
                    }
                ],
                "resourceVersion": "24931",
                "uid": "0a16dcb8-791e-4270-8785-49b202af1931"
            },
            "spec": {
                "params": [
                    {
                        "name": "failMode",
                        "value": "task-timeout"
                    },
                    {
                        "name": "failOnTask",
                        "value": "task-01"
                    }
                ],
                "serviceAccountName": "release-service-account",
                "taskSpec": {
                    "params": [
                        {
                            "name": "failMode",
                            "type": "string"
                        },
                        {
                            "name": "failOnTask",
                            "type": "string"
                        }
                    ],
                    "stepTemplate": {
                        "computeResources": {
                            "limits": {
                                "memory": "64Mi"
                            },
                            "requests": {
                                "cpu": "100m",
                                "memory": "64Mi"
                            }
                        },
                        "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c"
                    },
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "100m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-02-step-01",
                            "script": "#!/usr/bin/env bash\nset -euo pipefail\n\nFAIL_MODE=\"$(params.failMode)\"\nFAIL_ON_TASK=\"$(params.failOnTask)\"\n\n# pipeline-timeout always runs from task-02 regardless of failOnTask.\nif [[ \"${FAIL_ON_TASK}\" != \"task-02\" \u0026\u0026 \"${FAIL_MODE}\" != \"pipeline-timeout\" ]]; then\n  echo \"task-02: complete\"\n  exit 0\nfi\n\necho \"task-02-step-01: failMode=${FAIL_MODE}\"\n\ncase \"${FAIL_MODE}\" in\n  pipeline-timeout)\n    # Sleep past the pipeline level pipeline/tasks timeout. This is used to verify\n    # that retry mitigation updates both pipeline and tasks timeouts\n    # and allows the pipelineRun to complete on retry.\n    echo \"task-02-step-01: sleeping 120s\"\n    sleep 120\n    ;;\n  error)\n    exit 1\n    ;;\n  oom)\n    # Trigger OOM only when the task is still running with the\n    # original memory limit. After retry mitigation the limit\n    # should be increased and this path should no longer OOM.\n    LIMIT=\"max\"\n    [[ -r /sys/fs/cgroup/memory.max ]] \u0026\u0026 read -r LIMIT \u003c /sys/fs/cgroup/memory.max\n\n    THRESHOLD=104857600 # 100 Mi\n\n    if [[ \"${LIMIT}\" != \"max\" ]] \u0026\u0026 (( LIMIT \u003c THRESHOLD )); then\n      echo \"limit ${LIMIT} \u003c ${THRESHOLD}: triggering OOMKill\"\n      X=$(dd if=/dev/zero bs=1M count=150 status=none | tr '\\0' 'a')\n      echo \"${#X}\"\n    else\n      echo \"limit ${LIMIT} sufficient\"\n    fi\n    ;;\n  oom-always)\n  # Always trigger an OOMKill regardless of the memory limit.\n  # This is used to verify that retry mitigation cannot fix\n  # the failure even after resource requests/limits are increased.\n  \n  X=$(dd if=/dev/zero bs=1M count=2048 status=none | tr '\\0' 'a')\n  echo \"${#X}\"\n  ;;\n  none)\n    ;;\n  *)\n    echo \"unknown fail mode: ${FAIL_MODE}\" \u003e\u00262\n    exit 1\n    ;;\nesac\n"
                        },
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "100m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-02-step-02",
                            "script": "#!/usr/bin/env bash\necho \"task-02-step-02: complete\"\n"
                        }
                    ]
                },
                "timeout": "1h0m0s"
            },
            "status": {
                "artifacts": {},
                "completionTime": "2026-11-26T12:14:42Z",
                "conditions": [
                    {
                        "lastTransitionTime": "2026-11-26T12:14:42Z",
                        "message": "All Steps have completed executing",
                        "reason": "Succeeded",
                        "status": "True",
                        "type": "Succeeded"
                    }
                ],
                "podName": "managed-4h8bw-task-02-pod",
                "provenance": {
                    "featureFlags": {
                        "awaitSidecarReadiness": true,
                        "coschedule": "workspaces",
                        "enableAPIFields": "beta",
                        "enableProvenanceInStatus": true,
                        "enforceNonfalsifiability": "none",
                        "maxResultSize": 4096,
                        "resultExtractionMethod": "termination-message",
                        "runningInEnvWithInjectedSidecars": true,
                        "sendCloudEventsForRuns": true,
                        "setSecurityContext": true,
                        "verificationNoMatchPolicy": "ignore"
                    }
                },
                "startTime": "2026-11-26T12:14:37Z",
                "steps": [
                    {
                        "container": "step-task-02-step-01",
                        "imageID": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                        "name": "task-02-step-01",
                        "provenance": {},
                        "terminated": {
                            "containerID": "containerd://7b1b99219973d2dcfc1ad92f38510d6f4b1b11c847c73bda1b04a7bc58e6cde3",
                            "exitCode": 0,
                            "finishedAt": "2026-11-26T12:14:41Z",
                            "reason": "Completed",
                            "startedAt": "2026-11-26T12:14:41Z"
                        },
                        "terminationReason": "Completed"
                    },
                    {
                        "container": "step-task-02-step-02",
                        "imageID": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                        "name": "task-02-step-02",
                        "provenance": {},
                        "terminated": {
                            "containerID": "containerd://89e1674141424a6ff0306c78abc2aba348c51d7e08b61bd61099b18ed0f10bc5",
                            "exitCode": 0,
                            "finishedAt": "2026-11-26T12:14:41Z",
                            "reason": "Completed",
                            "startedAt": "2026-11-26T12:14:41Z"
                        },
                        "terminationReason": "Completed"
                    }
                ],
                "taskSpec": {
                    "params": [
                        {
                            "name": "failMode",
                            "type": "string"
                        },
                        {
                            "name": "failOnTask",
                            "type": "string"
                        }
                    ],
                    "stepTemplate": {
                        "computeResources": {
                            "limits": {
                                "memory": "64Mi"
                            },
                            "requests": {
                                "cpu": "100m",
                                "memory": "64Mi"
                            }
                        },
                        "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c"
                    },
                    "steps": [
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "100m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-02-step-01",
                            "script": "#!/usr/bin/env bash\nset -euo pipefail\n\nFAIL_MODE=\"task-timeout\"\nFAIL_ON_TASK=\"task-01\"\n\n# pipeline-timeout always runs from task-02 regardless of failOnTask.\nif [[ \"${FAIL_ON_TASK}\" != \"task-02\" \u0026\u0026 \"${FAIL_MODE}\" != \"pipeline-timeout\" ]]; then\n  echo \"task-02: complete\"\n  exit 0\nfi\n\necho \"task-02-step-01: failMode=${FAIL_MODE}\"\n\ncase \"${FAIL_MODE}\" in\n  pipeline-timeout)\n    # Sleep past the pipeline level pipeline/tasks timeout. This is used to verify\n    # that retry mitigation updates both pipeline and tasks timeouts\n    # and allows the pipelineRun to complete on retry.\n    echo \"task-02-step-01: sleeping 120s\"\n    sleep 120\n    ;;\n  error)\n    exit 1\n    ;;\n  oom)\n    # Trigger OOM only when the task is still running with the\n    # original memory limit. After retry mitigation the limit\n    # should be increased and this path should no longer OOM.\n    LIMIT=\"max\"\n    [[ -r /sys/fs/cgroup/memory.max ]] \u0026\u0026 read -r LIMIT \u003c /sys/fs/cgroup/memory.max\n\n    THRESHOLD=104857600 # 100 Mi\n\n    if [[ \"${LIMIT}\" != \"max\" ]] \u0026\u0026 (( LIMIT \u003c THRESHOLD )); then\n      echo \"limit ${LIMIT} \u003c ${THRESHOLD}: triggering OOMKill\"\n      X=$(dd if=/dev/zero bs=1M count=150 status=none | tr '\\0' 'a')\n      echo \"${#X}\"\n    else\n      echo \"limit ${LIMIT} sufficient\"\n    fi\n    ;;\n  oom-always)\n  # Always trigger an OOMKill regardless of the memory limit.\n  # This is used to verify that retry mitigation cannot fix\n  # the failure even after resource requests/limits are increased.\n  \n  X=$(dd if=/dev/zero bs=1M count=2048 status=none | tr '\\0' 'a')\n  echo \"${#X}\"\n  ;;\n  none)\n    ;;\n  *)\n    echo \"unknown fail mode: ${FAIL_MODE}\" \u003e\u00262\n    exit 1\n    ;;\nesac\n"
                        },
                        {
                            "computeResources": {
                                "limits": {
                                    "memory": "64Mi"
                                },
                                "requests": {
                                    "cpu": "100m",
                                    "memory": "64Mi"
                                }
                            },
                            "image": "quay.io/konflux-ci/release-service-utils@sha256:850118bc6eda4ca3f98ef1e53109164f64a0945a6ac0942f908b7e106f50775c",
                            "name": "task-02-step-02",
                            "script": "#!/usr/bin/env bash\necho \"task-02-step-02: complete\"\n"
                        }
                    ]
                }
            }
        }
    ],
    "kind": "List",
    "metadata": {
        "resourceVersion": ""
    }
}
