Skip to content

Move Application Insights CDN preview publishing from beta to next - #2793

Open
Hector Hernandez (hectorhdzg) wants to merge 6 commits into
mainfrom
hectorhdzg-beta-to-next
Open

Hector Hernandez (hectorhdzg) wants to merge 6 commits into
mainfrom
hectorhdzg-beta-to-next

Conversation

@hectorhdzg

Copy link
Copy Markdown
Member

Summary

Use next as the writable preview CDN channel instead of beta.

  • Update publishing and activation scripts for the Web SDK, Click Analytics, Debug Plugin, Perf Mark/Measure Manager, Chrome debug extension, and configuration tooling.
  • Publish release artifacts to next and their existing production destinations. Publish release candidates and beta prerelease artifacts only to next, retaining -beta version names and npm tags.
  • Reject activation into the frozen beta channel. Keep production URLs, dev/nightly behavior, historical artifacts, and read-only beta version listing unchanged.
  • Preserve the ai_test.config.* prefix for beta configuration artifacts and activate those test aliases in next, without changing release configuration aliases.
  • Move the real-network Web SDK CDN monitor from beta to next. The documentation site's SDK and config already use next.

Validation

  • Offline PowerShell regression tests pass across all six publishing families, covering release/prerelease routing, activation restrictions, configuration file selection, production paths, alias flags, and legacy beta listing. These tests are also wired into CI.
  • The live next/ai.3.gbl.min.js endpoint returns HTTP 200 with a nonempty body and the expected content-type and SDK metadata headers.
  • TypeScript 4.9.5 ES5 transpilation and diff checks pass. Isolated ESLint diagnostics for the changed TypeScript file match the baseline exactly (28 existing errors and 162 existing warnings).
  • Full Rush build/browser-suite validation and npm run lint-fix could not complete locally: dependency restoration fails because the repository-pinned pnpm@10.34.5 is unavailable from the configured registry. No dependency or version manifests were changed.

Rollout

Use freshly built release artifacts: deployment pipelines execute the publishing and activation scripts bundled in the artifacts, so older artifacts can still write to beta.

Related shared Application Insights/1DS deployment pipeline change: https://msazure.visualstudio.com/One/_git/1DS.JavaScript/pullrequest/17088929

Route release candidates and beta-version artifacts to next, reject beta activation, and preserve production paths and legacy listing. Add offline routing regression coverage and migrate the live CDN monitor.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 3, 2026 22:06

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.

🟡 Changes recommended

The version-listing script omits beta configurations and aliases published under the test prefix in the next container.

1 open issue
What changed in this PR

Moves the Application Insights SDK’s writable preview CDN channel from beta to next across six publishing families, while preserving production destinations and legacy beta artifacts.

Changes:

  • Routes releases to next and production, routes prereleases only to next, and rejects beta-channel activation.
  • Preserves beta configuration test prefixes and aliases, and moves the live CDN monitor to next.
  • Adds offline routing regression tests to CI and updates deployment documentation.
File Description
tools/​config/​scripts/​setAzActiveCdnVersion.ps1 Restricts activation channels and selects beta test aliases.
tools/​config/​scripts/​publishAzReleaseToCdn.ps1 Publishes beta test configurations to next.
tools/​config/​README.md Documents configuration endpoints and test aliases.
tools/​chrome-debug-extension/​scripts/​setAzActiveCdnVersion.ps1 Rejects beta-channel activation.
tools/​chrome-debug-extension/​scripts/​publishAzReleaseToCdn.ps1 Routes preview artifacts to next/tools.
README.md Updates CDN promotion and canary guidance.
extensions/​applicationinsights-perfmarkmeasure-js/​scripts/​setAzActiveCdnVersion.ps1 Restricts preview activation to next.
extensions/​applicationinsights-perfmarkmeasure-js/​scripts/​publishAzReleaseToCdn.ps1 Routes preview artifacts to next/ext.
extensions/​applicationinsights-debugplugin-js/​scripts/​setAzActiveCdnVersion.ps1 Restricts preview activation to next.
extensions/​applicationinsights-debugplugin-js/​scripts/​publishAzReleaseToCdn.ps1 Routes preview artifacts to next/ext.
extensions/​applicationinsights-clickanalytics-js/​scripts/​setAzActiveCdnVersion.ps1 Restricts preview activation to next.
extensions/​applicationinsights-clickanalytics-js/​scripts/​publishAzReleaseToCdn.ps1 Routes preview artifacts to next/ext.
common/​publish/​Tests/​CdnPublishing.tests.ps1 Adds offline routing, activation, and channel checks.
AISKU/​Tests/​Unit/​src/​applicationinsights.e2e.tests.ts Points the live CDN monitor at next.
AISKU/​scripts/​setAzActiveCdnVersion.ps1 Restricts Web SDK preview activation to next.
AISKU/​scripts/​README.md Documents routing, regression tests, and rollout requirements.
AISKU/​scripts/​publishAzReleaseToCdn.ps1 Publishes Web SDK previews only to next.
.github/​workflows/​ci.yml Runs the offline CDN regression tests.

Review effort: Balanced

Drop beta release inputs, npm tag generation, CDN routing and listing options, and beta CI branch triggers. Validate supported release types before publishing or activation, including npm packaging and latest-tag promotion. Keep deployed CDN files and historical release records unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Restore the pre-cleanup beta Git-branch filters for CI and CodeQL while retaining CDN migration, release-type retirement, and the added regression CI steps.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Restore npm prerelease tags, version generation and unrelated release guidance while retaining CDN routing and its regression coverage.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Describe next-only preview publishing and retired beta CDN options without changing npm versions or tags.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

This branch has not been deployed

No deployments
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