Skip to content

Conversation

kerthcet
Copy link
Contributor

@kerthcet kerthcet commented Jun 3, 2022

Signed-off-by: kerthcet [email protected]

Changes

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in
    (if there are no user facing changes, use release note "NONE")

Release Notes

NONE

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 3, 2022
@tekton-robot
Copy link
Collaborator

Hi @kerthcet. 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 tekton-robot requested review from dibyom and lbernick June 3, 2022 15:15
Copy link
Member

@lbernick lbernick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test

Thanks @kerthcet! would you mind adding a commit message body please?

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 3, 2022
@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lbernick

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 3, 2022
@kerthcet kerthcet force-pushed the cleanup/remove-potential-goroutine branch from dbb1eec to 607ab17 Compare June 3, 2022 15:48
@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 3, 2022

/ok-to-test

Thanks @kerthcet! would you mind adding a commit message body please?

Absolutely, done.

@abayer
Copy link
Contributor

abayer commented Jun 3, 2022

/retest

@abayer
Copy link
Contributor

abayer commented Jun 3, 2022

/lgtm

Good catch!

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 3, 2022
When we try to record metrics in a forked goroutine, we should inherit
the context from upstream to prevent potential goroutine leakages.

Signed-off-by: kerthcet <[email protected]>
@kerthcet kerthcet force-pushed the cleanup/remove-potential-goroutine branch from 607ab17 to 341912e Compare June 4, 2022 02:06
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 4, 2022
@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 4, 2022

@abayer PTAL, fixed the tests error, thanks.

@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 4, 2022

/hold

@tekton-robot tekton-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 4, 2022
@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 4, 2022

/retest

@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 4, 2022

/test pull-tekton-pipeline-unit-tests

@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 4, 2022

Well, unit tests failed for some unknown reason, details here https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_pipeline/4936/pull-tekton-pipeline-unit-tests/1532906825693794306/, but I can't reproduce this, all tests passed in my local env, unhold then.
/unhold

}

if err := metrics.DurationAndCount(&v1beta1.TaskRun{}, beforeCondition); err == nil {
ctx, cancel := context.WithCancel(context.Background())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just curious, what's the need for the cancellation function here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to teardown the resources.

@lbernick
Copy link
Member

lbernick commented Jun 6, 2022

Well, unit tests failed for some unknown reason, details here https://tekton-releases.appspot.com/build/tekton-prow/pr-logs/pull/tektoncd_pipeline/4936/pull-tekton-pipeline-unit-tests/1532906825693794306/, but I can't reproduce this

Unfortunately our tests are quite flaky right now :( This error looks a lot like a flake to me so OK to rerun

@lbernick
Copy link
Member

lbernick commented Jun 6, 2022

@abayer I don't think anything has really changed since you LGTMed so I'll go ahead and add that label-- lmk if any concerns

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 6, 2022
@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 6, 2022

/unhold

@kerthcet
Copy link
Contributor Author

kerthcet commented Jun 6, 2022

It seems like I have no privilege to remove the do-not-merge/hold label, need some help @lbernick , thanks a lot.

@lbernick
Copy link
Member

lbernick commented Jun 6, 2022

oh oops sorry-- I don't think you need permissions, it's just a different command

/hold cancel

@tekton-robot tekton-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 6, 2022
@tekton-robot tekton-robot merged commit c671899 into tektoncd:main Jun 6, 2022
@kerthcet kerthcet deleted the cleanup/remove-potential-goroutine branch June 6, 2022 15:49
@afrittoli
Copy link
Member

/kind bug

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants