Skip to content

Conversation

@nttg8100
Copy link
Member

This pull request introduces significant changes to the backend development and testing workflow by migrating from CPython to PyPy, updating test and migration commands, and making various improvements to configuration and documentation. The most important changes are grouped below by theme.

Backend Environment Migration and Dependency Management:

  • Migrated backend from CPython to PyPy by updating the backend/Dockerfile to use the pypy:3.11-slim image and updating installation commands accordingly.
  • Added logic in the Makefile to download, extract, and use PyPy for backend commands, including new targets for installing backend dependencies and running migrations/tests with PyPy instead of Pixi/CPython. [1] [2] [3] [4]
  • Updated .dockerignore and .gitignore to exclude PyPy binaries and related files. [1] [2]

Testing and Workflow Updates:

  • Modified .github/workflows/test_backend.yaml to remove the use of the Pixi setup action for running tests, aligning with the new PyPy-based workflow. [1] [2]
  • Changed all backend test and database migration commands in the Makefile to use the PyPy interpreter, and added a step to install test dependencies using PyPy. [1] [2]

Database and Configuration Fixes:

  • Updated database URLs in backend/app/db.py to use the psycopg protocol instead of postgres for all environments.
  • Fixed string interpolation bugs in test files and fixtures, switching from double quotes to single quotes for dictionary key access. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]
  • Changed the response key from items to item in the analysis service and corresponding tests for consistency. [1] [2] [3]

Documentation and Licensing:

  • Added a graphical abstract image to the top of the README.md and updated the licensing section to reference GPL v3 instead of Creative Commons. [1] [2]

Miscellaneous:

  • Added a debug print statement in backend/app/main.py (likely temporary).

These changes collectively modernize the backend environment, improve test reliability, and clarify project documentation.# Pull Request

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 self-assigned this Dec 13, 2025
@nttg8100 nttg8100 merged commit b105749 into main Dec 13, 2025
9 checks passed
@nttg8100 nttg8100 changed the title Release v1.1.0 Pre-release v1.1.0 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