Repository navigation
fix(ci): each uv job keeps its own cache, grype's database is cached, and E2E skips Playwright's apt step and the observability images - #457
Merged
Conversation
…ep, and grype's database is cached All backend jobs shared one setup-uv key, so the first job to finish (bandit only) saved a 3 MB cache and the others downloaded CPython and every wheel on each run; each job now saves its own cache with the managed Python. The Playwright browser cache follows the browser builds in playwright-core's browsers.json instead of the whole package-lock.json, and the install-deps step goes: on the runner image it only adds fonts no test uses, and its apt download stalled two runs for more than 6 minutes. The SBOM scan restores grype's vulnerability database from a cache keyed on the checksum of the newest database, instead of spending about 80 s downloading and unpacking it in each job.
HardMax71
enabled auto-merge (squash)
October 23, 2026 18:42
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
…the observability services No E2E test uses Grafana, Loki, OpenSearch, VictoriaMetrics, Jaeger or the collectors. Since #456 the E2E jobs pulled their 4 GB of images too: the pull grew from 22 s to 49 s and the stack waited about 25 s on it, plus 13 s more startup.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
Several CI steps download the same things on every run. The backend jobs share one setup-uv cache key, so Security Scanning, done first with only bandit inside, saves 3 MB and the other six download CPython and every wheel each run (run). Playwright's apt step installs fonts no test uses and stalled shard 1 for over 6 minutes twice (#455, #456). grype spends about 80 s per SBOM job on its database for a 0.2 s scan (run). Since #456, E2E also pulls 4 GB of observability images no test uses.
Changes
Each uv job saves its own cache (
cache-suffix: ${{ github.job }}) with the managed Python. The Playwright cache follows playwright-core'sbrowsers.json, and install-deps goes, since the runner image has Chromium's libraries. grype's database is cached under the checksum of the newest one, so it downloads only when a newer one exists. E2E pulls and starts only the frontend, the worker, the backup and their dependencies.Type of Change
Test Plan
cd backend && uv run pytest tests/unit)cd frontend && npm run test)docker compose exec -T backend sh -c 'uv sync --group test --no-dev --frozen --no-install-project --no-build && pytest tests/e2e')cd frontend && npm run test:e2e)uv run python -m scripts.export_openapiin backend/, thennpm run generate:apiin frontend/), never edited by handValidation: on the SBOM re-run the database came from cache in 13 s and each scan took 4 s, against 57 to 85 s before (run). actionlint finds nothing in either workflow.
Checklist
pre-commit run --all-filesand all checks pass