2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-01-08 12:17:57 +00:00

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 415c52813b.

* 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 <oliver.henry.walters@gmail.com>
This commit is contained in:
Matthias Mair
2026-01-06 21:05:12 +01:00
committed by GitHub
parent d92672d0d9
commit 0a685c09de
2 changed files with 6 additions and 4 deletions

View File

@@ -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:

View File

@@ -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)