-
Notifications
You must be signed in to change notification settings - Fork 250
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
Fix bug always overriding GenerateName when specifying last flag #644
Conversation
Hi @16yuki0702. 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 pkg/.
|
@@ -395,6 +395,11 @@ func (opt *startOptions) startPipeline(pName string) error { | |||
if err != nil { | |||
return err | |||
} | |||
if len(prLast.ObjectMeta.GenerateName) > 0 { |
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.
Could you add a unit test for if len(prLast.ObjectMeta.GenerateName) > 0
?
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.
okay, I'll consider it!!
@16yuki0702 Can you please update the PR with review comment, we want to get this merged before next release and mostly planning to do a release on Monday. Thanks |
Oops, very sorry for late I added test case Quickly! |
Although when user specified last flag script always override GenerateName. So using GenerateName if last PipelineRun has a GenerateName, If not, setting a GenerateName based on last PipelineRun Name.
bdaa5fe
to
92ad493
Compare
/lgtm |
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: 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 |
Changes
Related issue is #639
Although when user specified last flag script always override GenerateName.
So using GenerateName if last PipelineRun has a GenerateName,
If not, setting a GenerateName based on last PipelineRun Name.
Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make docs
andmake man
if needed.make check
See the contribution guide
for more details.
Release Notes