starlette 1.6 deprecates httpx in TestClient, which every test uses
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start by checking the dependency versions in requirements.txt and how api/server.py uses httpx for Solr, then trace the tests' use of fastapi.testclient.TestClient. Check which Starlette release removes the httpx path and whether httpx2 supports the Solr client. Decide whether to migrate both uses or pin httpx; done means the suite runs without the deprecation warning or remains on a deliberate pin.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Pinning fastapi~=0.141.1 in #294 brought in starlette 1.6.0, which emits on every test run:
StarletteDeprecationWarning: Using `httpx` with `starlette.testclient` is deprecated;
install `httpx2` instead.
The whole test suite goes through fastapi.testclient.TestClient, so this is one warning today and
a broken suite whenever starlette drops the httpx path. requirements.txt lists httpx
unpinned — the API itself uses it to talk to Solr, so a move to httpx2 is not only a test-side
change.
Worth deciding deliberately rather than discovering at the next bump:
- Which starlette release actually removes the
httpxsupport, and doeshttpx2reach the same
Solr client code we use inapi/server.py? - Whether to migrate, or pin
httpxand take the warning until then.
No behaviour is wrong today; the suite passes.
- Lingua principale
- Python
- Stelle
- 5
- Fork
- 4
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di NCATSTranslator/NameResolution
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 43/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
Tutte le issue di NCATSTranslator/NameResolution
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 86/100
benchflow-ai/skillsbench#1090 ·
-
Missing unit tests for human-readable date/time formatters in utils/datetime.pyForse già presa @prabhleen2317 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
apache/iceberg-python#4387 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Hermes MCP adapter drops cwd, extra passthrough keys and the SSE transport when writing config.yamlForse già presa @Parth-Vasave l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
microsoft/apm#3749 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
backend bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
NVIDIA/numba-cuda-mlir#467 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni