From 0a685c09de8c817d226f286453ce853234b407e9 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Tue, 6 Jan 2026 21:05:12 +0100 Subject: [PATCH] refactor(backend): use walltime for performance testing (#11081) * Matmair/issue10740 (#497) * reduce noise in docker * refactor path infos * add more info during local frontend build * add frontend info during release build * Revert "Matmair/issue10740 (#497)" (#498) This reverts commit 415c52813bf6f3ab7e88d850d272686ad2910fb3. * use walltime * switch measure mode * dummy change * dummy change * ensure npm works * pin needed version * split out performance test to also use walltime * roll back split, is too slow --------- Co-authored-by: Oliver --- .github/workflows/qc_checks.yaml | 9 ++++++--- src/backend/InvenTree/manage.py | 1 - 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/qc_checks.yaml b/.github/workflows/qc_checks.yaml index 28d2a4dd1c..041d020647 100644 --- a/.github/workflows/qc_checks.yaml +++ b/.github/workflows/qc_checks.yaml @@ -332,7 +332,7 @@ jobs: - name: Performance Reporting uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4 with: - mode: simulation + mode: walltime run: pytest ./src/performance --codspeed coverage: @@ -389,7 +389,7 @@ jobs: performance: name: Tests - Performance - runs-on: ubuntu-24.04 + runs-on: codspeed-macro needs: ["pre-commit", "paths-filter"] if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true' @@ -414,10 +414,13 @@ jobs: apt-dependency: gettext poppler-utils dev-install: true update: true + npm: true + env: + node_version: '>=20.19.0' - name: Performance Reporting uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4 with: - mode: simulation + mode: walltime run: inv dev.test --pytest postgres: diff --git a/src/backend/InvenTree/manage.py b/src/backend/InvenTree/manage.py index 9e1d7b6804..988cd61e3f 100755 --- a/src/backend/InvenTree/manage.py +++ b/src/backend/InvenTree/manage.py @@ -17,7 +17,6 @@ def main(): 'available on your PYTHONPATH environment variable? Did you ' 'forget to activate a virtual environment?' ) from exc - execute_from_command_line(sys.argv)