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

rate_limit: Add time unit week #37494

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

stefansedich
Copy link
Contributor

@stefansedich stefansedich commented Dec 3, 2024

Commit Message: rate_limit: Add time unit week
Additional Description:

Following on from #24070 and adding support for week as a unit of time for ratelimits as this is something my team currently needs and WEEK felt sad as it was missing the protobuf party.

Ideally we would have something like #33277 but in the interim it makes sense to add WEEK here since we have every other period already except week.

Risk Level: Low
Testing: Added unit test coverage
Docs Changes: n/a
Release Notes: added
Platform Specific Features: n/a

Copy link

Hi @stefansedich, welcome and thank you for your contribution.

We will try to review your Pull Request as quickly as possible.

In the meantime, please take a look at the contribution guidelines if you have not done so already.

🐱

Caused by: #37494 was opened by stefansedich.

see: more, trace.

Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @markdroth
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #37494 was opened by stefansedich.

see: more, trace.

@wbpcode
Copy link
Member

wbpcode commented Dec 4, 2024

So, the week is 7 days rather than a natural week, right? If is that way, please add a comment to document it clearly. Thanks.

@stefansedich
Copy link
Contributor Author

stefansedich commented Dec 4, 2024

So, the week is 7 days rather than a nature week, right? If is that way, please add a comment to document it clearly. Thanks.

First I have ever heard of a "nature week" 😸 hopefully that comment is what you were after! I guess it is also fitting that the enum value is also 7 here...

@wbpcode
Copy link
Member

wbpcode commented Dec 4, 2024

So, the week is 7 days rather than a nature week, right? If is that way, please add a comment to document it clearly. Thanks.

First I have ever heard of a "nature week" 😸 hopefully that comment is what you were after! I guess it is also fitting that the enum value is also 7 here...

Sorry, I didn't make it clear. But never mind, I just realized that the YEAR here is also not natural year.

So, it's fine, will take a more detailed check tomorrow

@markdroth
Copy link
Contributor

/lgtm api

@repokitteh-read-only repokitteh-read-only bot removed the api label Dec 4, 2024
Copy link
Contributor

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

This is failing coverage; please add a test that exercises this.

/wait

@ggreenway ggreenway self-assigned this Dec 4, 2024
@stefansedich
Copy link
Contributor Author

This is failing coverage; please add a test that exercises this.

/wait

Ok no problems let me see what I can add, had followed the PR that added month/year as a guide which did not add coverage but happy to add something.

@repokitteh-read-only repokitteh-read-only bot added api and removed waiting labels Dec 4, 2024
@stefansedich stefansedich force-pushed the rls-weekly branch 2 times, most recently from 8a9d392 to ad91a84 Compare December 4, 2024 21:16
@ggreenway ggreenway assigned wbpcode and unassigned ggreenway Dec 4, 2024
Signed-off-by: Stefan Sedich <[email protected]>
@stefansedich
Copy link
Contributor Author

stefansedich commented Dec 4, 2024

[----------] Global test environment tear-down
[==========] 12 tests from 1 test suite ran. (2 ms total)
[  PASSED  ] 12 tests.

@ggreenway coverage added, let me know if you have any issues/suggestions with what I did, I have not touched C++ in 15+ years so had to fumble may way through this.

wbpcode
wbpcode previously approved these changes Dec 5, 2024
@repokitteh-read-only repokitteh-read-only bot removed the api label Dec 5, 2024
Signed-off-by: Stefan Sedich <[email protected]>
@repokitteh-read-only repokitteh-read-only bot removed the api label Dec 6, 2024
@wbpcode
Copy link
Member

wbpcode commented Dec 6, 2024

ci still not happy

/wait

@stefansedich
Copy link
Contributor Author

ci still not happy

/wait

Thanks @wbpcode I saw those failures and was not sure as some of them looked like they flaked for unlrelated issues, let me know if I have missed something obvious.

@wbpcode
Copy link
Member

wbpcode commented Dec 6, 2024

/retest

@wbpcode
Copy link
Member

wbpcode commented Dec 6, 2024

ci still not happy
/wait

Thanks @wbpcode I saw those failures and was not sure as some of them looked like they flaked for unlrelated issues, let me know if I have missed something obvious.

let me retry the ci

@wbpcode
Copy link
Member

wbpcode commented Dec 6, 2024

cc @ggreenway

@stefansedich
Copy link
Contributor Author

Hi @wbpcode @ggreenway is there anything further I can do here to help this one land?

@ggreenway ggreenway merged commit 33fb499 into envoyproxy:main Dec 9, 2024
26 checks passed
@stefansedich stefansedich deleted the rls-weekly branch December 9, 2024 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants