Skip to content

sqlalchemy v2 - #150

Open
zmc wants to merge 11 commits into
mainfrom
update-deps
Open

zmc wants to merge 11 commits into
mainfrom
update-deps

Conversation

@zmc

@zmc zmc commented Jul 7, 2026

Copy link
Copy Markdown
Member

No description provided.

@zmc
zmc force-pushed the update-deps branch 4 times, most recently from b288374 to 4ed984f Compare July 7, 2026 00:18
zmc added 5 commits July 13, 2026 15:04
Also:
- update pecan
- update psycopg to v3
- drop statsd

Signed-off-by: Zack Cerza <zack@cerza.org>
Signed-off-by: Zack Cerza <zack@cerza.org>
Signed-off-by: Zack Cerza <zack@cerza.org>
This endpoint's logic was a little strange and was also implemented as requiring
a POST request. Simplify it and correct its behavior.
Also fix a test bug.

Signed-off-by: Zack Cerza <zack@cerza.org>
Before:
* Used global thread-scoped sessions
* Sessions could leak between requests causing incorrect updates
* Tests were difficult to get right

After:
* Request-scoped sessions that are isolated from each other
* Lifecycle managed in one place
* Guaranteed cleanup on error
* Tests are more terse and easily understood
* Pytest fixtures which make tests composable and more maintainable
* Tests do not persist any state to the database
* Eaasy to invoke integration tests

Signed-off-by: Zack Cerza <zack@cerza.org>
@zmc
zmc marked this pull request as ready for review July 13, 2026 21:26
zmc added 6 commits July 14, 2026 10:25
Signed-off-by: Zack Cerza <zack@cerza.org>
* Update python and actions versions
* We don't use travis or nose

Signed-off-by: Zack Cerza <zack@cerza.org>
Signed-off-by: Zack Cerza <zack@cerza.org>
This lets us simplify error handling in controllers, and to avoid ever returning
HTML inadvertently

Signed-off-by: Zack Cerza <zack@cerza.org>
Run the full test suite with a live paddles server backed by an ephemeral
PostgreSQL service container so race and HTTP integration tests execute in CI.

Signed-off-by: Zack Cerza <zack@cerza.org>
This fixes failures that I only saw in GitHub Actions

Signed-off-by: Zack Cerza <zack@cerza.org>
@zmc
zmc requested review from VallariAg and amathuria July 14, 2026 16:27
@amathuria

Copy link
Copy Markdown
Contributor

Working on reviewing this ASAP

@djgalloway

Copy link
Copy Markdown
Contributor

I didn't want to interfere with your branch so I made a new one, rebased on main, and fixed a few regressions. #153

Tested end to end on an exact copy of today's paddles database.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants