Skip to content

Release v0.3.7 - #67

Merged
neuromechanist merged 10 commits into
mainfrom
dev
Jan 23, 2026
Merged

neuromechanist merged 10 commits into
mainfrom
dev

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

Summary

  • Fix S3 rate limit (503 SlowDown) handling with exponential backoff retry (4s, 8s, 16s, 30s cap)
  • Reduce default parallel upload jobs from 8 to 4 to avoid triggering rate limits
  • Simplify SSH auth: use standard [email protected] instead of custom nemar-{user}-github hostname
  • Add user feedback for both rate-limit and IAM retries
  • Fix e2e-upload test to use git-annex instead of datalad
  • Skip Deno-not-installed test when Deno is available

Changes

  • src/lib/git-annex.ts: S3 retry logic, SSH simplification (-152 lines of custom SSH code)
  • src/commands/dataset.ts: Default jobs reduction, removed unused import
  • test/e2e-upload.test.ts: Test fixes for git-annex migration
  • package.json: Version bump to 0.3.7

Closes

Test plan

  • All 121 unit tests pass
  • Lint passes (biome)
  • e2e-sandbox CI passes
  • SSH test verified locally (ssh -T [email protected])
  • Large dataset upload test (pending user validation)

Add retry with backoff (4s, 10s, 20s, 30s) for S3 503 SlowDown
errors and reduce default parallel jobs from 8 to 4. Previously
only 403 errors were retried, causing uploads to fail on larger
datasets when S3 throttled requests.

Closes #64
Remove custom SSH hostname (nemar-{user}-github) which was designed
for multi-account support that is no longer pursued. Use standard
[email protected] SSH with HTTPS fallback via gh CLI token.

Closes #65
- Restore SSH diagnostic logging in testGitHubSsh for debuggability
- Add user feedback for IAM retry (matching rate-limit pattern)
- Replace fixed delay array with exponential backoff formula
- Simplify configureGitHubRemote by removing redundant regex nesting
- Update JSDoc to mention both 403 and 503 retry scenarios
- Fix biome formatting
Fix S3 rate limit retry and simplify SSH auth
- Log when S3 upload retries are exhausted (not just during retries)
- Include file path in upload error context for batch debugging
- Warn users when HTTPS fallback token is used (may expire)
- Validate GH_TOKEN format (reject empty/whitespace)
- Remove unused timeout parameter from runCommand
- Align stderr truncation (500 chars) between log and return
- Fix empty catch in Deno test to re-throw non-ENOENT errors
Replace no-op timeout option with SSH ConnectTimeout flag for
actual connection timeout enforcement.
# Conflicts:
#	test/e2e-upload.test.ts

This branch was previously deployed

1 inactive deployment
npm — 0842a051 Deployed Jan 23, 2026 by neuromechanist
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.

1 participant