Repository navigation
build: publish mobile web through the standard release pipeline - #345370
Osvaldo Ortega (osortega) merged 54 commits into
Conversation
Keep the existing workbench presentation by default while allowing isolated entries to adapt session headers, pickers, chat edits and layout. Preserve provider-owned repository authentication and scoped model configuration. Co-authored-by: Copilot <[email protected]>
Compose the mobile entry from shared services without adding it to production entry points or resource inventories. Adapt phone sheets, host selection, chat edits and the shared composer to current chat-scoped configuration APIs, preserving enterprise checks and provider-advertised agent identities. Co-authored-by: Copilot <[email protected]>
Package the mobile entry with its own localization, selected browser extensions and integrity inventory. Keep normal web/native outputs unchanged. This target produces files only; publication remains a separate change using the standard build system. Co-authored-by: Copilot <[email protected]>
Allow the current-main shared registrations after inspecting their activation boundaries. Document isolated packaging, source identity and experimental size guardrails without changing the existing size limits. Co-authored-by: Copilot <[email protected]>
Add an opt-in mobile archive to the standard Web job and register it as web-mobile through the existing publisher. Reuse commit and quality release identity while keeping the mobile CDN directory and preload inventory separate from the ordinary editor. Mobile CDN uploads require normal publication to be enabled; the feature is off by default. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Keep normal CDN uploads independent of mobile runtime imports, include publication guards in standard build-test discovery, and wrap the mobile archive in its own top-level directory. Co-authored-by: Copilot <[email protected]>
Keep runtime upload dependencies isolated while tests compare the publisher with the builder's directory and manifest names. Document the explicitly selected build failure policy and the standard commit-based publication path. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Restore required shared composer, policy continuation, artifact, and MCP OAuth registrations. Reuse provider-aware custom agent normalization across both pickers, suppress stale background notifications after permission requests, and handle rejected pull-to-refresh operations. Co-authored-by: Copilot <[email protected]>
…a/agents/mobile-stack/03-build
The corrected package measures 5,950,374 initial and 14,320,714 runtime gzip bytes. Keep size enforcement with a small reviewed allowance over those measurements; leave the extension limit and dependency isolation intact. Include the required shared composer registration. Co-authored-by: Copilot <[email protected]>
…ents/mobile-stack/04-publication
Use required entry-selected repository, list and edit presentations. Keep input sizing in component options and clipboard behavior in entry registrations, preserving ordinary UI and async lifetimes. Co-authored-by: Copilot <[email protected]>
Use focused entry-owned presentations, component input options, and dedicated clipboard registration. Preserve automation prompt metrics and keep normal and mobile implementations isolated. Co-authored-by: Copilot <[email protected]>
Keep the tested mobile source unchanged and add a regression check for clipboard registration after restoration. Co-authored-by: Copilot <[email protected]>
Reject ordinary entry-owned presentation implementations in the mobile package, and cover the added boundaries with the existing package tests. Co-authored-by: Copilot <[email protected]>
Keep the normal optional web-mobile publication path and include the validated entry-owned presentation composition. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Bring in current main, including the sticky request bubble test fix from #345320. Preserve both presentation and pinned canvas services. Co-authored-by: Copilot <[email protected]>
Retain per-page stylesheet discovery using the dependency-free upstream collector. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Use the shared lockfile fixture and hoisted dependency metadata after merging the upstream pnpm migration. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Match the upstream pipeline package-manager migration and keep the publication contract checks aligned. Co-authored-by: Copilot <[email protected]>
Normalize new-group and rename results at the shared list boundary, with coverage for whitespace and disposed lists. Register the default chat edit presentation in fixture services and support its editor-open requests. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Keep the landed mobile workbench unchanged while updating the isolated package target's dependency boundaries and pnpm dependency-source handling. Co-authored-by: Copilot <[email protected]>
Published dependency maps can reference sources above their installed package root. Match those pnpm store entries to already-enumerated dependencies instead of treating the virtual store as a package; fail explicitly when no dependency supplies the license. Cover the published-map shape in both dependency layouts and reject unidentified store entries. Co-authored-by: Copilot <[email protected]>
Keep background rendering, settings, actions, tint and appearance tools in the regular entry through the existing chat-view factory. Exclude mobile background media and the built-in generation skill without hiding user-authored skills or changing the ordinary workbench. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Allow the reviewed current-main package after excluding chat backgrounds, while retaining the other budgets and dependency checks. Mark these limits as temporary and explicitly note that they must be lowered to improve the mobile experience. Co-authored-by: Copilot <[email protected]>
Use mobile consistently for the target, build and test commands, package output, manifest, policy and helpers. Keep release quality and rollout separate from the target name, without changing the existing size limits or package boundaries. Co-authored-by: Copilot <[email protected]>
Copy the built-in skill definitions consumed by MobilePromptsService while excluding background generation. Cover retained commands, the excluded skill and unrelated files with a resource-inventory regression test. Co-authored-by: Copilot <[email protected]>
Reuse the shared prompts service and package the same skill definitions as desktop. Keep background tools, controls, rendering and media excluded; the existing skill already explains when required tools are unavailable. Co-authored-by: Copilot <[email protected]>
Bring #345370 onto the current #345369 mobile target. Align archive and CDN paths with mobile.json, preserve the upstream Web archive retry guard, and apply that same guard to the optional mobile archive. Co-authored-by: Copilot <[email protected]>
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: Ladislau Szomoru (@lszomoru)Matched files:
|
There was a problem hiding this comment.
🔵 Needs a closer look
The opted-in release path lacks Azure template-expansion and official product-build validation, requiring maintainer verification of SBOM generation, archive registration, and gated CDN publication before enabling release automation.
No open issues 🎉
What changed in this PR
Adds opt-in mobile web publication to VS Code’s existing product release pipeline, building on the isolated mobile package from #345369. Ordinary builds remain unchanged by default.
Changes:
- Adds mobile archive creation, retry protection,
web-mobileregistration, and publication-gated CDN uploads. - Includes isolated mobile packaging with dependency boundaries, size limits, asset inventories, and shared built-in skills.
- Separates chat backgrounds from mobile composition and adds packaging, publication, and presentation tests.
No actionable findings remain. Azure template expansion, official product builds, SBOM generation, and live publication still require validation, as noted in the PR description.
| File | Description |
|---|---|
src/vs/workbench/contrib/sessions/browser/parts/sessionsGridContent.ts |
Delegates optional grid backgrounds to the view factory. |
src/vs/workbench/contrib/sessions/browser/parts/chatView.ts |
Defines optional background presentation contracts. |
src/vs/workbench/contrib/sessions/browser/chatViewFactory.ts |
Adds optional background creation to the factory interface. |
src/vs/workbench/contrib/sessions/browser/chat/defaultChatViewFactory.ts |
Supplies regular-workbench backgrounds and replicas. |
src/vs/workbench/contrib/sessions/browser/chat/chatView.ts |
Uses injected background options instead of concrete services. |
src/vs/sessions/test/browser/sessionViewTestUtils.ts |
Adapts test factories to background creation. |
src/vs/sessions/MOBILE.md |
Documents composition boundaries and isolated packaging. |
src/vs/sessions/contrib/mobile/test/browser/mobilePresentation.test.ts |
Tests entry-specific options and background-free mobile grids. |
src/vs/sessions/contrib/mobile/browser/mobile.contribution.ts |
Registers mobile-specific accessibility help. |
src/vs/sessions/contrib/chat/test/browser/sessionsChatAccessibilityHelp.test.ts |
Tests omission of unavailable background help. |
src/vs/sessions/contrib/chat/test/browser/chatView.test.ts |
Adapts background tests to the factory adapter. |
src/vs/sessions/contrib/chat/test/browser/appearanceTools.test.ts |
Loads the extracted background contribution. |
src/vs/sessions/contrib/chat/browser/sessionsChatAccessibilityHelp.ts |
Makes background guidance composition-dependent. |
src/vs/sessions/contrib/chat/browser/chatBackground.contribution.ts |
Isolates background actions, settings, and registrations. |
src/vs/sessions/contrib/chat/browser/chat.desktop.contribution.ts |
Registers regular backgrounds, factory, and accessibility help. |
src/vs/sessions/contrib/chat/browser/chat.contribution.ts |
Removes background-specific registrations from shared composition. |
package.json |
Adds mobile build and test commands. |
build/next/test/mobile.test.ts |
Tests packaging safety, dependencies, resources, and budgets. |
build/next/resources.ts |
Defines a separate mobile resource selection. |
build/next/mobilePolicy.json |
Defines mobile dependencies, extensions, and size limits. |
build/next/mobile.ts |
Implements package preparation, validation, and inventory generation. |
build/next/MOBILE.md |
Documents package boundaries and standard publication. |
build/next/index.ts |
Integrates mobile bundling and isolated localization. |
build/lib/test/sessionsPresentationDependencies.test.ts |
Tests background isolation and shared skill registration. |
build/lib/test/mobileWebPublication.test.ts |
Tests publication identity, pipeline wiring, and retry guards. |
build/lib/esbuild.ts |
Adds the mobile target without native bootstraps. |
build/azure-pipelines/web/product-build-web.yml |
Adds optional mobile build, archive, and upload steps. |
build/azure-pipelines/web/cdnConfiguration.ts |
Separates CDN paths and validates mobile build identity. |
build/azure-pipelines/upload-cdn.ts |
Reuses the uploader for mobile assets. |
build/azure-pipelines/product-build.yml |
Adds and validates the opt-in mobile parameter. |
build/azure-pipelines/product-build-template.yml |
Propagates the mobile option with prerequisite checks. |
build/azure-pipelines/common/publish.ts |
Maps mobile archives to the web-mobile platform. |
Review effort: Balanced
Resolve the documentation conflict after #345369 landed, preserving the mobile build instructions and optional publication section. The remaining PR diff contains only the reviewed publication changes. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Scope — use the existing build/release process
This PR targets
mainafter prerequisite #345369 merged. Mergec3efd8d15e7c51059808c4bfc1be7b8da55ab574brings in mainca4b8fdc197c067724fec712c9100b22b9cd04c9without rebasing or rewriting history.The publication-only diff remains eight files (+251/-3). The documentation conflict
was resolved by retaining main's build instructions and this PR's publication
section. A follow-up only normalizes quoting in two publication-test assertions
to satisfy ESLint; production publication logic is unchanged.
mobiletarget,test-mobileandbundle-mobilescripts,out-mobile/directory, andmobile.jsoninventory (sessions-mobile, schema 2).VSCODE_BUILD_WEB_MOBILE=falseby default; enabling it requires a productbuild with the ordinary Web stage enabled.
upload fail. Do not ignore errors; ordinary default builds remain unchanged.
vscode_web_linux_mobile_archive-unsignedasweb-mobilethrough theexisting build publisher, under the same source commit and quality.
for mobile, so retrying the job does not republish an immutable pipeline artifact.
upload-cdn.ts, placing mobile files and their inventory underagents/mobile/<quality>/<commit>/, outside the normal editor preload directory.opted-in build job. Normal uploads do not load mobile build implementation code.
No separate mobile build registry, checksum release ID, manually pinned release
setting, or standalone publisher is introduced. Existing
web-standaloneandserver-web artifact names and default publishing behavior remain unchanged.
The existing update service's platform lookup can select the registered
web-mobileasset. Build-catalogue presentation support is an additive prerequisite;it must not make mobile mandatory for ordinary builds.
Validation
Current head:
c98cd5c7c6f85c6da8bc103f2579be2564f82c42.The package measurements, typecheck and 71-test run below were validated at merge
c3efd8d15e7c51059808c4bfc1be7b8da55ab574. The only subsequent change is thetwo-line test-quoting fix; no production source changed afterward.
The follow-up fixes the two ESLint warnings reported by CI:
npm exec --yes [email protected] -- pnpm run eslint --changed-since ca4b8fdc197c067724fec712c9100b22b9cd04c9:passed, checking all four changed TypeScript files with no warnings.
TMPDIR=/private/tmp node --test build/lib/test/mobileWebPublication.test.ts:7 passed again after the quoting fix.
Merge validation:
71 focused package, publication and composition tests passed, including all
seven publication contracts:
npm exec --yes [email protected] -- pnpm -C build run typecheck: passed.Normal signed pre-commit hygiene: passed, checking 43 files.
The resolved merge's
git diff --cached --checkand publication-onlygit diff --cached --check ca4b8fdc197c067724fec712c9100b22b9cd04c9:both passed.
Built the exact merge commit locally with
BUILD_SOURCEVERSION=c3efd8d15e7c51059808c4bfc1be7b8da55ab574,VSCODE_QUALITY=dev,VSCODE_PUBLISH=false, andVSCODE_RELEASE=false:pnpm run bundle-mobile: passed, with all dependency and size checks enabled.temporary directory: passed.
The archive has a
vscode-web-mobile/root and exactly 502 files:mobile.jsonplus all 501 inventoried assets. It excludes local ownership markers. Verified
every extracted asset's raw size, gzip size and SHA-256; all 17 extensions and
their resources; and all 14 desktop skill definitions, byte-identical to source.
The CDN uploader's actual glob selection matches that same complete file set.
All limits and the TODO to lower them further are unchanged.
The local package uses genuine
devquality. Verified that the publicationconfiguration rejects
dev, and that identity validation rejects presenting thispackage as
insider. No product metadata or guard was weakened. The existingAzure Web job runs the real distro quality mixin before the optional mobile step.
No Azure product pipeline was queued and no artifact was published. Local contract tests
and archive verification are not Azure template expansion, official product-build,
SBOM, or live publishing evidence. Before enabling the new option in release
automation, validate a product build and review its archive/CDN registration together.