-
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
adds finally logs in pipelinerun #1077
Conversation
The following is the coverage report on the affected files.
|
9aed2ff
to
8b6652f
Compare
The following is the coverage report on the affected files.
|
/retest |
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.
SGTM
pkg/cmd/pipelinerun/logs_test.go
Outdated
test.AssertOutput(t, expected, output) | ||
} | ||
|
||
/*func TestPipelinerunLog_with_follow_mode_finally_task_v1beta1(t *testing.T) { |
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.
We should removed this code if commented 😉
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.
And write an e2e tests instead for it 😝
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.
Yeh 😝
Changed this to e2e
8b6652f
to
aebc9b4
Compare
The following is the coverage report on the affected files.
|
aebc9b4
to
ab5e22d
Compare
The following is the coverage report on the affected files.
|
/retest |
need to ignore finally related test for v0.10.0 |
This is what I did in #1066: Line 218 in 209581e
And used in test: cli/test/e2e/task/start_test.go Line 130 in 209581e
|
ab5e22d
to
d296cd2
Compare
The following is the coverage report on the affected files.
|
Thank you:smiley: this is helpful |
d296cd2
to
8449c2b
Compare
The following is the coverage report on the affected files.
|
t.Logf("Creating pipelinerun in namespace: %s", namespace) | ||
e2e.Assert(t, kubectl.Create(e2e.ResourcePath("pipelinerun-with-finally.yaml")), icmd.Success) | ||
|
||
t.Run("Pipelinerun logs with finally "+namespace, func(t *testing.T) { |
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.
Remove nested t.Run
:
t.Run("Pipelinerun logs with finally "+namespace, func(t *testing.T) {
res := tkn.Run("pipelinerun", "logs", "exit-handler", "-f")
log := res.Stdout()
s := []string{
"[print-msg : main] printing a message\n",
"[echo-on-exit : main] finally\n",
}
expected := strings.Join(s, "\n") + "\n"
e2e.AssertOutput(t, expected, log)
})
8449c2b
to
16aeef6
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-cli-unit-tests |
16aeef6
to
ca664cc
Compare
The following is the coverage report on the affected files.
|
closes tektoncd#1054 this adds finally logs in pipelinerun logs command in follow and non follow mode Signed-off-by: Pradeep Kumar <pradkuma@redhat.com>
ca664cc
to
75162c7
Compare
The following is the coverage report on the affected files.
|
/test pull-tekton-cli-integration-tests |
/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.
/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 |
closes #1054
this adds finally logs in pipelinerun logs command in follow and
non follow mode
Signed-off-by: Pradeep Kumar pradkuma@redhat.com
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