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

Ratelimit integration test #5773

Merged
merged 12 commits into from
Apr 5, 2024

Conversation

jakobht
Copy link
Member

@jakobht jakobht commented Mar 11, 2024

Note, this will fail until this PR is merged: #5772

What changed?
Adds integration test for the workflowID specific ratelimits

Why?
We need to make sure the requests and errors are passed correctly all the way to and from the client.

How did you test it?
N/A

Potential risks

Release notes

Documentation Changes

@jakobht jakobht force-pushed the ratelimitIntegrationTest branch from a824cd4 to cb2e457 Compare March 14, 2024 12:37
Copy link
Member

@davidporter-id-au davidporter-id-au left a comment

Choose a reason for hiding this comment

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

nice!

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

Merging #5773 (d63a7be) into master (8bfda8a) will increase coverage by 0.00%.
The diff coverage is n/a.

Additional details and impacted files

see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8bfda8a...d63a7be. Read the comment docs.

jakobht added 4 commits March 20, 2024 09:04
Adding a seperate suite enables us to se the ratelimits only for this
specific test, and not for all the integration tests. Similar to the
async_wf_test
@jakobht jakobht force-pushed the ratelimitIntegrationTest branch 2 times, most recently from 031a1ba to 2a61173 Compare April 5, 2024 07:36
@jakobht jakobht force-pushed the ratelimitIntegrationTest branch from 2a61173 to d471c88 Compare April 5, 2024 07:49
@coveralls
Copy link

coveralls commented Apr 5, 2024

Pull Request Test Coverage Report for Build 018eae59-c67e-4c41-bd99-0c7282f5ebcf

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 29 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+0.05%) to 66.592%

Files with Coverage Reduction New Missed Lines %
service/history/task/transfer_standby_task_executor.go 2 86.19%
service/history/shard/context.go 2 66.7%
common/task/parallel_task_processor.go 2 93.06%
common/task/fifo_task_scheduler.go 3 84.54%
common/task/weighted_round_robin_task_scheduler.go 6 87.06%
service/history/task/fetcher.go 6 85.05%
service/history/task/cross_cluster_task_processor.go 8 80.79%
Totals Coverage Status
Change from base Build 018eae4d-8cc6-4fec-b3af-ef7712e9fedf: 0.05%
Covered Lines: 97438
Relevant Lines: 146320

💛 - Coveralls

host/workflowidratelimit_test.go Show resolved Hide resolved
host/workflowidratelimit_test.go Outdated Show resolved Hide resolved
host/workflowidratelimit_test.go Outdated Show resolved Hide resolved
Copy link
Member

@dkrotx dkrotx left a comment

Choose a reason for hiding this comment

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

nit: I recommend adding

host/workflowidratelimit_test.go Show resolved Hide resolved
@jakobht jakobht merged commit 9740c19 into cadence-workflow:master Apr 5, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants