Skip to content

Finally block is cancelled if task block timeouts and global pipeline timeout is not exceeded #8982

@wilstdu

Description

@wilstdu

Expected Behavior

Finally runs when tasks timeout. I expect to see a running finally block if tasks timeout and the global pipeline timeout is not exceeded.

Actual Behavior

Finally doesn't run when tasks timeout.

Steps to Reproduce the Problem

  1. Create a simple pipeline that has a longer running tasks part and a finally block with any task
  2. Configure PipelineRun timeouts, so that it would have timeout for tasks and finally parts

Some test cases from me:

timeouts:
  tasks: 0h1m0s
  finally: 0h0m20s# PipelineRun "code-analyzer-106" failed due to tasks failed to finish within "1m0s"

  

timeouts:
  pipeline: 0h2m0s
  finally: 0h0m20s# PipelineRun "code-analyzer-105" failed due to tasks failed to finish within "1m40s"

timeouts:
  pipeline: 0h2m0s
  tasks: 0h1m0s
  finally: 0h0m20s
 # PipelineRun "code-analyzer-104" failed due to tasks failed to finish within "1m0s"

Additional Info

  • Kubernetes version: 1.31

  • Tekton Pipeline version: v1.2.0

Metadata

Metadata

Assignees

Labels

area/roadmapIssues that are part of the project (or organization) roadmap (usually an epic)kind/bugCategorizes issue or PR as related to a bug.

Type

No type

Projects

Status

Todo

Status

Todo

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions