Commit activity
Last 12 weeks · 12 commits
Community health
1 of 6 standards met
Recent fixes
Bumps the version in to . Includes: #149 no longer hangs on "Loading previously uploaded files..." (or exits with "Top-level await promise never resolved") when the build fails, is cancelled or is superseded before the server reports which files to upload. It now exits with the revision's status, failure message and build URL ( / , exit 1), or with exit 6 and / / (after 10 minutes). Fixes denoland/deploy_feedback#949.
The diff-sync upload learns which files to send by watching the revision through until its labels carry . The promise behind "Loading previously uploaded files..." was only ever resolved from ; merely unsubscribed and nothing handled . When the console ended the stream before the builder reported (the build failed or was cancelled during preparing, the revision was superseded by a concurrent deploy, or the server never wrote the label at all) the CLI either hung on the spinner or died with and no indication of what went wrong (denoland/deploy_feedback#949). owns the watch and settles on every exit of the stream: the label resolves it; a failed or cancelled snapshot, the stream ending (/), a subscription error, a label that is not a JSON string array, or the timeout reject with a naming the cause. The subscription is always unsubscribed and the timer cleared, and callbacks that fire after settling are ignored. A failed or cancelled revision is reported as such, with the console's message when it has one, the revision's console URL as the hint, and / in the envelope (exit 1), matching . A stream that ends without the label, the timeout, and a malformed label exit 6 (NETWORK) with , and , each pointing at the build page and suggesting a retry. The wait is bounded by (10 minutes). The report arrives while the build is still preparing, so a wait that long means the build never started, and the deploy fails with a message instead of running until the CI job's own timeout. The happy path is unchanged: the label arrives, the watch unsubscribes, and the upload proceeds with the parsed hashes. drives a fake subscription through every path: the label arriving (including and one delivered before returns), the stream ending with and without a snapshot, a failed snapshot, a cancelled stream end, a subscription error, malformed labels, the timeout, and the message/exit-code mapping. Fixes denoland/deploy_feedback#949.
Repository: denoland/deploy-cli. Description: CLI for deploy Stars: 3, Forks: 6. Primary language: TypeScript. Languages: TypeScript (92.2%), Rust (5.7%), Astro (1.9%), JavaScript (0.1%), Shell (0%). Open PRs: 2, open issues: 4. Last activity: 1w ago. Community health: 25%. Top contributors: crowlKats, piscisaureus, lucacasonato, crowlbot, tcerqueira, kt3k, magurotuna, uriva, dsherret, devsnek and others.