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

NAS-129934 / 24.10 / reset rate limit in client asset for integration tests #13986

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

yocalebo
Copy link
Contributor

@yocalebo yocalebo commented Jul 7, 2024

For reasons yet understood, the jenkins pipeline doesn't seem to be reinstalling middleware properly. This meant that the rate limit logic that I added wasn't actually being tested during the CI/CD runs. (I just so happened to be testing manually by hand as well). After a new incremental was generated with the rate limit logic, a large amount of our "roles" related tests failed because they were tripping rate limit.

The common_checks() function isn't designed very well and is causing an absurd amount of auth.login calls during a test run. Instead of trying to fix that, I took path of least resistance and clear the global rate limit cache when we hit it in the client context manager function.

@yocalebo yocalebo requested a review from a team July 7, 2024 13:25
@bugclerk
Copy link
Contributor

bugclerk commented Jul 7, 2024

@bugclerk bugclerk changed the title reset rate limit in client asset for integration tests NAS-129934 / 24.10 / reset rate limit in client asset for integration tests Jul 7, 2024
@truenas truenas deleted a comment from bugclerk Jul 7, 2024
@yocalebo yocalebo merged commit 665ba3a into master Jul 8, 2024
3 checks passed
@yocalebo yocalebo deleted the fix-failing-tests branch July 8, 2024 10:32
@bugclerk
Copy link
Contributor

bugclerk commented Jul 8, 2024

This PR has been merged and conversations have been locked.
If you would like to discuss more about this issue please use our forums or raise a Jira ticket.

@truenas truenas locked as resolved and limited conversation to collaborators Jul 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants