-
Notifications
You must be signed in to change notification settings - Fork 239
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
Provides --last
option of the describe
of PipelineRun/TaskRun to describe the most recent PipelineRun/TaskRun
#960
Provides --last
option of the describe
of PipelineRun/TaskRun to describe the most recent PipelineRun/TaskRun
#960
Conversation
Hi @anshulvermapatel. Thanks for your PR. I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
The following is the coverage report on the affected files.
|
version := "v1alpha1" | ||
tdc := testDynamic.Options{} | ||
dynamic, err := tdc.Client( | ||
cb.UnstructuredPR(pipelineRuns[0], version), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To include all the test data, wouldn't you want the second PipelineRun as well? Not familiar with using the dynamic client with tests. /cc @pradeepitm12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yaa, I think I should add pipelineRuns[1] as well, my bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, resources should be added in the dynamic client, but it is not necessary to do add all, the resources which are accessed(get, list, watch, delete, etc) with the help of the dynamic client will give return nil if the resource is not added in the test-dynamic client.
Hope this helps, for any other thing please do let me know.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done, already added.
Build test failure is from go-critic. Wants you to rewrite if/else if/else as switch:
|
The following is the coverage report on the affected files.
|
pkg/cmd/pipelinerun/testdata/TestPipelineRunDescribe_lastV1beta1.golden
Outdated
Show resolved
Hide resolved
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two last nits, and I think this should be good:
…describe the most recent PipelineRun/TaskRun Fixes #871
The following is the coverage report on the affected files.
|
/test pull-tekton-cli-integration-tests |
1 similar comment
/test pull-tekton-cli-integration-tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
@anshulvermapatel it would be really nice if you could mark all the comments as resolved. Then we can move forward with it. |
@pradeepitm12 , Marked them resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: danielhelfand 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 |
$Title
Fixes #871
Changes
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make check
make generated
See the contribution guide
for more details.
Release Notes