Skip to content

Conversation

@timandy
Copy link

@timandy timandy commented Dec 2, 2022

Hi, there.
I made some features, hope can help you.

  1. Support compile projects on windows by goc.
  2. Fix goc client can not get the correct client-ip when the client has multiple networks, such as run in docker.
  3. The goc-client support register self to goc-server every 10 second. And the goc-sever kick out clients which is timeout (no register over 20 seconds) every 5 second.
@qiniu-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: timandy
To complete the pull request process, please assign lyyyuna
You can assign the PR to them by writing /assign @lyyyuna 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

@timandy
Copy link
Author

timandy commented Dec 2, 2022

/assign @lyyyuna

@timandy
Copy link
Author

timandy commented Dec 9, 2022

test case failed caused by server write log not flushed to disk. The ci in my fork repo is successed.

nonLocalIPV4 = ipNet.IP.String()
}
}
func getRealHost(port int) (host string, err error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

host and err are not in use.

Copy link
Author

Choose a reason for hiding this comment

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

@CarlJi fixed

fmt.Fprintf(f, strings.TrimPrefix(profileAddr, "http://"))
host, err := getRealHost(port)
if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

this err isn't caught. we'd better print it to let outside knows.

Copy link
Author

Choose a reason for hiding this comment

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

The error already printed when the app startup. And I add logs when the heartbeat failed.

@CarlJi
Copy link
Collaborator

CarlJi commented Dec 9, 2022

Hi @timandy, Thanks for your contributions. This seems a little big changes and we need more verifications especially for the new adapters on windows & k8s env.

Also, i am thinking whether it is necessary or not for the heartbeats enhancement, since now goc profile will ignore the failed registered services by default. Would you please provide more explanations for your thoughts about this feature?

@timandy
Copy link
Author

timandy commented Dec 12, 2022

Also, i am thinking whether it is necessary or not for the heartbeats enhancement, since now goc profile will ignore the failed registered services by default. Would you please provide more explanations for your thoughts about this feature?

@CarlJi Thanks for your review. Our service is deployed in the container. After several restarts, a lot of invalid clients will be generated. Although the goc server can filter invalid clients, these operations need network probing, which affects performance.

@timandy timandy requested a review from CarlJi December 12, 2022 09:23
@codecov
Copy link

codecov bot commented Dec 12, 2022

Codecov Report

Merging #321 (a9611f4) into master (5868a3e) will decrease coverage by 3.06%.
The diff coverage is 32.65%.

❗ Current head a9611f4 differs from pull request most recent head 779b556. Consider uploading reports for the commit 779b556 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@ ## master #321 +/- ## ========================================== - Coverage 70.76% 67.69% -3.07%  ========================================== Files 34 35 +1 Lines 2035 2130 +95 ========================================== + Hits 1440 1442 +2  - Misses 482 577 +95  + Partials 113 111 -2 
Flag Coverage Δ
e2e-1.16.x ?
e2e-1.17.x ?
e2e-1.18.x ?
e2e-1.19.x ?
unittest-1.16.x 67.69% <32.65%> (-2.97%) ⬇️
unittest-1.17.x 67.60% <32.65%> (-3.06%) ⬇️
unittest-1.18.x 67.60% <32.65%> (-3.06%) ⬇️
unittest-1.19.x 67.69% <32.65%> (-3.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/build/run.go 0.00% <0.00%> (ø)
pkg/cover/instrument.go 20.83% <ø> (ø)
pkg/qiniu/tools.go 0.00% <0.00%> (ø)
pkg/cover/server.go 67.64% <5.55%> (-15.39%) ⬇️
pkg/cover/store.go 69.44% <52.00%> (-14.59%) ⬇️
pkg/build/build.go 80.95% <100.00%> (ø)
pkg/build/install.go 64.10% <100.00%> (ø)
pkg/cover/cover.go 72.04% <100.00%> (ø)
pkg/prow/job.go 78.84% <100.00%> (ø)
@CarlJi
Copy link
Collaborator

CarlJi commented Feb 24, 2023

/unassign @lyyyuna
/assign @CarlJi

@qiniu-bot qiniu-bot assigned CarlJi and unassigned lyyyuna Feb 24, 2023
@qiniu-prow
Copy link

qiniu-prow bot commented Aug 27, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: timandy
Once this PR has been reviewed and has the lgtm label, please ask for approval from carlji. For more information see the Kubernetes Code Review Process.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4 participants