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

End to end test rule concurrency #8846

Merged
merged 8 commits into from
Jul 30, 2024
Merged

End to end test rule concurrency #8846

merged 8 commits into from
Jul 30, 2024

Conversation

gotjosh
Copy link
Contributor

@gotjosh gotjosh commented Jul 29, 2024

What this PR does

Adds an end to ends test to ensure rule concurrency is working correctly. A follow up to #8146

Which issue(s) this PR fixes or relates to

N/A

Checklist

  • Tests updated.
  • Documentation added.
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX].
  • about-versioning.md updated with experimental features.

@gotjosh gotjosh marked this pull request as ready for review July 30, 2024 09:44
@gotjosh gotjosh requested a review from a team as a code owner July 30, 2024 09:44
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Approving to unblock you, but I'm not much convinced the assertions increase our confidence.

integration/ruler_test.go Outdated Show resolved Hide resolved
integration/ruler_test.go Outdated Show resolved Hide resolved
integration/ruler_test.go Outdated Show resolved Hide resolved
gotjosh added a commit that referenced this pull request Jul 30, 2024
…-percentage`

To ensure that its value is 0 or greater.

NB: I double checked that the code doesn't panic with 0 and I'll add a test in #8846.

Do let me know if you think a unit test is also a good idea because in my head it seemd superflous.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
gotjosh added a commit that referenced this pull request Jul 30, 2024
…-percentage` (#8858)

* Validate `-ruler.independent-rule-evaluation-concurrency-min-duration-percentage`

To ensure that its value is 0 or greater.

NB: I double checked that the code doesn't panic with 0 and I'll add a test in #8846.

Do let me know if you think a unit test is also a good idea because in my head it seemd superflous.

Signed-off-by: gotjosh <josue.abreu@gmail.com>

---------

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
… expectations

Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

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

Nice, LGTM!

integration/ruler_test.go Outdated Show resolved Hide resolved
Signed-off-by: gotjosh <josue.abreu@gmail.com>
Signed-off-by: gotjosh <josue.abreu@gmail.com>
@gotjosh gotjosh merged commit 0e9ba28 into main Jul 30, 2024
29 checks passed
@gotjosh gotjosh deleted the e2e-test-rule-concurrency branch July 30, 2024 16:29
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.

2 participants