Skip to content

Conversation

@matejvasek
Copy link
Collaborator

@matejvasek matejvasek commented Jan 15, 2026

  • Removed dependency on Tekton Hub that no more exists.
  • Adjusted testing env, in particular testing KinD cluster setup.
    • Set up RH pull secrets for KinD as we use RH images.
    • Install the git-clone task into the KinD cluster so it's at same place as in OCP.

@matejvasek matejvasek changed the title fix: PaC does not refer tekton hub [release-v1.17] fix: PaC does not refer tekton hub Jan 15, 2026
Copy link

@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.

Great that you removed the hub reference! 😸 👍

Now there is new logic with error handling. Usually I'd say this needs unit tests to cover it. Wdys in this case?

@matejvasek matejvasek requested a review from twoGiants January 19, 2026 15:51
@matejvasek
Copy link
Collaborator Author

@jrangelramos please verify that this works.

@matejvasek
Copy link
Collaborator Author

matejvasek commented Jan 19, 2026

Great that you removed the hub reference! 😸 👍

Now there is new logic with error handling. Usually I'd say this needs unit tests to cover it. Wdys in this case?

@twoGiants
I replied it the other comment. I would add test should this be in "main". This is however just quick fix for 1.37.1 patch release. The release branch is pretty much inactive and there most likely won't be 1.37.2. So such a test won't catch any regression, since nobody would run it.

Wrt test for errors in general: I do not find it very useful for "non actionable/recoverable" errors. I mean errors where there is nothing to be done -- you either interrupt/crash whole app or just print warning. OK I mean it's good to check we are not ignoring any error but it is quite well done in Go IMO. Go forces you to check errors by design, so there is little change there is unhandled error.

However I think they are very much useful when we return "sentinel" error which value is subsequently test using errors.Is() and do some dependent action.

@jrangelramos
Copy link

it works. it looks good to me

@twoGiants
Copy link

... release branch is pretty much inactive and there most likely won't be 1.37.2. So such a test won't catch any regression, since nobody would run it.

Fine with me then! 👍

Wrt test for errors in general: I do not find it very useful for "non actionable/recoverable" errors. I mean errors where there is nothing to be done -- you either interrupt/crash whole app or just print warning. OK I mean it's good to check we are not ignoring any error but it is quite well done in Go IMO. Go forces you to check errors by design, so there is little change there is unhandled error.

Not sure I understand correctly => returning an error where there was no such an operation before looks actionable to me BUT I might misunderstand what you want to say. I'll write you a PM, no need for a Github comment discussion 😆

However I think they are very much useful when we return "sentinel" error which value is subsequently test using errors.Is() and do some dependent action.

Agree 👍

Copy link

@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

Let me know when the tests are fixed so I can lgtm it! 👍

@matejvasek
Copy link
Collaborator Author

rebased

@matejvasek
Copy link
Collaborator Author

@twoGiants lgtm plz

@matejvasek
Copy link
Collaborator Author

@twoGiants lgtm plz

Ah not yet some test are failing.
Or maybe I could override these and fix them in separate PR?

@matejvasek
Copy link
Collaborator Author

Ah not yet some test are failing.

might be a flake

@matejvasek matejvasek force-pushed the fix-tekton-hub-ref branch 2 times, most recently from 97797d2 to 7f655fa Compare January 20, 2026 18:26
@matejvasek
Copy link
Collaborator Author

@twoGiants I added fix up to our testing setup so event the KinD cluster have the Openshift Pipelines specific task.

Signed-off-by: Matej Vašek <[email protected]>
@matejvasek matejvasek requested a review from twoGiants January 20, 2026 22:07
@matejvasek
Copy link
Collaborator Author

@twoGiants all tests are passing.

Copy link

@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

@openshift-ci
Copy link

openshift-ci bot commented Jan 21, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matejvasek, 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

@openshift-merge-bot openshift-merge-bot bot merged commit fcfd8f7 into release-v1.17 Jan 21, 2026
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants