-
-
Notifications
You must be signed in to change notification settings - Fork 7
Comparing changes
Open a pull request
base repository: python/memory.python.org
base: main
head repository: python/memory.python.org
compare: backend-tests
- 13 commits
- 20 files changed
- 2 contributors
Commits on Mar 16, 2026
-
Add pytest config and test fixtures for the backend
In-memory SQLite database, httpx AsyncClient, and factory fixtures for all core models (commits, binaries, environments, runs, benchmark results, auth tokens, admin sessions). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 327aef1 - Browse repository at this point
Copy the full SHA 327aef1View commit details -
Add tests for health, commits, binaries, and environments endpoints
Covers listing, pagination, get-by-id, 404 responses, python version filters, and binary-environment-commit relationships. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 95c7277 - Browse repository at this point
Copy the full SHA 95c7277View commit details -
Add tests for benchmarks, diff, trends, and flamegraph endpoints
Covers benchmark name listing with filters, diff table with delta calculations, single and batch trend queries, and flamegraph retrieval. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 77a1361 - Browse repository at this point
Copy the full SHA 77a1361View commit details -
Add tests for upload and memray failure reporting endpoints
Covers authenticated uploads, missing commit SHA, invalid binary and environment, configure flag mismatch, and memray failure reporting. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3ae11f1 - Browse repository at this point
Copy the full SHA 3ae11f1View commit details -
Add tests for token authentication
Covers Bearer and Token header formats, invalid tokens, missing tokens, and deactivated token rejection. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cb94426 - Browse repository at this point
Copy the full SHA cb94426View commit details -
Add tests for public endpoints and logging utilities
Public: maintainers listing, memray status (healthy and with failures). Logging: string/dict/list sanitization, token masking, safe log context. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6aa20e6 - Browse repository at this point
Copy the full SHA 6aa20e6View commit details -
Expand upload tests and fix coverage tracking
Add pytest-cov to dev dependencies. Configure coverage to use greenlet concurrency, fixing async coverage tracking. New upload tests: duplicate upload rejection, multi-binary uploads, memray failure update/ignore lifecycle, and upload clearing failures. Upload.py coverage: 22% -> 76%. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5a02cf0 - Browse repository at this point
Copy the full SHA 5a02cf0View commit details -
Document how to run backend tests and describe the test architecture
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 888bcdc - Browse repository at this point
Copy the full SHA 888bcdcView commit details -
Add backend tests to CI, triggered only on backend/ changes
Compares changed files to detect backend modifications. On pushes to main, always runs if backend files changed. On PRs, compares against the base branch. Skips test setup entirely when only frontend or other files are modified. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7d1142e - Browse repository at this point
Copy the full SHA 7d1142eView commit details -
Add tests using production data fixtures
Real benchmark data from the production database covering a deltablue_base memory regression (~10.5% high watermark increase) between two consecutive nogil commits, while json_dumps_base and nbody_base remain unchanged. Tests verify diff regression detection, previous commit metadata, alternative metrics, trends, batch trends, filtered benchmark names, and binary/environment relationships. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for bf30fa5 - Browse repository at this point
Copy the full SHA bf30fa5View commit details -
Merge remote-tracking branch 'origin/main' into backend-tests
# Conflicts: # .github/workflows/ci.yml # README.md
Configuration menu - View commit details
-
Copy full SHA for 78d2cce - Browse repository at this point
Copy the full SHA 78d2cceView commit details -
Address review feedback and fix missing commit in upload endpoint
Review fixes: - Use StaticPool for in-memory SQLite so all sessions share one connection, avoiding potential "no such table" errors. - Fix test_valid_bearer_token to actually test a protected endpoint with and without auth headers. - Assert ordering in trends test instead of building a dict. - Make health test explicit about the expected unhealthy DB status. - Add memray status assertion to test_upload_clears_memray_failure. Bug fix found by the new assertion: the upload endpoint's delete of memray failures was missing an await db.commit(), so the deletion was never persisted. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 3490416 - Browse repository at this point
Copy the full SHA 3490416View commit details -
Use asyncpg constraint_name for duplicate upload detection
Check e.orig.constraint_name first (available on asyncpg's UniqueViolationError), falling back to string matching for backends that don't expose it (e.g. SQLite in tests). Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2f212c7 - Browse repository at this point
Copy the full SHA 2f212c7View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...backend-tests