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

Fix broken tests and add an extra one #2625

Merged
merged 3 commits into from
Aug 1, 2022
Merged

Fix broken tests and add an extra one #2625

merged 3 commits into from
Aug 1, 2022

Conversation

na--
Copy link
Member

@na-- na-- commented Aug 1, 2022

While doing a fairly hefty refactoring (#2594 (comment)), I noticed that a couple of the currently existing tests are invalid or broken... 😞 I'll fix them commit by commit here before making another PR with the actual refactoring.

Previous to this, setupExecutor() would always call calculate maxPlannedVUs as if the ExecutionSegmnent was 1:1, since it needed to be manually specified in the Options as well as the ExecutionState. So, while the 3/4:1 segment in TestRampingArrivalRateGlobalIters() theoretically was allotted preAllocatedVUs=0 and maxVUs=1, it actually got 2 pre-allocated VUs to play with, and was able to achieve some of its iterations despite the broken test...
@na-- na-- added this to the v0.40.0 milestone Aug 1, 2022
Because the parsing of the threshold definitions now happens in cmd/, loadedTest.consolidateDeriveAndValidateConfig() specifically, this Engine test was completely invalid. You could add whatever values you wanted in its thresholds and it will have still passed...
@na-- na-- marked this pull request as ready for review August 1, 2022 08:22
@github-actions github-actions bot requested review from mstoykov and oleiade August 1, 2022 08:22
@na-- na-- requested review from codebien and mstoykov August 1, 2022 08:26
mstoykov
mstoykov previously approved these changes Aug 1, 2022
oleiade
oleiade previously approved these changes Aug 1, 2022
@na-- na-- dismissed stale reviews from oleiade and mstoykov via ad33cbb August 1, 2022 09:01
@na-- na-- changed the title Fix broken tests Fix broken tests and add an extra one Aug 1, 2022
@na-- na-- requested review from mstoykov and oleiade August 1, 2022 09:02
Copy link
Contributor

@codebien codebien left a comment

Choose a reason for hiding this comment

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

LGTM

@codebien
Copy link
Contributor

codebien commented Aug 1, 2022

@na-- A test failed but it seems not connected 🤔

@na--
Copy link
Member Author

na-- commented Aug 1, 2022

I re-ran it, since I plan to actually merge this with a merge commit, so I don't want any red crosses in the master history 😅

@na-- na-- merged commit 1e84682 into master Aug 1, 2022
@na-- na-- deleted the test-fixes branch August 1, 2022 11:52
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.

4 participants