Skip to content
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

refactor infrastructure and add ratelimit tests. #997

Merged
merged 1 commit into from
Feb 10, 2023

Conversation

qicz
Copy link
Member

@qicz qicz commented Feb 8, 2023

@qicz qicz requested a review from a team as a code owner February 8, 2023 03:14
@qicz qicz changed the title refactor: separate from ratelimt infrastruce logic for easy maintenance. refactor: separate from ratelimit infrastructure logic for easy maintenance. Feb 8, 2023
@codecov-commenter
Copy link

codecov-commenter commented Feb 8, 2023

Codecov Report

Merging #997 (586c621) into main (1b26380) will increase coverage by 2.68%.
The diff coverage is 84.63%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main     #997      +/-   ##
==========================================
+ Coverage   61.98%   64.66%   +2.68%     
==========================================
  Files          55       67      +12     
  Lines        8804     8802       -2     
==========================================
+ Hits         5457     5692     +235     
+ Misses       2972     2733     -239     
- Partials      375      377       +2     
Impacted Files Coverage Δ
internal/infrastructure/kubernetes/configmap.go 74.07% <ø> (+20.14%) ⬆️
internal/infrastructure/kubernetes/deployment.go 67.85% <ø> (+12.88%) ⬆️
internal/infrastructure/kubernetes/infra.go 100.00% <ø> (+72.36%) ⬆️
internal/infrastructure/kubernetes/labels.go 100.00% <ø> (+22.22%) ⬆️
...ernal/infrastructure/kubernetes/ratelimit_infra.go 0.00% <0.00%> (ø)
internal/infrastructure/kubernetes/service.go 58.62% <ø> (+17.80%) ⬆️
...ternal/infrastructure/kubernetes/serviceaccount.go 58.62% <ø> (ø)
internal/message/watchutil.go 100.00% <ø> (ø)
internal/infrastructure/kubernetes/proxy_infra.go 43.24% <43.24%> (ø)
...nternal/infrastructure/kubernetes/proxy_service.go 73.33% <73.33%> (ø)
... and 17 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@arkodg
Copy link
Contributor

arkodg commented Feb 8, 2023

hey @qicz thanks for looking into this, the refactor sgtm, would reccomend also renaming existing files into proxy_X.go
lastly a good way to test out your changes would be to get the tests for these methods in, avoiding any regression. I plan on working on #941 soon but haven't started yet, is this something you can pick up ?

@arkodg arkodg added this to the 0.4.0-rc.1 milestone Feb 8, 2023
@qicz
Copy link
Member Author

qicz commented Feb 8, 2023

hey @qicz thanks for looking into this, the refactor sgtm, would reccomend also renaming existing files into proxy_X.go lastly a good way to test out your changes would be to get the tests for these methods in, avoiding any regression. I plan on working on #941 soon but haven't started yet, is this something you can pick up ?

Let me try to do it

@Xunzhuo
Copy link
Member

Xunzhuo commented Feb 8, 2023

Assigned to you @qicz, thanks!

@qicz qicz changed the title refactor: separate from ratelimit infrastructure logic for easy maintenance. refactor infrastructure and add ratelimit tests. Feb 8, 2023
@qicz qicz force-pushed the refactor-ratelimit branch 5 times, most recently from 3effdaf to e708275 Compare February 8, 2023 08:31
@qicz
Copy link
Member Author

qicz commented Feb 8, 2023

@arkodg @Xunzhuo I did it pls review this.

@Xunzhuo
Copy link
Member

Xunzhuo commented Feb 8, 2023

Great job @qicz, I will take a look ASAP.

@arkodg
Copy link
Contributor

arkodg commented Feb 8, 2023

hey @qicz thanks for picking up #941 , left comments

@qicz qicz requested a review from arkodg February 9, 2023 07:53
@danehans danehans added the area/ci CI and build related issues label Feb 9, 2023
Signed-off-by: qicz <qiczzhu@gmail.com>
Copy link
Contributor

@arkodg arkodg left a comment

Choose a reason for hiding this comment

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

LGTM thanks @qicz !

@arkodg arkodg merged commit ae1467a into envoyproxy:main Feb 10, 2023
@qicz qicz deleted the refactor-ratelimit branch February 11, 2023 03:09
@qicz qicz restored the refactor-ratelimit branch April 6, 2023 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci CI and build related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants