Skip to content

build: publish mobile web through the standard release pipeline - #345370

Merged
Osvaldo Ortega (osortega) merged 54 commits into
mainfrom
osortega/agents/mobile-stack/04-publication
Nov 11, 2026
Merged

Osvaldo Ortega (osortega) merged 54 commits into
mainfrom
osortega/agents/mobile-stack/04-publication

Conversation

@osortega

@osortega Osvaldo Ortega (osortega) commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

Scope — use the existing build/release process

This PR targets main after prerequisite #345369 merged. Merge
c3efd8d15e7c51059808c4bfc1be7b8da55ab574 brings in main
ca4b8fdc197c067724fec712c9100b22b9cd04c9 without 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.

  • Add an optional mobile archive to the existing Web build job.
  • Use the current mobile target, test-mobile and bundle-mobile scripts,
    out-mobile/ directory, and mobile.json inventory (sessions-mobile, schema 2).
  • Keep VSCODE_BUILD_WEB_MOBILE=false by default; enabling it requires a product
    build with the ordinary Web stage enabled.
  • Fail the explicitly selected product build if its mobile build, guard tests or
    upload fail. Do not ignore errors; ordinary default builds remain unchanged.
  • Register vscode_web_linux_mobile_archive-unsigned as web-mobile through the
    existing build publisher, under the same source commit and quality.
  • Preserve the upstream Web archive retry guard and reuse the same artifact check
    for mobile, so retrying the job does not republish an immutable pipeline artifact.
  • Reuse upload-cdn.ts, placing mobile files and their inventory under
    agents/mobile/<quality>/<commit>/, outside the normal editor preload directory.
  • Require the normal publication flag before uploading mobile CDN files.
  • Run the publication contract tests in normal build-test discovery and in the
    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-standalone and
server-web artifact names and default publishing behavior remain unchanged.

The existing update service's platform lookup can select the registered
web-mobile asset. 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 the
two-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.
  • The follow-up commit used normal hooks and signing; signature verification passed.

Merge validation:

  • 71 focused package, publication and composition tests passed, including all
    seven publication contracts:

    TMPDIR=/private/tmp npm exec --yes [email protected] -- pnpm run test-mobile \
      build/lib/test/mobileWebPublication.test.ts \
      build/lib/test/sessionsPresentationDependencies.test.ts
  • 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 --check and publication-only
    git diff --cached --check ca4b8fdc197c067724fec712c9100b22b9cd04c9:
    both passed.

Built the exact merge commit locally with
BUILD_SOURCEVERSION=c3efd8d15e7c51059808c4bfc1be7b8da55ab574,
VSCODE_QUALITY=dev, VSCODE_PUBLISH=false, and VSCODE_RELEASE=false:

  • pnpm run bundle-mobile: passed, with all dependency and size checks enabled.
  • The pipeline's GNU tar command, with the artifact-staging macro expanded to a
    temporary directory: passed.

The archive has a vscode-web-mobile/ root and exactly 502 files: mobile.json
plus 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.

Gzip bytes Measured Limit
Main JavaScript 5,558,566 5,600,000
CSS 237,569 240,000
Initial JS/CSS/NLS 6,143,311 6,200,000
Core runtime 14,529,657 14,600,000
Extensions 712,440 800,000

All limits and the TODO to lower them further are unchanged.

The local package uses genuine dev quality. Verified that the publication
configuration rejects dev, and that identity validation rejects presenting this
package as insider. No product metadata or guard was weakened. The existing
Azure 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.

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]>
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]>
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]>
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]>
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]>
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]>
Use the shared lockfile fixture and hoisted dependency metadata after merging the upstream pnpm migration.

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]>
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]>
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]>
Base automatically changed from osortega/agents/mobile-stack/03-build to main November 11, 2026 04:28
@osortega
Osvaldo Ortega (osortega) marked this pull request as ready for review November 11, 2026 04:41
Copilot AI balanced review requested due to automatic review settings November 11, 2026 04:41
@vs-code-engineering

Copy link
Copy Markdown
Contributor

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

Ladislau Szomoru (@lszomoru)

Matched files:

  • build/azure-pipelines/common/publish.ts
  • build/azure-pipelines/product-build-template.yml
  • build/azure-pipelines/product-build.yml
  • build/azure-pipelines/upload-cdn.ts
  • build/azure-pipelines/web/cdnConfiguration.ts
  • build/azure-pipelines/web/product-build-web.yml

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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-mobile registration, 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]>
@osortega
Osvaldo Ortega (osortega) merged commit fa614b1 into main Nov 11, 2026
52 of 53 checks passed
@osortega
Osvaldo Ortega (osortega) deleted the osortega/agents/mobile-stack/04-publication branch November 11, 2026 05:29
@vs-code-engineering vs-code-engineering Bot added this to the 1.147.0 milestone Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants