Dev -> main - #273
Merged
Merged
Dev -> main#273
Conversation
…) (#266) cellxgene-census now returns an AnnData whose .layers exposes a None key, which repr_dict surfaced as 'layers': [None] and broke the structural comparison in test_cellxgene_adata. repr_dict now ignores None keys, so the comparison stays on meaningful (named) elements and is robust to this upstream drift. Adds a network-free TestReprDict test that guards the behavior on every Python version (the live Census tests skip where cellxgene-census has no wheel). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…#261) * feat(utils): retry transient errors in rest_query/post_query Ensembl REST and other upstream services occasionally return transient 5xx (500/502/503/504) or 429 responses, or drop the connection under load. Every Ensembl-backed module (seq, ref, search, info, blat, and enrichr with ensembl=True) routes through rest_query/post_query, so a single transient blip currently fails the whole call. Add a small _query_with_retry helper and route both functions through it: - Retries on 429/5xx and on connection/timeout errors, with linear backoff (2s, 4s, 6s). - Honors a Retry-After header when the server sends one (capped at 30s). - Does NOT retry 4xx client errors (e.g. 404) — those are returned to the caller unchanged, preserving existing error handling. - After exhausting retries, returns the last response (or re-raises the last connection error) so callers behave exactly as before. Add offline unit tests (TestQueryRetry) covering success-after-retry, connection-error retry, no-retry on 404, retry exhaustion, and Retry-After handling. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * test: report the 25 slowest tests via pytest --durations Add `--durations=25` to pytest addopts so every CI run prints the slowest tests at the end of the log. This makes it easy to spot which (mostly network-bound) tests dominate CI wall-clock time, complementing the request-retry changes in this PR. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
No description provided.