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 ramping-arrival-rate execution requirements #3593

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Fix ramping-arrival-rate execution requirements #3593

merged 2 commits into from
Feb 13, 2024

Conversation

joanlopez
Copy link
Contributor

@joanlopez joanlopez commented Feb 12, 2024

What?

It slightly modifies how the execution requirements are calculated to prevent issues when the execution is segmented and the PreAllocatedVUs aren't evenly distributed (not divisible by the number of segments).

Previously, PreAllocatedVUs were not always correctly subtracted from MaxVUs, causing weird situations during the load zone distribution calculations.

Why?

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@joanlopez joanlopez self-assigned this Feb 12, 2024
@joanlopez joanlopez requested a review from a team as a code owner February 12, 2024 14:11
@joanlopez joanlopez requested review from mstoykov and removed request for a team February 12, 2024 14:11
mstoykov
mstoykov previously approved these changes Feb 12, 2024
olegbespalov
olegbespalov previously approved these changes Feb 12, 2024
@olegbespalov
Copy link
Contributor

Looks good 👍 Let's just fix the linter issue and merge it 💪

@joanlopez joanlopez dismissed stale reviews from olegbespalov and mstoykov via 504230d February 12, 2024 14:34
@joanlopez
Copy link
Contributor Author

Looks good 👍 Let's just fix the linter issue and merge it 💪

Ha! Looks like I forgot to git add it after running the linter with --fix 😅 Good catch, thanks! 👍🏻

@joanlopez joanlopez requested a review from mstoykov February 12, 2024 14:36
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4de08c3) 73.53% compared to head (e2eea4f) 73.47%.

❗ Current head e2eea4f differs from pull request most recent head 504230d. Consider uploading reports for the commit 504230d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3593      +/-   ##
==========================================
- Coverage   73.53%   73.47%   -0.06%     
==========================================
  Files         277      275       -2     
  Lines       20201    20196       -5     
==========================================
- Hits        14854    14839      -15     
- Misses       4400     4404       +4     
- Partials      947      953       +6     
Flag Coverage Δ
macos ?
ubuntu 73.47% <100.00%> (+<0.01%) ⬆️
windows ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@joanlopez joanlopez merged commit 9c0c179 into grafana:master Feb 13, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants