Skip to content

fix(pull): continue when optional size query is unavailable - #195

Merged
djgormley merged 1 commit into
CHIMEFRB:mainfrom
WVURAIL:djg/fix-pull-size-fallback
Sep 29, 2026
Merged

djgormley merged 1 commit into
CHIMEFRB:mainfrom
WVURAIL:djg/fix-pull-size-fallback

Conversation

@djgormley

Copy link
Copy Markdown
Contributor

When Luskan passes its health check but the subsequent size query fails, datatrail pull currently aborts before downloading. Treat service, connection, and timeout failures in that optional query as an unknown size so the normal confirmation prompt or --force can proceed. Authentication, certificate, and invalid-request errors retain their existing handling.

Adds 25 regression cases covering query failures, confirmation and cancellation, forced downloads, and known-size behavior. The full non-CADC suite passes on Python 3.10 and 3.14 (288 tests on each), and all pre-commit hooks pass. The 9 credential-dependent CADC tests were excluded.

Fixes #98.

@djgormley
djgormley merged commit b36bbbf into CHIMEFRB:main Sep 29, 2026
9 checks passed
@djgormley
djgormley deleted the djg/fix-pull-size-fallback branch September 29, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Pull - Failing to calculate size at CANFAR shouldn't stop users pulling data.

1 participant