-
Notifications
You must be signed in to change notification settings - Fork 720
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
*: use context to manage runner #8394
Conversation
Signed-off-by: Ryan Leung <[email protected]>
/test pull-integration-realcluster-test |
@okJiang: adding LGTM is restricted to approvers and reviewers in OWNERS files. 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #8394 +/- ##
==========================================
- Coverage 77.24% 77.15% -0.10%
==========================================
Files 471 471
Lines 61696 61700 +4
==========================================
- Hits 47660 47607 -53
- Misses 10454 10507 +53
- Partials 3582 3586 +4
Flags with carried forward coverage won't be shown. Click here to find out more. |
I found lots of repeated operator logs in the test. Is this because of the content of this pr? 🤔
|
I don't know the relationship between the failure test and this PR. It looks irrelevant. |
/test pull-integration-realcluster-test |
/hold |
Signed-off-by: Ryan Leung <[email protected]>
/test pull-integration-realcluster-test |
/hold cancel |
start := time.Now() | ||
select { | ||
case <-ctx.Done(): | ||
return |
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 the race problem's main reason is the task of accessing the object without protection. here still cannot avoid this kind of problem, we should let the task be safely run concurrency in task logic.
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.
Yes, indeed, but with the context, we can exit the goroutine ASAP.
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.
actually, I think it should pass context to the task, and then the task should consider exit ASAP by context cancel. here only prevent starting the new task. the initial version has this design :)
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: HuSharp, nolouch, okJiang 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 |
@rleungx: Your PR was out of date, I have automatically updated it for you. If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. 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 ti-community-infra/tichi repository. |
What problem does this PR solve?
Issue Number: ref #8386
What is changed and how does it work?
Check List
Tests
Release note