Skip to content

Abort & report on GitHub secondary rate-limit during push#916

Merged
SorraTheOrc merged 6 commits intomainfrom
wl-0MML5LN72052F7GL-push-progress-and-timestamp
Mar 11, 2026
Merged

Abort & report on GitHub secondary rate-limit during push#916
SorraTheOrc merged 6 commits intomainfrom
wl-0MML5LN72052F7GL-push-progress-and-timestamp

Conversation

@SorraTheOrc
Copy link
Member

Stop and report on GitHub secondary rate-limit (abuse) during 'wl gh push'.\n\nChanges in this branch: add SecondaryRateLimitError, backoff/retry for gh calls, and top-level abort/reporting with structured JSON. See work item WL-0MMLT5UJC02BRTDB for planned tests and follow-ups.

…timestamp

- Batch-aware progress: Push phase now shows 'Push: Batch x/y Item a/b'
  format using closure variables updated by the batch loop. Other phases
  (Hierarchy, Comments, etc.) retain the existing 'Label: current/total'
  format.

- Extract writeProgressMessage helper: centralizes TTY output with
  padding, dedup, and newline-on-completion logic.

- Per-batch error reporting: after each batch completes, any errors are
  immediately logged to the log file and printed to stderr, rather than
  being deferred to the final summary.

- Per-batch timestamp update: writeLastPushTimestamp is now called after
  each successful batch so that interrupted or re-run pushes skip
  already-synced batches. The pushStartTimestamp captured before
  processing ensures items modified during the push window are still
  re-processed on the next run. A safety-net final write covers the
  zero-item case. --no-update-timestamp continues to suppress all writes.

- Pre-filter module import is captured eagerly during the pre-filter
  path so writeLastPushTimestamp is available even when --all bypasses
  pre-filtering, and falls back to a standalone import when needed.
…rottle state-sync writes (WL-0MMLD7CV908H2HEK, WL-0MMLD7FII0N38U8R)
…paths (sync+async), add SharedArrayBuffer sleep for sync backoff; throttle state-sync writes
…during push; add SecondaryRateLimitError; wire runners -> throw; top-level abort and report
@SorraTheOrc SorraTheOrc merged commit 4c15756 into main Mar 11, 2026
1 check passed
@SorraTheOrc SorraTheOrc deleted the wl-0MML5LN72052F7GL-push-progress-and-timestamp branch March 11, 2026 22:18
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