Skip to content

Upload: renew credentials during recorded-file checks - #1691

Merged
neuromechanist merged 1 commit into
feature/issue-1671-epic-bru-upload-fixesfrom
feature/issue-1644-recorded-check-refresh
Oct 9, 2026
Merged

neuromechanist merged 1 commit into
feature/issue-1671-epic-bru-upload-fixesfrom
feature/issue-1644-recorded-check-refresh

Conversation

@neuromechanist

Copy link
Copy Markdown
Contributor

What changes

The upload already renews its STS lease while copying pending files, but the mandatory post-copy verification of previously recorded objects still used one lease. This change carries the same renewable session through content-bearing copy checks and no-local-content fsck checks. It proactively renews before bounded check chunks, retries only a failed chunk after explicit expiry or a failure that returns after the known lease expires, isolates recorded paths with unknown sizes, and counts unique sends across retry attempts. The location log remains the durable authority for progress and final confirmation.

Retry progress resets the chunk's fruitless-expiry counter only when git-annex reports a newly transferred path; the shared overall renewal cap remains in force. Uncertain git-annex output keeps the resend count unrecognized.

Validation

  • bun run typecheck — passed.
  • bun run lint — passed.
  • Focused recorded-check, copy-step, STS-refresh, and real git-annex JSON suites — 82 passed, 1 skipped, 0 failed.
  • No new expiry regression test was added: the available offline test would use synthetic lease state and a loopback S3 stand-in, excluded by the repository's strict NO MOCKS policy. test_requirements.md records the missing coverage.

The owner-selected live-S3 expiry and sandboxCommand acceptance gap remains documented and unrun. The dev API integration test was skipped locally because test/.env.test and dev API credentials are absent.

Refs #1644 and #1671.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1691

Version: 0.10.16-PR1691.3c6477a
Commit: 3c6477a


🤖 Updated on each push.

@neuromechanist
neuromechanist merged commit a35cd18 into feature/issue-1671-epic-bru-upload-fixes Oct 9, 2026
14 checks passed
@neuromechanist
neuromechanist deleted the feature/issue-1644-recorded-check-refresh branch October 9, 2026 12:45

This branch was previously deployed

1 inactive deployment
npm — 3c6477a4 Deployed Oct 9, 2026 by neuromechanist via publish #3300
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