Repository navigation
Conversation
geo2r now returns a CAPTCHA page to scripted requests, which broke CI on master. The test stubs the metadata call, and _create_metadata raises a clear error when the response is not JSON.
This was referenced Sep 23, 2026
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.
What
test_series_has_no_matrix_data_errorfails on every PR right now, including #216. NCBI's geo2r backend (/geo/geo2r/backend/?type=samples...) now returns a Google reCAPTCHA page with status 200 to scripted requests, soresponse.json()raisesJSONDecodeErrorbefore the test gets to the matrix check it is actually about.How
AutoScanGeoMatrixParser._create_metadata, so it still downloads the real GSE121633 matrix and assertsNoMatrixDataError, without depending on geo2r._create_metadatacallsraise_for_status()and turns a non-JSON body into aValueErrorthat names the URL and says NCBI may be blocking automated requests. Before, users got a bareExpecting value: line 1 column 1.test_metadata_query_non_json_response_errorcovers that error.Heads up
This fixes CI, not the loader. Real
AutoScanGeoMatrixParserloads of the ~2,165 entries ingeo_autoscan_library.yamlwill fail while geo2r keeps serving the CAPTCHA; they now fail with a readable message. A proper fix would read metadata from the series matrix header instead of geo2r, and belongs in its own PR.Tests
make check-formatclean.make test: 202 passed, 5 skipped, 0 failed.