feat(Taskfile, workflows): add new benchmarking and integrity testing tasks, and create a Gitea workflow for automated benchmarks

This commit is contained in:
2026-01-03 15:44:17 -06:00
parent b544108d4b
commit b59c21f483
2 changed files with 76 additions and 2 deletions

View File

@@ -106,6 +106,11 @@ tasks:
cmds:
- "{{.NPM}} run test"
gen-locale-template:
desc: Generate a locales.json template with empty values from en.json
cmds:
- "{{.PYTHON}} scripts/generate_locale_template.py"
test:
desc: Run all tests
deps: [test-python, test-frontend]
@@ -114,6 +119,32 @@ tasks:
desc: Run all tests with coverage reports
deps: [test-python-cov, test-frontend]
bench-backend:
desc: Run comprehensive backend benchmarks
cmds:
- poetry run python tests/backend/run_comprehensive_benchmarks.py
bench-extreme:
desc: Run extreme backend stress benchmarks (Breaking Space Mode)
cmds:
- poetry run python tests/backend/run_comprehensive_benchmarks.py --extreme
profile-memory:
desc: Run backend memory profiling tests
cmds:
- poetry run pytest tests/backend/test_memory_profiling.py
test-integrity:
desc: Run backend and data integrity tests
cmds:
- poetry run pytest tests/backend/test_integrity.py tests/backend/test_backend_integrity.py
bench:
desc: Run all backend benchmarks and memory profiling
cmds:
- task: bench-backend
- task: profile-memory
compile:
desc: Compile Python code to check for syntax errors
cmds:
@@ -213,7 +244,7 @@ tasks:
deps: [build, electron-legacy]
cmds:
- "{{.NPM}} run electron-postinstall"
- "{{.NPM}} run dist -- --linux AppImage"
- "{{.NPM}} run dist -- --linux AppImage -c.extraMetadata.main=electron/main-legacy.js"
- "./scripts/rename_legacy_artifacts.sh"
build-exe-legacy:
@@ -221,7 +252,7 @@ tasks:
deps: [build, electron-legacy]
cmds:
- "{{.NPM}} run electron-postinstall"
- "{{.NPM}} run dist -- --win portable"
- "{{.NPM}} run dist -- --win portable -c.extraMetadata.main=electron/main-legacy.js"
- "./scripts/rename_legacy_artifacts.sh"
clean: