Skip to content

Improve code consistency and fix missing test annotation#9266

Merged
tekton-robot merged 1 commit intotektoncd:mainfrom
vdemeester:address-pr-9202-review-comments
Dec 23, 2025
Merged

Improve code consistency and fix missing test annotation#9266
tekton-robot merged 1 commit intotektoncd:mainfrom
vdemeester:address-pr-9202-review-comments

Conversation

@vdemeester
Copy link
Member

Changes

This PR addresses review feedback from #9202:

  1. Improve timeout handling consistency: Use early return pattern when finallyWaitTime < waitTime instead of assigning to a temporary variable first. This makes the control flow more explicit and consistent with surrounding code in the reconciliation logic.

  2. Add missing test categorization annotation: Add @test:execution=parallel annotation to TestPipelineRunExcessiveReconciliation so it's properly categorized by the test categorization system introduced in 9d89b01. Without this annotation, the test cannot be properly classified for parallel execution.

Addresses review comments from #9202 (review)

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • pre-commit Passed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

Use early returns in timeout handling for better code consistency
and readability throughout the reconciliation logic.

Add missing @test:execution=parallel annotation to the excessive
reconciliation e2e test for proper test categorization.

Addresses review feedback from PR tektoncd#9202.
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Dec 23, 2025
@tekton-robot tekton-robot requested review from jerop and khrm December 23, 2025 12:11
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 23, 2025
@vdemeester
Copy link
Member Author

/kind cleanup

@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Dec 23, 2025
Copy link
Member

@twoGiants twoGiants left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm
/meow

@tekton-robot
Copy link
Collaborator

@twoGiants: cat image

Details

In response to this:

/approve
/lgtm
/meow

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 23, 2025
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: twoGiants

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 23, 2025
@tekton-robot tekton-robot merged commit 9a1835d into tektoncd:main Dec 23, 2025
24 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants