Skip to content

feat: add Fairfax v1.0 OpenAPI pipeline stages - #1498

Open
Gavin Barron (gavinbarron) wants to merge 1 commit into
mainfrom
gavinbarron-fairfax-openapi-pipeline
Open

Gavin Barron (gavinbarron) wants to merge 1 commit into
mainfrom
gavinbarron-fairfax-openapi-pipeline

Conversation

@gavinbarron

@gavinbarron Gavin Barron (gavinbarron) commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: b12e7ad23ee973c912b54a15ec7e4d1943c3e7ed

Dimension Assessment Rationale
Change confidence 8/10 ↑ Focused regressions pass for Prod defaults, all four Fairfax profiles, failure recovery, and first-run publication using local Git remotes.
↑ YAML and artifact-contract checks pass; existing Prod stages and variables match the baseline.
↓ Full Fairfax CSDL conversion, Azure DevOps template expansion, and remote publication have not been exercised end to end.

Summary

Add Fairfax v1.0 CSDL cleaning and Hidi OpenAPI conversion stages to the generator pipeline, using schemas/v1.0-Fairfax.csdl from the metadata repository and the existing Prod transforms, documentation/TypeSpec annotations, conversion profiles, and publication controls.

Fairfax uses isolated metadata/OpenAPI artifacts and paths, https://graph.microsoft.us/v1.0, and its own OpenAPI discovery PR branch. Current-run cleaned metadata is passed through an artifact even when publication is disabled. Scoped publication preserves newly created Fairfax files without committing unrelated generated/dependency files. No Fairfax beta or SDK generation stages are added; existing Prod stages and variables remain unchanged.

Generated code differences

No generated SDK code is changed. Expected additions in microsoftgraph/msgraph-metadata are illustrated below; these are output-path examples, not results from a full pipeline run:

+ clean_v10_fairfax_metadata/cleanMetadataWithDescriptionsv1.0.xml
+ clean_v10_fairfax_metadata/cleanMetadataWithDescriptionsAndAnnotationsv1.0.xml
+ clean_v10_fairfax_metadata/cleanMetadataWithDescriptionsAndAnnotationsAndErrorsv1.0.xml
+ openapi/fairfax/v1.0/default.yaml
+ openapi/fairfax/v1.0/graphexplorer.yaml
+ openapi/fairfax/v1.0/openapi.yaml
+ openapi/fairfax/v1.0/powershell_v2.yaml

Existing Prod output paths are retained. Fairfax OpenAPI uses the service URL https://graph.microsoft.us/v1.0.

Command line arguments to run these changes

From the generator repository root:

pwsh -NoProfile -File test\scripts\FairfaxPipeline.Tests.ps1

Result: passed. Checks cover Prod defaults, all four Fairfax profiles, annotation/error variant selection, Hidi failure recovery, first-run CSDL/OpenAPI publication, publication disabled/no-change behavior, and Git failure propagation. Hidi is mocked; publication uses temporary local Git repositories.

git diff --check also passed. Changed YAML was parsed and stage isolation, artifact handoff, skip branches, annotation paths, and publication guards were checked locally.

For end-to-end execution, run .azure-pipelines/generation-pipeline.yml in Azure DevOps with metadata and OpenAPI capture enabled. Set publishChanges: false for artifact-only Fairfax verification; skipping metadata capture requires previously published Fairfax cleaned CSDL. Not run: full Fairfax CSDL conversion, Azure DevOps/1ES template expansion, remote publication, and the .NET suite (no C# changes).

Links to issues or work items this PR addresses

N/A — requested Fairfax v1.0 CSDL-to-OpenAPI pipeline support.

Microsoft Reviewers: Open in CodeFlow

@gavinbarron
Gavin Barron (gavinbarron) requested a review from a team as a code owner November 25, 2026 19:15
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.

2 participants