-
Notifications
You must be signed in to change notification settings - Fork 255
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
Refactoring log writer. #709
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. |
pkg/cmd/taskrun/logs_test.go
Outdated
@@ -258,8 +258,8 @@ func TestLog_taskrun_logs(t *testing.T) { | |||
output, _ := fetchLogs(trlo) | |||
|
|||
expectedLogs := []string{ | |||
"[writefile-step] wrote a file\n", | |||
"[nop] Build successful\n", | |||
"[output-task : writefile-step] wrote a file\n", |
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.
I don't know why only taskrun's log didn't include task name on log format.
but I think it would be better including task name on log like pipelinerun's log,
so this PR include it together with refactoring.
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.
I think it's because it's implicit? i guess I am good with this, I am just worry if someone (ie.: the vscode tekton plugin use tkn as backend) depends on that output...
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.
I think it's because it's implicit? i guess I am good with this, I am just worry if someone (ie.: the vscode tekton plugin use tkn as backend) depends on that output...
Ahh.. okay, I'll undo it, thanks !!
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.
I think it's because it's implicit? i guess I am good with this, I am just worry if someone (ie.: the vscode tekton plugin use tkn as backend) depends on that output...
+1
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.
@chmouel sorry for late, I undid it !!
/ok-to-test |
/retest |
related issue is tektoncd#708 taskrun's logwriter and pipelinerun's logwriter are almost same code. It is useful and readable moving these code into same package.
8edc0d6
to
5b44f53
Compare
/lgtm thanks |
@chmouel Thanks!! |
yes!! please do! feel free to send a PR to the members section of the org.yaml.
|
Thanks!! |
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
/meow
In response to this:
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. |
[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 #708
moving
pkg/cmd/taskrun/log_writer.go
andpkg/cmd/pipelinerun/log_writer.go
into same package.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