-
Notifications
You must be signed in to change notification settings - Fork 6
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
Split the is_importing stat in two #96
Conversation
2bfa3e4
to
6a33470
Compare
6a33470
to
b720153
Compare
We want to use two new different sockstats, `import_skip_push_limit` and `import_soft_throttling` which are respectively used to allow a higher push limit, and implement soft throttling policy for imports. We still forward the `is_importing` stat for to skip push limit for backward compatibility. We plan to remove it on a subsequent PR.
b720153
to
aeb2528
Compare
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.
Copilot encountered an error and was unable to review this pull request. You can try again, by re-requesting a review.
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.
Would you mind adding an extra test in spokes-receive-pack/blob/main/internal/integration/integration_test.go?
Done, let me know what you think 👌 |
@migue have you seen this flake before ?
|
No, this is the first time I see this |
Well it does not look like a flake, it failed every single time I retried 😞 . I will try to figure out why that's happening. |
I've tried to reproduce it locally, using both the main branch and your PR branch and I have not been able to reproduce the error. I need to leave in ~15 mins but if you want we can pair tomorrow morning and take a deeper look at it |
Same here, let's pair tomorrow 👌 |
Am not sure why that's happening, but I wonder if the protocol allow the list of capabilities to be empty but we absolutely expect it to be set when we parse the ref advertisement pkt-lines. This protocol definition seem to indicate that it can't be empty.
But this doc for protocol v2 shows that capabilities can be empty and on a separate line than those of the ref advertisement.
|
It fails in main, I am not sure why. I have tried to reproduce it locally, using the very same Git version that the CI is using and I am not able to reproduce it. |
We want to use two new different sockstats,
import_skip_push_limit
andimport_soft_throttling
which are respectively used to allow a higher push limit, and implement soft throttling policy for imports.We still forward the
is_importing
stat for to skip push limit for backward compatibility. We plan to remove it on a subsequent PR.