Skip to content

Conversation

@matmair
Copy link
Contributor

@matmair matmair commented Jan 5, 2026

Using the full django setup for performance testing is expensive, doing it via the python API is much faster as seen in #11073 (comment) so the listed tests from that issue are added here for future CI tests.

Ref #11002

@matmair matmair added this to the 1.2.0 milestone Jan 5, 2026
@matmair matmair self-assigned this Jan 5, 2026
@matmair matmair added the CI CI / unit testing ecosystem label Jan 5, 2026
@netlify
Copy link

netlify bot commented Jan 5, 2026

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit c22c898
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/695bb76e31b4860008aa8559

@matmair matmair marked this pull request as ready for review January 5, 2026 13:33
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.18%. Comparing base (025f6ff) to head (c22c898).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11080      +/-   ##
==========================================
- Coverage   88.18%   88.18%   -0.01%     
==========================================
  Files        1290     1290              
  Lines       58142    58142              
  Branches     1969     1969              
==========================================
- Hits        51273    51272       -1     
- Misses       6378     6379       +1     
  Partials      491      491              
Flag Coverage Δ
backend 89.48% <ø> (-0.01%) ⬇️

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

Components Coverage Δ
Backend Apps 92.02% <ø> (ø)
Backend General 93.48% <ø> (ø)
Frontend 70.85% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@matmair matmair closed this Jan 5, 2026
@matmair matmair reopened this Jan 5, 2026
@codspeed-hq
Copy link

codspeed-hq bot commented Jan 5, 2026

CodSpeed Performance Report

Merging #11080 will not alter performance

Comparing matmair:add-more-performance-tests (c22c898) with master (025f6ff)

Summary

✅ 2 untouched
🆕 27 new

Benchmarks breakdown

Benchmark BASE HEAD Efficiency
🆕 test_api_options_performance[/api/part/] N/A 5.6 ms N/A
🆕 test_api_options_performance[/api/part/category/] N/A 3.8 ms N/A
🆕 test_api_options_performance[/api/order/po-line/] N/A 5.9 ms N/A
🆕 test_api_options_performance[/api/order/so/shipment/] N/A 4.9 ms N/A
🆕 test_api_options_performance[/api/parameter/template/] N/A 3.7 ms N/A
🆕 test_api_options_performance[/api/company/] N/A 4.1 ms N/A
🆕 test_api_options_performance[/api/order/po/] N/A 4.8 ms N/A
🆕 test_api_options_performance[/api/user/roles/] N/A 3.6 ms N/A
🆕 test_api_options_performance[/api/build/item/] N/A 4.8 ms N/A
🆕 test_api_options_performance[/api/build/line/] N/A 5.2 ms N/A
🆕 test_api_list_performance[/api/order/so/shipment/] N/A 3.6 ms N/A
🆕 test_api_options_performance[/api/order/so/] N/A 4.7 ms N/A
🆕 test_api_list_performance[/api/part/] N/A 5.1 ms N/A
🆕 test_api_list_performance[/api/build/item/] N/A 3.6 ms N/A
🆕 test_api_options_performance[/api/stock/location/] N/A 4 ms N/A
🆕 test_api_list_performance[/api/parameter/template/] N/A 3.6 ms N/A
🆕 test_api_options_performance[/api/build/] N/A 4.8 ms N/A
🆕 test_api_list_performance[/api/parameter/] N/A 3.7 ms N/A
🆕 test_api_list_performance[/api/company/] N/A 3.7 ms N/A
🆕 test_api_auth_performance N/A 10.7 ms N/A
... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

@matmair
Copy link
Contributor Author

matmair commented Jan 6, 2026

Note: with walltime we would get syscalls included #11081 and make times more reflective of end user experience

@SchrodingersGat SchrodingersGat merged commit 75d6cbf into inventree:master Jan 6, 2026
59 checks passed
@SchrodingersGat SchrodingersGat deleted the add-more-performance-tests branch January 6, 2026 03:41
@SchrodingersGat
Copy link
Member

Let's see what we can learn from this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI CI / unit testing ecosystem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants