mirror of
https://github.com/inventree/InvenTree.git
synced 2026-01-09 04:38:00 +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:
9
.github/workflows/qc_checks.yaml
vendored
9
.github/workflows/qc_checks.yaml
vendored
@@ -332,7 +332,7 @@ jobs:
|
|||||||
- name: Performance Reporting
|
- name: Performance Reporting
|
||||||
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4
|
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4
|
||||||
with:
|
with:
|
||||||
mode: simulation
|
mode: walltime
|
||||||
run: pytest ./src/performance --codspeed
|
run: pytest ./src/performance --codspeed
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
@@ -389,7 +389,7 @@ jobs:
|
|||||||
|
|
||||||
performance:
|
performance:
|
||||||
name: Tests - Performance
|
name: Tests - Performance
|
||||||
runs-on: ubuntu-24.04
|
runs-on: codspeed-macro
|
||||||
|
|
||||||
needs: ["pre-commit", "paths-filter"]
|
needs: ["pre-commit", "paths-filter"]
|
||||||
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true'
|
if: needs.paths-filter.outputs.server == 'true' || needs.paths-filter.outputs.force == 'true'
|
||||||
@@ -414,10 +414,13 @@ jobs:
|
|||||||
apt-dependency: gettext poppler-utils
|
apt-dependency: gettext poppler-utils
|
||||||
dev-install: true
|
dev-install: true
|
||||||
update: true
|
update: true
|
||||||
|
npm: true
|
||||||
|
env:
|
||||||
|
node_version: '>=20.19.0'
|
||||||
- name: Performance Reporting
|
- name: Performance Reporting
|
||||||
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4
|
uses: CodSpeedHQ/action@972e3437949c89e1357ebd1a2dbc852fcbc57245 # pin@v4
|
||||||
with:
|
with:
|
||||||
mode: simulation
|
mode: walltime
|
||||||
run: inv dev.test --pytest
|
run: inv dev.test --pytest
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
|
|||||||
@@ -17,7 +17,6 @@ def main():
|
|||||||
'available on your PYTHONPATH environment variable? Did you '
|
'available on your PYTHONPATH environment variable? Did you '
|
||||||
'forget to activate a virtual environment?'
|
'forget to activate a virtual environment?'
|
||||||
) from exc
|
) from exc
|
||||||
|
|
||||||
execute_from_command_line(sys.argv)
|
execute_from_command_line(sys.argv)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user