Skip to content

{DevOps} Scaffold standalone preview docs sync pipeline - #1511

Draft
DanielMicrosoft wants to merge 7 commits into
mainfrom
azclips-docs-release-ci
Draft

DanielMicrosoft wants to merge 7 commits into
mainfrom
azclips-docs-release-ci

Conversation

@DanielMicrosoft

@DanielMicrosoft DanielMicrosoft commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Related command

Standalone pipeline for CLI and PowerShell preview documentation. Related: Azure/CLIPS#1091.

Description

DO NOT MERGE: implementation-shape review only.

  • Add a standalone, manually runnable docs pipeline with a selected release tag and validate, dry-run, and create-PR modes.
  • Add tag and expected-commit checks. Dry-run publishes generated CLI docs and reports the PowerShell copy plan, stale files, and service-map status against a read-only checkout of the target's main branch. This is not a full content diff.
  • Authenticate to the CLI2Yaml feed using the existing DocsReference_WIF workload identity and a job-specific package cache; no PAT is needed for the feed.
  • Enable a temporary CLI-only draft-PR test using the Azure CLI release connection and bot fork. PowerShell PRs and notifications remain disabled. Structured results and safe reruns are not implemented; repeated runs can create duplicate PRs.

This is not a complete unattended publishing workflow. The DocsReference_WIF and Azure CLI release connections must be authorized for the docs pipeline. Release pipeline integration and selective promotion to live remain separate.

Testing Guide

  • Invoke-Pester -Path tests\Cli.DocsSync.Tests\DocsPipeline.Tests.ps1,tests\Cli.DocsSync.Tests\DocsReleaseTag.Tests.ps1 -Output Normal -CI — passed, 18 tests.
  • python -c "import os,unittest; os.defpath=r'C:\Program Files\Git\usr\bin'+os.pathsep+os.defpath; unittest.main(module='devops.scripts.ci.test_pipeline_input_safety')" — passed, 21 tests. On Windows this supplies Git's Unix tools to the fixture's isolated PATH.
  • git diff --cached --check — passed before commit.
  • Parsed the standalone pipeline YAML and embedded PowerShell blocks — passed.
  • Azure DevOps preview API for the standalone pipeline in validate and dry-run modes — passed template expansion at 61aa8c046; verified that artifact publishing and target checkout are included only in dry-run.
  • Azure DevOps preview API at 01a0cbbe946af36073dffcdba813822430533d7c — passed for all three modes; create-pr includes the CLI job and its credential, not PowerShell or notifications; dry-run retains both docs jobs.
  • Isolated workload-identity restore run 379929 — passed, restoring CLI2Yaml into a fresh cache without publishing.
  • Standalone validation run 379891 — passed against the preceding revision.
  • Standalone dry-run 379935 — passed on pipeline commit 938150946; workload-identity restore and CLI2Yaml generation succeeded, and PowerShell reported its copy plan against an absent target.
  • Standalone dry-run 380171 — passed at 61aa8c046. Inspected the published CLI artifact: 52 YAML files and manifest, including latest/TOC.yml. PowerShell compared its plan against MicrosoftDocs/azure-docs-powershell main at 038b23d7f0fdcc1c1093dc4445a5ccfb987f184a: 126 planned files, zero stale files, and a service map to regenerate.
  • CLI draft-PR test run 380284 — passed at 01a0cbbe946af36073dffcdba813822430533d7c after authorizing the CLI release connection. Opened [TEST - DO NOT MERGE] AzClips CLI documentation sync MicrosoftDocs/azure-docs-cli#6378 from the bot fork; the draft is marked test-only. Its older tag predates the multi-paragraph parser fix and config guidance used to generate the current docs, so its diff removes four paragraphs and must not be merged.
  • No email or release build was run.

History Notes


  • The PR title starts with [Component Name] for customer-facing changes or {Component Name} for non-customer-facing changes, and does not end with trailing punctuation or spaces.
  • Customer-facing changes include a useful release note in the PR title or the History Notes section.
  • I added or updated tests for behavior changes.
  • I updated documentation when behavior, setup, support, or security guidance changed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@DanielMicrosoft DanielMicrosoft added the DO NOT MERGE This PR is not ready to be merged label Nov 25, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@DanielMicrosoft DanielMicrosoft changed the title {DevOps} Scaffold preview docs release integration {DevOps} Scaffold standalone preview docs sync pipeline Nov 26, 2026
DanielMicrosoft and others added 5 commits November 26, 2026 15:59
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <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

DO NOT MERGE This PR is not ready to be merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant