Repository navigation
Require py >=3.11, tiled >=0.2.21, and use httpx2 - #78
Merged
Merged
Conversation
tiled 0.2.21 migrated its client from httpx to httpx2, changing the exception family raised through it: ClientError now subclasses httpx2.HTTPStatusError, so our `except httpx.HTTPStatusError` clauses silently stopped matching. Concretely, the remote-validation 404 fallbacks in BlueskyRun.validate and TiledWriter raised instead of falling back to local validation. Pin tiled >=0.2.21 (runtime and test group) and switch both sites to httpx2, declared as a direct dependency since we import it. A small test guards the contract (ClientError is catchable via httpx2.HTTPStatusError) so the next migration fails loudly instead of silently.
genematx
force-pushed
the
httpx2-compat
branch
from
November 2, 2026 22:51
8644210 to
3185f5c
Compare
tiled 0.2.21 (the httpx2 generation) dropped Python 3.10, which made the dependency resolution unsatisfiable for the 3.10 split of the supported range and failed CI on every job, including 3.13 and the docs build. - Bump `requires-python` to >=3.11 and drop the 3.10 classifier - Update mypy `python_version` and pylint `py-version` to 3.11 - Test on 3.11 (new floor) and 3.13 in CI - Update the Python version requirement in the installation tutorials - Use `itertools.pairwise` in StreamDatum batching, resolving an old TODO
SQLAlchemy 2.1 deprecates the `noload` loader strategy, which tiled's catalog ORM uses for the `Webhook.node` relationship. With warnings raised as errors, the deprecation fails `configure_mappers()` and with it every test that starts the in-process server. This is a third-party issue, to be fixed in tiled.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #78 +/- ##
==========================================
+ Coverage 78.78% 78.86% +0.08%
==========================================
Files 16 16
Lines 2432 2432
==========================================
+ Hits 1916 1918 +2
+ Misses 516 514 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
tiled 0.2.21 migrated its client from httpx to httpx2, changing the exception family raised through it: ClientError now subclasses httpx2.HTTPStatusError, so our
except httpx.HTTPStatusErrorclauses silently stopped matching. Concretely, the remote-validation 404 fallbacks in BlueskyRun.validate and TiledWriter raised instead of falling back to local validation.Pin tiled >=0.2.21 (runtime and test group) and switch both sites to httpx2, declared as a direct dependency since we import it. A small test guards the contract (ClientError is catchable via httpx2.HTTPStatusError) so the next migration fails loudly instead of silently.