Skip to content

fix(shipwright): avoid multiple API calls to check OpenShiftBuilds CR - #4469

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
sayan-biswas:fix-set-default
Nov 19, 2026
Merged

tekton-robot merged 1 commit into
tektoncd:mainfrom
sayan-biswas:fix-set-default

Conversation

@sayan-biswas

@sayan-biswas sayan-biswas commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Avoid multiple API calls to check OpenShiftBuilds CR when ShipwrightBuild or SharedResources is already populated. The result of the API call is irrelevant if the struct are already populated.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

NONE

Changes:
Avoid multiple API calls to check OpenShiftBuilds CR when ShipwrightBuild or SharedResources is already populated. The result of the API call is irrelevant if the struct are already populated.

Signed-off-by: Sayan Biswas <sabiswas@redhat.com>
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Nov 19, 2026
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 19, 2026
@codecov

codecov Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 31.84%. Comparing base (cd50e57) to head (679b2dc).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4469   +/-   ##
=======================================
  Coverage   31.84%   31.84%           
=======================================
  Files         530      530           
  Lines       25533    25534    +1     
=======================================
+ Hits         8130     8131    +1     
  Misses      17403    17403           
Flag Coverage Δ
unit-tests 31.84% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jkhelil jkhelil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/approve
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 19, 2026
@tekton-robot

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkhelil

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 Nov 19, 2026
@jkhelil

jkhelil commented Nov 19, 2026

Copy link
Copy Markdown
Member

/cherry-pick release-v0.82.x

@tekton-robot
tekton-robot merged commit cc875b3 into tektoncd:main Nov 19, 2026
18 of 19 checks passed
@tekton-robot

Copy link
Copy Markdown
Contributor

✅ Cherry-pick to release-v0.82.x successful!

A new pull request has been created to cherry-pick this change to release-v0.82.x.

PR: #4470

Please review and merge the cherry-pick PR.

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. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants