Repository navigation
Read releases, their history and stats, active runs, and wait for a run (0.3.19) - #31
Open
MainSequenceDev wants to merge 2 commits into
Open
MainSequenceDev wants to merge 2 commits into
MainSequenceDev wants to merge 2 commits into
Conversation
… a run Four read-only deployment actions for the Claude and Codex panes and model tools: deployment-releases (a page of releases plus their runs of the window in one request), deployment-release (serving and wanted revisions, runs and stats), deployment-active (only queued and running runs) and deployment-wait (one run every ten seconds, at most two minutes). releaseStats() computes success rate, durations, the slowest stage (including the wait before the first stage) and the most common failure, since the backend has no statistics endpoint. docs/deployments.md gives hosts the polling rules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds read-only release reads for the Claude and Codex Releases screens and their model tools (0.3.19).
New
createDeployments()actions:deployment-releasesreads one page of the environment's releases (APIs, agents, static sites), then all their runs of the window (default 30 days) in one more request. Per release it returns the last ten run states, the last run, the deploying run and stats.deployment-releasereturns one release's serving and wanted revisions (commit and configuration revision), its runs of the window, and stats.deployment-activereturns only the runs stillqueuedorrunning. Hosts use it as the cheap check while something deploys.deployment-waitre-reads one run every 10 s until it ends ortimeoutSeconds(at most 120) runs out. The request's signal cancels it.releaseStats()computes:The backend has no statistics endpoint. Two adjustments came from real data:
workflow_prerequisite_failedis only in their outcome). They fall back to the outcome.Also:
docs/deployments.mddocuments the actions and the polling rules hosts follow.errorCodeandreleaseUid.Verification:
npm test: 197 tests pass, including 7 new ones intests/deployment-releases.test.cjs.🤖 Generated with Claude Code