Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not panic when template fails to execute #132

Merged
merged 1 commit into from
Jul 3, 2019

Conversation

sthaha
Copy link
Member

@sthaha sthaha commented Jun 30, 2019

PipelineRun describe command panics when templates fails to execute.
This patch changes the behaviour to write errors to stderr when
template execution fails

Signed-Off-By: sthaha@redhat.com

Changes

Submitter Checklist

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

  • [🙅‍♂] Includes tests (if functionality changed/added) Existing tests cover the change
  • [🙅‍♂ ] Includes docs (if user facing)
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

release-note

@linux-foundation-easycla
Copy link

CLA Check
Thank you. Unfortunately, your account is not authorized under a signed CLA. Please click here to proceed.

  • Sunil Thaha (6deb3ca593ccba6ca6fe0ab127d80159dc27c534)

@tekton-robot tekton-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 30, 2019
@sthaha sthaha mentioned this pull request Jun 30, 2019
3 tasks
@sthaha
Copy link
Member Author

sthaha commented Jun 30, 2019

@vdemeester do you know why CLA seems broken?

Author: Sunil Thaha <sthaha@redhat.com>
Date:   Sun Jun 30 19:50:37 2019 +1000

    Do not panic when template fails to execute

    PipelineRun describe command panics when templates fails to execute.
    This patch changes the behaviour to write errors to stderr when
    template execution fails

    Signed-Off-By: sthaha@redhat.com

@hrishin did you sign a new CLA?

@hrishin
Copy link
Member

hrishin commented Jun 30, 2019

@sthaha old CLA is not working for me. I didn't sign new CLA.

@hrishin
Copy link
Member

hrishin commented Jun 30, 2019

I think it has introduced Linux Foundation CLA as well. Is it @vdemeester ?

Copy link
Member

@hrishin hrishin left a comment

Choose a reason for hiding this comment

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

👍 @sthaha.

Yes instead of panic some error message is better.

pkg/cmd/pipelinerun/describe.go Show resolved Hide resolved
@vdemeester
Copy link
Member

@sthaha @hrishin yeah, CLA switch to Linux Foundation CLA on Friday

@sthaha
Copy link
Member Author

sthaha commented Jul 1, 2019

I signed it

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 1, 2019
@vdemeester
Copy link
Member

/retest

@vdemeester
Copy link
Member

@sthaha needs a rebase 👼

PipelineRun describe command panics when templates fails to execute.
This patch changes the behaviour to write errors to stderr when
template execution fails

Signed-Off-By: sthaha@redhat.com
@tekton-robot tekton-robot removed the lgtm Indicates that a PR is ready to be merged. label Jul 3, 2019
Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 3, 2019
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sthaha, vdemeester

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

The pull request process is described here

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 merged commit 2e29aea into tektoncd:master Jul 3, 2019
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. cla: yes lgtm Indicates that a PR is ready to be merged. 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.

5 participants