Skip to content

Conversation

@nttg8100
Copy link
Member

This pull request introduces significant changes to the backend development and testing workflow, primarily migrating the backend environment from CPython to PyPy for improved performance. It updates the Makefile, Dockerfile, and test scripts to use PyPy, adjusts database connection strings for compatibility, and unifies test output keys for consistency. Additionally, it updates the README and cleans up ignore files.

Backend environment migration and workflow improvements:

  • Migrated backend development and testing environment from CPython to PyPy by updating the Makefile to download and use a specific PyPy version for running the backend, migrations, Celery workers, and tests. Added an install-backend-deps target and updated related targets to use PyPy executables. [1] [2] [3] [4]
  • Updated backend/Dockerfile to use the pypy:3.11-slim image as the base, installed required system libraries, and set up the backend to run under a non-root user.

Database and configuration updates:

  • Changed all PostgreSQL connection strings in backend/app/db.py from the deprecated postgres:// to the recommended psycopg:// scheme for compatibility with modern drivers.
  • Minor debug print added in backend/app/main.py (likely temporary).

Testing and code consistency:

  • Standardized test output keys from "items" to "item" in both the backend controller and test assertions for analysis endpoints, ensuring consistency across the codebase. [1] [2] [3]
  • Fixed string interpolation in test and fixture files to use single quotes inside f-strings, preventing syntax errors. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]

Documentation and housekeeping:

  • Updated the README.md to include a platform overview image and changed the license from Creative Commons to GPLv3, with updated badges and links. [1] [2]
  • Updated .dockerignore and .gitignore files to exclude PyPy, tarballs, and other build artifacts. [1] [2]

CI/CD and workflow updates:

  • Modified the GitHub Actions workflow to remove the use of prefix-dev/setup-pixi for running backend tests, aligning with the new PyPy-based workflow. [1] [2]

nttg8100 and others added 10 commits December 12, 2025 22:52
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* feat: add perf testing for blacksheep with best http server

* chore: remove dev.py, use app directly

* feat: use socketify for http server
* chore: fix CI backend

* fix: remove pixi github action setup

* chore: use pypy to test backend

* fix: fstring in pypy3.11
@nttg8100 nttg8100 changed the title Dev Release v1.1.0 Dec 13, 2025
@nttg8100 nttg8100 merged commit d8aad79 into main Dec 13, 2025
12 checks passed
@nttg8100 nttg8100 changed the title Release v1.1.0 Pre-release v1.1.0 Dec 13, 2025
@nttg8100 nttg8100 self-assigned this Dec 13, 2025
@nttg8100 nttg8100 deleted the dev branch December 13, 2025 11:03
@nttg8100 nttg8100 restored the dev branch December 13, 2025 11:04
@nttg8100 nttg8100 deleted the dev branch December 13, 2025 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants