Repository navigation
[deploy-helpers] Add result-only output for Preview deployments - #16090
Open
ZedingZhang wants to merge 9 commits into
Open
ZedingZhang wants to merge 9 commits into
ZedingZhang wants to merge 9 commits into
Conversation
workers-devprod
requested review from
a team and
edmundhung
and removed request for
a team
October 6, 2026 14:42
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
🦋 Changeset detectedLatest commit: 8bf0dc6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
edmundhung
reviewed
Oct 9, 2026
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
Contributor
|
This pull request's reviews are posted as pull request reviews: see the review of |
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
This was referenced Nov 6, 2026
Member
|
clanky review |
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
petebacondarwin
force-pushed
the
fix/preview-result-only
branch
from
November 20, 2026 07:11
9523932 to
1800348
Compare
Contributor
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
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.
Fixes #15932.
Preview Build Output consumers currently have to replace shared logger methods to avoid duplicate summaries or non-JSON progress output. Add
log: falseto the Preview helper arguments so callers can return the completePreviewResultand format it themselves, including whenjson: trueis supplied.Suppress parent-Worker, asset-upload, container, and deployment-summary progress for this mode. Keep warnings on the configured logger and propagate deployment failures. Parent Worker creation still asks for confirmation, while the existing JSON mode stays non-interactive. Asset progress suppression is local to each upload. Each container application receives its own quiet option for CLI progress and spinners, and Wrangler scopes its logger to the deployment. Existing human-readable and JSON output remain the default.
Return the resolved pull-request URL and number in
PreviewResult.pullRequest, preferring deployment annotations and filling missing fields from CI metadata. The summary uses the same resolved value. Treat the post-deployment base-config lookup as diagnostic: if it fails, warn and return the successful deployment result.The implementation is compatible with the current
PreviewOptionsAPI. Consumer-provided deploy and preview commands remain in summary advice and custom-domain warnings, including whenlog: falsesuppresses stdout.Validation with the repository's Node.js 22.22.1 and pnpm 10.33.0 on macOS arm64, plus native CI at
839a35587:pnpm check --concurrency=2 --output-logs=errors-only: all 204 tasks passed, including source/test types, type-aware lint, formatting, workflows, and repository consistency checks.Testsaggregate check also passed.CI configuration keeps browser-dependent Linux playground and fixture jobs on Ubuntu 24.04, which the pinned Playwright version supports. Prerelease skips the unused Chromium download.
C3 keeps its matrix-selected pnpm version for nested builds and generated projects. Forward the three pnpm overrides through Turbo's strict environment so parallel prerequisite builds do not download and provision the repository-pinned pnpm into the same temporary store.
Keep Windows regression tests within their budgets: seed 1001 matching KV keys plus one nonmatching key, preserving both unfiltered and prefixed pagination coverage with fewer serial writes. Give the entrypoints RPC fixture bounded five-second HTTP attempts and a fifteen-second polling window on Windows; its response assertions remain in place.
Note
This contribution was implemented and tested with OpenAI Codex (GPT-6) at the author's request.