cli icon indicating copy to clipboard operation
cli copied to clipboard

Resolved the different log output issue for `tkn p logs` and `tkn pr logs`.

Open Senjuti256 opened this issue 1 year ago • 8 comments

Changes

Added additional formatting options such as --prefix for tkn p logs, which prefixes each log line with the task name and step name to match the output format of tkn pr logs. This is done to resolve issue #2223 .

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)
  • [x] Run the code checkers with make check
  • [x] Regenerate the manpages, docs and go formatting with make generated
  • [ ] Commit messages follow commit message best practices

See the contribution guide for more details.

Release Notes

Senjuti256 avatar Feb 01 '24 15:02 Senjuti256

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: To complete the pull request process, please assign pradeepitm12 after the PR has been reviewed. You can assign the PR to them by writing /assign @pradeepitm12 in a comment when ready.

The full list of commands accepted by this bot can be found 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 avatar Feb 01 '24 15:02 tekton-robot

Hi @Senjuti256. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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.

tekton-robot avatar Feb 01 '24 15:02 tekton-robot

/ok-to-test

vdemeester avatar Feb 19 '24 09:02 vdemeester

/retest

Senjuti256 avatar Feb 19 '24 10:02 Senjuti256

@Senjuti256 Can you please add some tests for it?

piyush-garg avatar Feb 20 '24 07:02 piyush-garg

/retest

piyush-garg avatar Feb 23 '24 04:02 piyush-garg

@Senjuti256: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-tekton-cli-unit-tests 0acf3eae5a2124f0c129bf44f5111ffcca144e93 link true /test pull-tekton-cli-unit-tests
pull-tekton-cli-build-tests 0acf3eae5a2124f0c129bf44f5111ffcca144e93 link true /test pull-tekton-cli-build-tests
pull-tekton-cli-integration-tests 0acf3eae5a2124f0c129bf44f5111ffcca144e93 link true /test pull-tekton-cli-integration-tests

Full PR test history. Your PR dashboard.

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. I understand the commands that are listed here.

tekton-robot avatar Mar 19 '24 07:03 tekton-robot