Repository navigation
Remove two server-compatibility kludges which are no longer needed - #1969
yarikoptic-gitmate wants to merge 1 commit into
Conversation
- get_instance(): drop the check meant to tell that the 'dandi-staging' instance identifier was removed (in 0.74.0, in favor of 'dandi-sandbox'). It never ran for an identifier given as a string, since looking it up in known_instances raised KeyError first, and the rename is more than a year old. - Downloads: stop retrying on HTTP 400. It was added in 2020 for Girder (gh-87), whose support has since been removed; each retry requests the same archive download URL again, which would not turn a 400 into a success. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014sJtxzEPbSxycxetp4DquU
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1969 +/- ##
==========================================
+ Coverage 90.82% 90.90% +0.08%
==========================================
Files 92 92
Lines 14190 14196 +6
==========================================
+ Hits 12888 12905 +17
+ Misses 1302 1291 -11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
I couldn't read which test failed. The log tools available to me return only the last 5000 lines of the job, which are the Docker Compose dump from the next step. I don't think this PR caused it:
No fix exists to port, since the failing test isn't known. I'm re-running the failed job once. If it fails again, I'll treat it as real. Generated by Claude Code |
This removes two candidates from the "removable now?" table in #1963.
Changes
get_instance()indandi/utils.py: drop the check meant to say that thedandi-staginginstance identifier was removed in favor ofdandi-sandbox(made an error in 0.74.0, Add support for all known instances in short URL format, removed dandi-staging and renamed EMBER* ones into EMBER-DANDI* #1750).known_instances[dandi_id]raisesKeyError: 'dandi-staging'first. ThatKeyErroris what users already get, so nothing changes for them.DandiInstanceobject nameddandi-staging.staging=>sandbox#1668) happened in August 2025._check_attempts_and_sleep()indandi/download.py: stop retrying downloads on HTTP 400.RETRY_STATUSES(429, 500, 502, 503, 504) and on errors without a response.The registry PR, #1970, also drops the
allowed_schema_versionsTODO about dandi/dandi-archive#2624, since it rewrites that block; it is left out here to avoid a conflict.Testing
test_download.py -k check_attempts,test_utils.pyandcli/tests/test_instances.pypass locally. The exception istest_server_info, which needsdandiarchive.org, and the sandbox this was prepared in cannot reach it.🤖 Generated with Claude Code
https://claude.ai/code/session_014sJtxzEPbSxycxetp4DquU