Skip to content

ci(docs): wait longer for published SDK availability - #769

Open
cooper-gadd wants to merge 1 commit into
mainfrom
tembo/wait-for-npm-sdk-availability
Open

cooper-gadd wants to merge 1 commit into
mainfrom
tembo/wait-for-npm-sdk-availability

Conversation

@cooper-gadd

@cooper-gadd cooper-gadd commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Wait up to ten minutes for the exact dispatched SDK version instead of approximately two minutes.
  • Use an elapsed-time deadline and bound each npm request to ten seconds without nested fetch retries.
  • Add an eleven-minute step timeout within the existing fifteen-minute job timeout, leaving time for generation and validation.
  • Preserve exact-version checks, existing credentials, event-driven dispatch, and the single docs PR branch.

Why

For SDK 0.4.2, npm accepted publication at 12:58:17 UTC on September 16 but the registry version timestamp was 13:01:29. The docs run stopped at 13:01:19, ten seconds too early. Replaying after availability succeeded and opened #768.

Validation

  • actionlint and git diff --check pass.
  • Executed the workflow shell with mocked npm/time: immediate success, availability after three simulated minutes, stale-version rejection through the full ten-minute deadline, and invalid-input rejection.
  • No release, dependency, content, or permission changes. No new secrets or variables required.

Want tembo to make any changes? Add a comment with @tembo and i'll get back to work!

View on Tembo  Review in Tembo  View Agent Settings


Note

Low Risk
CI timing and npm polling behavior only; no application code, secrets, or permissions changes.

Overview
The update-sdk-examples workflow now waits up to ten minutes for the dispatched @tembo-io/sdk version to appear on npm, replacing the previous ~12-attempt (~two minute) loop.

The verify step uses an elapsed-time deadline (SECONDS + 600), caps each npm view call with --fetch-retries=0 and --fetch-timeout=10000, and sets an 11-minute step timeout so the rest of the 15-minute job can still generate and validate examples. Error and status messages were updated to match the longer window; version validation and downstream steps are unchanged.

Reviewed by Cursor Bugbot for commit 57f77a6. Bugbot is set up for automated code reviews on this repo. Configure here.

Co-authored-by: Cooper <126418690+cooper-gadd@users.noreply.github.com>
@tembo tembo Bot added the tembo Pull request created by Tembo label Sep 16, 2026
@mintlify

mintlify Bot commented Sep 16, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
tembo 🔴 Failed Sep 16, 2026, 1:16 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tembo Pull request created by Tembo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant