test(e2e): add simple stress test suite#1188
Merged
Conversation
This commit makes `migrationTargetNodes()` less conservative: * Instead of relying on RS status fields, rely exclusively on instance status, avoiding occasionaly inconsistency. * Return list of all replicant nodes if no cluster members belong to "update" replicant set, mirroring original intention.
This commit introduces test suite, aimed at stressing the controller with frequent EMQX CR spec changes. Currently, it supports: * scaling core set up and down, * scaling replicants up and down.
This commit simplifies E2E test suite setup by moving Prometheus related fixtures to its own related test group module.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main-3.x #1188 +/- ##
============================================
+ Coverage 76.03% 77.33% +1.29%
============================================
Files 48 48
Lines 3998 3948 -50
============================================
+ Hits 3040 3053 +13
+ Misses 799 742 -57
+ Partials 159 153 -6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6d6b91f to
3d4b9f4
Compare
3d4b9f4 to
18e0cda
Compare
zmstone
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR focuses on a new basic stress test suite. This suite applies a short sequence of mutations to the EMQX CR under test in a quick succession and verifies that Operator handles them smoothly. Currently, only mutations are scaling cores and replicants up and down.
Apart from that, this PR:
migrationTargetNodes(...)implementation.