Skip to content

[setup] invoke command updates - #11340

Merged
SchrodingersGat merged 6 commits into
inventree:masterfrom
SchrodingersGat:wait
Feb 16, 2026
Merged

SchrodingersGat merged 6 commits into
inventree:masterfrom
SchrodingersGat:wait

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Feb 16, 2026 •

Copy link
Copy Markdown
Member
  • wait for db before migrating data
  • improve task state reporting
  • early return from isGeneratingSchema (significant speed-up)

This fix ensures that the database is ready before running the migrate command.

Ref: #11338

- wait for db before migrating data
- improve task state reporting
- early return from isGeneratingSchema
@netlify

netlify Bot commented Feb 16, 2026 •

Copy link
Copy Markdown

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

Name Link
🔨 Latest commit 684813e
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/69930a7f46660b0008c1b755

- This caused large delay when restoring data
)
# Disable this warning message (for now) as it is confusing users with no upside
# if r == 0:
# logger.warning(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this disabled?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We are getting a lot of users reporting the following warning:

Failed to set maintenance mode state after 5 retries

And the users are reporting it as an error during the update process.

@SchrodingersGat SchrodingersGat added setup Relates to the InvenTree setup / installation process backport Apply this label to a PR to enable auto-backport action backport-to-1.2.x labels Feb 16, 2026
@SchrodingersGat SchrodingersGat added this to the 1.3.0 milestone Feb 16, 2026
@codspeed

codspeed Bot commented Feb 16, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by ×3.2

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚡ 44 improved benchmarks

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ WallTime test_api_stock_list 1,109.8 ms 435 ms ×2.6
⚡ WallTime test_api_part_list 956.3 ms 385.2 ms ×2.5
⚡ WallTime test_api_list_performance[/api/stock/location/] 60.3 ms 21.4 ms ×2.8
⚡ WallTime test_search_performance[customer] 43 ms 14.5 ms ×3
⚡ WallTime test_api_options_performance[/api/order/po/] 144 ms 49.8 ms ×2.9
⚡ WallTime test_search_performance[stocklocation] 53 ms 18 ms ×2.9
⚡ WallTime test_api_list_performance[/api/stock/] 479.1 ms 172.2 ms ×2.8
⚡ WallTime test_api_options_performance[/api/order/po-line/] 465.9 ms 171.2 ms ×2.7
⚡ WallTime test_api_auth_performance 1,650.7 ms 654 ms ×2.5
⚡ WallTime test_search_performance[manufacturer] 43 ms 15.1 ms ×2.8
⚡ WallTime test_search_performance[supplier] 42.8 ms 14.7 ms ×2.9
⚡ WallTime test_api_list_performance[/api/part/] 222.3 ms 80 ms ×2.8
⚡ WallTime test_api_list_performance[/api/part/category/] 48.7 ms 17 ms ×2.9
⚡ WallTime test_search_performance[salesorder] 96.9 ms 34.4 ms ×2.8
⚡ WallTime test_search_performance[salesordershipment] 61.2 ms 22.9 ms ×2.7
⚡ WallTime test_api_options_performance[/api/parameter/] 41 ms 13.4 ms ×3.1
⚡ WallTime test_search_performance[build] 105.1 ms 37.4 ms ×2.8
⚡ WallTime test_api_options_performance[/api/parameter/template/] 27.9 ms 9.9 ms ×2.8
⚡ WallTime test_api_list_performance[/api/build/item/] 927 ms 332.5 ms ×2.8
⚡ WallTime test_search_performance[part] 184.1 ms 65.8 ms ×2.8
... ... ... ... ... ...

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


Comparing SchrodingersGat:wait (684813e) with master (a95ee3c)1

Open in CodSpeed

Footnotes

  1. No successful run was found on master (5f4dd49) during the generation of this report, so a95ee3c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Feb 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 38.46154% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 88.06%. Comparing base (5f4dd49) to head (684813e).
⚠️ Report is 335 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11340      +/-   ##
==========================================
- Coverage   88.06%   88.06%   -0.01%     
==========================================
  Files        1292     1292              
  Lines       58502    58509       +7     
  Branches     1943     1943              
==========================================
+ Hits        51518    51524       +6     
- Misses       6500     6501       +1     
  Partials      484      484              
Flag Coverage Δ
backend 89.27% <38.46%> (-0.01%) ⬇️

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

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

@SchrodingersGat
SchrodingersGat merged commit 430dfbb into inventree:master Feb 16, 2026
36 checks passed
@SchrodingersGat
SchrodingersGat deleted the wait branch February 16, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Apply this label to a PR to enable auto-backport action setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants