Skip to content

Conversation

@bisgaard-itis
Copy link
Contributor

@bisgaard-itis bisgaard-itis commented Sep 5, 2025

What do these changes do?

  • Add functionality to generate a random body in our single endpoint locust test. Using this one can specify the json schema of the request body as a string in the locust UI and when running the locust test random request bodies are generated for the different users.
  • Adds https://github.com/ghandic/jsf dependency to our locust testing framework
  • This is particularly useful for ensuring we avoid the caching system when load testing the functions section of the api-server
  • This was used to generate the Locust results here

Related issue/s

How to test

Dev-ops

@codecov
Copy link

codecov bot commented Sep 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.85%. Comparing base (3fb8edd) to head (1bfe78d).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8318      +/-   ##
==========================================
+ Coverage   87.84%   87.85%   +0.01%     
==========================================
  Files        1945     1945              
  Lines       75369    75369              
  Branches     1311     1311              
==========================================
+ Hits        66208    66217       +9     
+ Misses       8766     8757       -9     
  Partials      395      395              
Flag Coverage Δ *Carryforward flag
integrationtests 64.18% <ø> (+0.12%) ⬆️
unittests 86.51% <ø> (+<0.01%) ⬆️ Carriedforward from 920710a

*This pull request uses carry forward flags. Click here to find out more.

Components Coverage Δ
pkg_aws_library 93.59% <ø> (ø)
pkg_celery_library 87.37% <ø> (ø)
pkg_dask_task_models_library 79.62% <ø> (ø)
pkg_models_library 93.15% <ø> (ø)
pkg_notifications_library 85.20% <ø> (ø)
pkg_postgres_database 88.02% <ø> (ø)
pkg_service_integration 70.19% <ø> (ø)
pkg_service_library 71.13% <ø> (ø)
pkg_settings_library 90.17% <ø> (ø)
pkg_simcore_sdk 85.03% <ø> (+0.05%) ⬆️
agent 93.53% <ø> (ø)
api_server 91.91% <ø> (ø)
autoscaling 95.77% <ø> (ø)
catalog 92.34% <ø> (ø)
clusters_keeper 99.13% <ø> (ø)
dask_sidecar 92.37% <ø> (ø)
datcore_adapter 97.94% <ø> (ø)
director 75.81% <ø> (ø)
director_v2 91.06% <ø> (+0.05%) ⬆️
dynamic_scheduler 96.27% <ø> (ø)
dynamic_sidecar 90.46% <ø> (ø)
efs_guardian 89.62% <ø> (ø)
invitations 91.44% <ø> (ø)
payments 92.61% <ø> (ø)
resource_usage_tracker 92.29% <ø> (+0.05%) ⬆️
storage 86.57% <ø> (ø)
webclient ∅ <ø> (∅)
webserver 87.99% <ø> (+0.01%) ⬆️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3fb8edd...1bfe78d. Read the comment docs.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bisgaard-itis bisgaard-itis self-assigned this Sep 5, 2025
@bisgaard-itis bisgaard-itis added the t:maintenance Some planned maintenance work label Sep 5, 2025
@bisgaard-itis bisgaard-itis added this to the Cheops milestone Sep 5, 2025
@bisgaard-itis bisgaard-itis marked this pull request as ready for review September 5, 2025 09:46
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 5, 2025

@bisgaard-itis bisgaard-itis changed the title 🎨 Allow random body generation and headers in single endpoint locust test 🎨 Allow headers and random body generation in single endpoint locust test Sep 5, 2025
@mergify
Copy link
Contributor

mergify bot commented Sep 5, 2025

🧪 CI Insights

Here's what we observed from your CI run for 1bfe78d.

✅ Passed Jobs With Interesting Signals

Pipeline Job Signal Health on master Retries 🔍 CI Insights 📄 Logs
CI integration-tests Base branch is healthy, but retries were needed. Could be early signs of flakiness 👀 Healthy 1 View View
system-tests Base branch is broken, but retries were needed. Could be early signs of flakiness 👀 Broken 1 View View

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx. nice addition

Copy link
Member

@pcrespov pcrespov left a comment

Choose a reason for hiding this comment

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

thx! looks very useful

@bisgaard-itis bisgaard-itis merged commit 9149e41 into ITISFoundation:master Sep 5, 2025
147 of 148 checks passed
@bisgaard-itis bisgaard-itis deleted the allow-random-data-generation-in-single-endpoint-locust-test branch September 5, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t:maintenance Some planned maintenance work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants