Repository navigation
chore(hidi): migrate support/v2 tool with preserved history #883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Gavin Barron (gavinbarron)
merged 1,219 commits into
support/v2
from
gavinbarron-hidi-support-v2-import
Oct 9, 2026
+30,154
−18
Merged
Changes from all commits
Commits
Show all changes
1219 commits
Select commit
Hold shift + click to select a range
90817ec
chore(deps): bump Microsoft.Extensions.Logging.Abstractions
dependabot[bot] 4988f27
chore(deps): bump System.Text.Json from 8.0.5 to 9.0.0 (#1920)
dependabot[bot] 6f04d87
Merge pull request #1919 from microsoft/dependabot/nuget/Microsoft.Ex…
baywet 58770a7
chore(deps): bump Microsoft.Extensions.Logging and Microsoft.Extensio…
dependabot[bot] 995d94e
chore(deps): bump Microsoft.OData.Edm from 8.2.0 to 8.2.1
dependabot[bot] f9cccf9
chore(deps): bump Microsoft.VisualStudio.Threading.Analyzers
dependabot[bot] 9aaa2d5
Merge pull request #1926 from microsoft/dependabot/nuget/multi-fd6639…
andrueastman b5ba95d
Merge pull request #1927 from microsoft/dependabot/nuget/Microsoft.OD…
baywet b2ebe0c
chore: removes newtonsoft dependency all together
baywet e91b86f
Merge pull request #1931 from microsoft/chore/newtonsoft-removal
baywet b340192
chore(deps): bump Microsoft.Extensions.Logging, Microsoft.Extensions.…
dependabot[bot] 4af166b
Use range for STJ reference and suppress warnings
MaggieKimani1 9e9c5c1
Revert change for hidi
MaggieKimani1 391fd53
chore(deps): bump Microsoft.OData.Edm from 8.2.1 to 8.2.2
dependabot[bot] 195c668
chore(deps): bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0
dependabot[bot] d070f24
Merge pull request #1944 from microsoft/dependabot/nuget/Microsoft.OD…
baywet ea2c6d5
Merge pull request #1945 from microsoft/dependabot/nuget/Microsoft.NE…
baywet 458e752
Merge pull request #1942 from microsoft/mk/add-range-for-STJ-reference
MaggieKimani1 d05cc83
Use the provided format in hidi options
MaggieKimani1 70857c1
Clean up tests; refactor to use async
MaggieKimani1 bf6d446
Rename Read Result properties
MaggieKimani1 0e2c1f4
chore(deps): bump Microsoft.OData.Edm from 8.2.2 to 8.2.3
dependabot[bot] 80fd952
Merge pull request #1986 from microsoft/dependabot/nuget/Microsoft.OD…
baywet c1139cd
chore(deps): bump xunit.runner.visualstudio from 2.8.2 to 3.0.0
dependabot[bot] 0f0ff5d
Merge pull request #1992 from microsoft/dependabot/nuget/xunit.runner…
andrueastman d545181
Merge pull request #1981 from microsoft/mk/rename-read-result-props
MaggieKimani1 1ebc6e5
Merge branch 'vnext' into mk/fix-json-reader
MaggieKimani1 608acaf
Fix issues from resolving merge conflicts
MaggieKimani1 5089119
chore: aligns parameter names
baywet 83f8896
Merge pull request #1997 from microsoft/chore/linting
baywet 6aadf90
fix: sets hidi version to a preview
baywet 808d709
Merge pull request #2000 from microsoft/fix/hidi-preview
baywet 5c737fe
ci: renames vnext to dev
baywet f3ebb59
Merge pull request #2001 from microsoft/ci/align-branches
baywet 35d8d62
chore: updates api manifest dependency
baywet eac8f34
chore: code linting
baywet 22c7068
Merge pull request #2014 from microsoft/chore/v1-sync
baywet 3890f9a
Merge pull request #1975 from microsoft/mk/fix-json-reader
baywet 1c9ed65
Merge pull request #2015 from microsoft/dev
baywet 0798125
chore: bumps preview version
baywet 9e87f06
Merge pull request #2028 from microsoft/dev
baywet d6b1cbf
fix: side effects in tag references
baywet 23885ad
chore(deps): bump coverlet.collector from 6.0.2 to 6.0.3
dependabot[bot] d0ad7d7
Merge pull request #2034 from microsoft/dependabot/nuget/coverlet.col…
baywet b2faf7a
chore(deps): bump coverlet.msbuild from 6.0.2 to 6.0.3
dependabot[bot] 760ea39
Merge pull request #2035 from microsoft/dependabot/nuget/coverlet.msb…
baywet ead45fd
Merge pull request #2037 from microsoft/fix/missing-culture
baywet 74b2303
Merge branch 'dev' into fix/tag-references
baywet 5def496
chore(deps): bump xunit from 2.9.2 to 2.9.3
dependabot[bot] 131a86d
fix: inconsistant API surface usage
baywet e23c21a
Merge pull request #2050 from microsoft/dependabot/nuget/xunit-2.9.3
baywet fc3429b
Merge pull request #2051 from microsoft/fix/async-surface
baywet c4f5efc
Merge branch 'dev' into fix/tag-references
baywet 4116f05
chore(deps): bump xunit.runner.visualstudio from 3.0.0 to 3.0.1
dependabot[bot] 4c2d1e5
Merge pull request #2054 from microsoft/dependabot/nuget/xunit.runner…
baywet bb3d798
chore(deps): bump Microsoft.Extensions.Logging, Microsoft.Extensions.…
dependabot[bot] 48538d3
chore: removes unused usings
baywet dca9f3d
Merge pull request #2032 from microsoft/fix/tag-references
baywet c5d5cd9
Merge branch 'dev' into chore/reduce-fluent-assertions-dependency
baywet d2b893d
Merge pull request #2064 from microsoft/chore/reduce-fluent-assertion…
baywet c14a440
chore(deps): bump coverlet.msbuild from 6.0.3 to 6.0.4
dependabot[bot] 5acc646
Merge pull request #2073 from microsoft/dependabot/nuget/coverlet.msb…
baywet 9767a8c
chore(deps): bump coverlet.collector from 6.0.3 to 6.0.4
dependabot[bot] 1bef235
Merge pull request #2072 from microsoft/dependabot/nuget/coverlet.col…
baywet 1d8b9ed
Bump preview versions
MaggieKimani1 828dfe8
Merge pull request #2074 from microsoft/chore/bump-preview-versions
MaggieKimani1 1180023
Merge pull request #2077 from microsoft/dev
baywet 617d18a
fix: proxy design pattern implementation for OpenAPiExample
baywet 0f401be
fix: callback reference proxy implementation
baywet 0c775c1
fix: Open API header proxy design pattern implementation
baywet 4133fd3
fix: open API link reference proxy design pattern implementation
baywet 565ff7c
Merge pull request #2089 from microsoft/fix/example-reference
baywet ace09e0
fix: parameter reference proxy design pattern implementation
baywet 979c386
Merge pull request #2090 from microsoft/fix/callback-reference
baywet e4bb070
fix: path item reference implementation
baywet 97e84e0
fix: proxy design pattern implementation for request body
baywet 2d3df83
fix: response reference proxy design pattern implementation
baywet 0c0604f
Merge pull request #2091 from microsoft/fix/headers-reference
baywet 9e49632
Merge pull request #2092 from microsoft/fix/link-reference
MaggieKimani1 15b587d
Merge pull request #2093 from microsoft/fix/parameter-reference
MaggieKimani1 ec1d0ae
Merge pull request #2096 from microsoft/fix/path-item-reference
MaggieKimani1 dc83658
Merge pull request #2097 from microsoft/fix/request-body-reference
MaggieKimani1 170b46c
Merge pull request #2099 from microsoft/fix/response-reference
MaggieKimani1 73dc49f
fix: open api schema reference proxy design pattern implementation
baywet e6abee5
Merge pull request #2106 from microsoft/fix/schema-reference
baywet 72f22ba
ci: adds release please configuration
baywet ef7eb17
fix: removes nullable property that shouldn't be part of dom
baywet c70894e
fix: multiple unit test failures
baywet 381bbd5
Merge pull request #2114 from microsoft/ci/release-please
baywet d91e76a
Merge pull request #2117 from microsoft/fix/no-more-nullable-property
andrueastman b5a0620
Remove unnecessary format param; clean up extra semi-colon
MaggieKimani1 6de8103
Merge pull request #2124 from microsoft/fix/loading-exception
baywet 6d8355a
Merge pull request #2115 from microsoft/dev
baywet f9198fa
chore(deps): bump xunit.runner.visualstudio from 3.0.1 to 3.0.2
dependabot[bot] 55bdb35
Merge pull request #2136 from microsoft/dependabot/nuget/xunit.runner…
github-actions[bot] 0279cca
chore(deps): bump Microsoft.NET.Test.Sdk from 17.12.0 to 17.13.0
dependabot[bot] 2390cf5
Merge pull request #2138 from microsoft/dependabot/nuget/Microsoft.NE…
github-actions[bot] 3fd5a0e
chore(deps): bump Microsoft.Extensions.Logging, Microsoft.Extensions.…
dependabot[bot] df15756
chore(deps): bump Microsoft.OData.Edm, Microsoft.OpenApi.OData and Sy…
dependabot[bot] 539a1e5
Merge pull request #2141 from microsoft/dependabot/nuget/multi-53949b…
github-actions[bot] 8b2b881
Merge pull request #2143 from microsoft/dependabot/nuget/multi-ff5b95…
github-actions[bot] 517177b
chore(deps): bump Microsoft.VisualStudio.Threading.Analyzers
dependabot[bot] ec335c8
Merge pull request #2145 from microsoft/dependabot/nuget/Microsoft.Vi…
github-actions[bot] 10b87dc
chore: upgrades api manifest dep
baywet 8dc6fea
chore: upgrades additional hidi dependencies
baywet b1e1aca
Merge pull request #2148 from microsoft/chore/upgrades-api-manifest
baywet 064f5c6
chore: cleanup of GetValues where possible
baywet 5548da3
Merge pull request #2157 from microsoft/fix/deprecation-extension-dates
baywet b9a6c39
draft: removes static registry for readers
baywet d6291f4
fix: removes static readers registry
baywet 30277a3
chore: adds missing yaml reader for test
baywet 725409d
fix avoid creating a client for each request in hidi
baywet 5e9d3ce
fix: use a single http client in hidi
baywet 1e0b241
BREAKING CHANGE: Rename Readers project to YamlReader
MaggieKimani1 e6b06fe
fix: clean up project references
MaggieKimani1 85c37d9
feat: deduplicates tags at the document level
baywet 539d333
feat: tags references are now deduplicated as well
baywet 9772be4
chore(deps): bump Microsoft.OData.Edm and Microsoft.OpenApi.OData
dependabot[bot] ea9d0c5
Merge pull request #2168 from microsoft/dependabot/nuget/multi-43f910…
github-actions[bot] 5009841
Merge pull request #2167 from microsoft/fix/unique-tags
baywet 135e63b
Merge branch 'main' into fix/static-factories
baywet 6beda0f
Merge pull request #2165 from microsoft/fix/static-factories
baywet f471ec4
fix: fixes serialization of openApidocs with operation tags with sett…
a2d1571
Merge pull request #2235 from microsoft/andrueastman/validations
andrueastman fd326d7
chore(deps): bump Microsoft.OpenApi.ApiManifest and SharpYaml
dependabot[bot] caa0ce0
Merge pull request #2238 from microsoft/dependabot/nuget/multi-bfc526…
github-actions[bot] 5b41e84
chore(deps): bump Microsoft.Extensions.Logging, Microsoft.Extensions.…
dependabot[bot] 57757bd
feat/use-http-method-object-instead-of-enum
Michael-Wamae 5b96d4d
chore: update the readme for hidi examples and commands
musale 9494abd
Merge pull request #2252 from musale/chore/fix-readme
MaggieKimani1 8db5049
Merge branch 'main' into mw/use-http-method-object-instead-of-enum
baywet 313fafe
Merge pull request #2251 from microsoft/mw/use-http-method-object-ins…
baywet d9d0523
chore: merge remote-tracking branch 'origin/main' into fix/rename-rea…
MaggieKimani1 a0273ad
feat: enable null reference type support (#2146)
MaggieKimani1 03c6f61
chore: merge main
MaggieKimani1 4ff2061
chore(deps): bump Microsoft.VisualStudio.Threading.Analyzers
dependabot[bot] b2ea852
Merge pull request #2269 from microsoft/dependabot/nuget/Microsoft.Vi…
github-actions[bot] bf099d6
chore: Merge remote-tracking branch 'origin/main' into fix/rename-rea…
MaggieKimani1 fb2b318
Merge pull request #2166 from microsoft/fix/rename-readers
MaggieKimani1 66eb992
chore: upgrade package version
MaggieKimani1 09a5e4a
chore: upgrade OData lib version
MaggieKimani1 336446d
fix: hidi fails to parse yaml files when fixing references
baywet 16c2332
chore: upgrades yoko to the latest preview
baywet 60afdc8
Merge pull request #2301 from microsoft/chore/upgrade-yoko
baywet 0889cf1
chore(deps): bump Microsoft.Extensions.Logging.Abstractions
dependabot[bot] 134c598
feat: Remove default collection initialization for perf reasons (#2284)
MaggieKimani1 265b1f1
chore(deps): bump Microsoft.Extensions.Logging, Microsoft.Extensions.…
dependabot[bot] 6569c41
Merge pull request #2317 from microsoft/dependabot/nuget/multi-51e246…
github-actions[bot] d86cd31
fix: Improve handling of OpenAPI tag references (#2325)
martincostello efc6d77
feat: openapiformat enum cleanup (#2326)
Michael-Wamae dce6708
feat: upgrades openapi.net.odata and apimanifest to the latest version
baywet 4f62f6e
chore(deps): bump Microsoft.OpenApi.ApiManifest and SharpYaml
dependabot[bot] f001989
Update src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
baywet d95a0f7
Merge pull request #2334 from microsoft/dependabot/nuget/multi-f1bf11…
github-actions[bot] e494e1e
Merge branch 'main' into chore/upgrade-deps
MaggieKimani1 fcbde2b
chore: rename OpenApiAny to JsonNodeExtension
MaggieKimani1 4141f29
chore(deps): bump xunit.runner.visualstudio from 3.0.2 to 3.1.0
dependabot[bot] cf7109d
Merge pull request #2348 from microsoft/dependabot/nuget/xunit.runner…
github-actions[bot] 4983640
Merge pull request #2338 from microsoft/chore/rename-openApiAny
MaggieKimani1 de3b3be
chore: upgrades yoko to preview 14
baywet d547d4f
Merge pull request #2355 from microsoft/chore/upgrade-yoko
baywet cc4c56e
fix: revert to using IDictionary for collections
MaggieKimani1 85e4c7f
chore: revert collections to use interface types
MaggieKimani1 33ee751
chore: flatten namespaces to align with top-level namespace
MaggieKimani1 b6e18f8
chore: flatten namespaces for more classes
MaggieKimani1 ba72775
Merge pull request #2368 from microsoft/fix/flatten-namespaces
MaggieKimani1 ec44f52
Merge branch 'main' into fix/revert-to-IDictionary-and-allow-sorting
MaggieKimani1 94dbfa0
Merge pull request #2363 from microsoft/fix/revert-to-IDictionary-and…
MaggieKimani1 b9557d0
feat: upgrades OData lib to preview15
MaggieKimani1 084c2c9
Merge pull request #2372 from microsoft/feat/upgrade-yoko
MaggieKimani1 965be7d
Bump BenchmarkDotNet and 14 others
dependabot[bot] 9b14af4
Update src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
baywet 47e65fd
Update src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj
baywet 2c22049
Merge pull request #2377 from microsoft/dependabot/nuget/performance/…
baywet 084255d
Bump BenchmarkDotNet and 5 others
dependabot[bot] c4a7a00
chore: reverts yoko changes
baywet 9852215
Bump Microsoft.Extensions.DependencyInjection and 8 others
dependabot[bot] e7cbe82
chore: reverts yoko upgrade
baywet 665c50a
chore: typo
baywet 9a342b3
Merge pull request #2386 from microsoft/dependabot/nuget/performance/…
baywet 41c895a
Bump Microsoft.OpenApi.OData, System.Text.Json and Verify.Xunit
dependabot[bot] 6bd65fa
chore: reverts yoko upgrade
baywet 5347dd1
Merge pull request #2399 from microsoft/dependabot/nuget/src/Microsof…
baywet baf279a
Bump BenchmarkDotNet and 3 others
dependabot[bot] 9ab58b6
chore: reverts yoko upgrade
baywet 05e2070
Merge pull request #2403 from microsoft/dependabot/nuget/performance/…
baywet 92d7234
Bump Microsoft.OpenApi.OData and 3 others
dependabot[bot] e30b7f6
chore: reverts yoko upgrade
baywet d7700cc
fix: migration of hidi to the latest version of system.commandline
baywet 70c32ff
Bump Microsoft.OData.Edm, Microsoft.OpenApi.OData and System.Text.Json
dependabot[bot] 4c3b642
chore: reverts Yoko upgrade
baywet 99c0c60
Merge pull request #2418 from microsoft/dependabot/nuget/src/Microsof…
baywet d16a907
fix: upgrades openapi.odata to avoid hidi failing to load
baywet 24ac6dc
Merge pull request #2421 from microsoft/chore/upgrade-deps
baywet 9f11d27
fix: bumps openapi.net.odata to fix two critical bugs in hidi
baywet 2722ac2
Merge pull request #2424 from microsoft/fix/odata-bugs
baywet ffe73ce
Bump Microsoft.Extensions.DependencyInjection and 6 others
dependabot[bot] c402ef2
Merge pull request #2427 from microsoft/dependabot/nuget/performance/…
github-actions[bot] 4c33a02
fix: removes public mermaid types that were not usuable
baywet 15b16d3
chore: fixes internals visible to declaration
baywet d2bccae
Bump Microsoft.OData.Edm and System.Text.Json
dependabot[bot] 25fc39e
Merge pull request #2439 from microsoft/dependabot/nuget/src/Microsof…
baywet 2c34308
Bump System.Text.Json and xunit.runner.visualstudio
dependabot[bot] 7d37285
Merge pull request #2444 from microsoft/dependabot/nuget/test/Microso…
baywet f3b006a
chore: updates extensions dependencies
baywet d419cfc
chore: updates STJ
baywet 9f078b0
chore: updates yoko dependency to latest
baywet a799f13
ci: fixes flaky test
baywet be034db
Merge pull request #2464 from microsoft/chore/path-item-serialization…
baywet aa92cf2
Bump Microsoft.Extensions.Logging.Abstractions from 9.0.8 to 9.0.9
dependabot[bot] a626e9b
Merge pull request #2490 from microsoft/dependabot/nuget/src/Microsof…
github-actions[bot] fda1dbf
chore: updates logging dependencies
baywet c133135
chore: updates edm dep
baywet caea8a1
chore: updates xunit deps
baywet b4c3120
Merge pull request #2497 from microsoft/chore/upgrades-deps
baywet dbf2769
Merge pull request #2509 from Expecho/patch-1
Expecho 62fe817
Bump Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.0
dependabot[bot] d040926
Merge pull request #2523 from microsoft/dependabot/nuget/test/Microso…
baywet 77a6747
fix: use settings for terse output in serialization extension methods
baywet 9a67cd7
Merge pull request #2537 from microsoft/fix/terse-output-extensions
baywet 18a94b5
Bump Microsoft.Extensions.Logging.Abstractions from 9.0.9 to 9.0.10
dependabot[bot] 9f1428c
Bump Microsoft.Extensions.Logging and Microsoft.Extensions.Logging.Debug
dependabot[bot] 8fc8567
Merge pull request #2548 from microsoft/dependabot/nuget/performance/…
github-actions[bot] 8049b19
Bump Microsoft.Extensions.Logging.Console and System.Text.Json
dependabot[bot] 7736a38
chore: updates xunit deps
baywet 92f7e81
Merge pull request #2551 from microsoft/dependabot/nuget/performance/…
github-actions[bot] 493dcf6
Bump Microsoft.OData.Edm from 8.4.0 to 8.4.2
dependabot[bot] 23375ea
Merge pull request #2564 from microsoft/dependabot/nuget/src/Microsof…
github-actions[bot] aba21ce
feat: hidi validate command now logs warnings
baywet da8c888
Merge pull request #2691 from microsoft/feat/hidi-warning-to-v2
baywet 7931037
chore: port of #2751 to v2
baywet c45ae6f
chore: upgrade of edm
baywet 8fdc406
chore: upgrade of coverlet
baywet 0bfab03
fix(hidi): update Microsoft.OpenApi.OData to 2.2.1
gavinbarron 2cdbfbe
Merge pull request #2815 from microsoft/fix/update-odata-v2
baywet 6a54a92
ci: upgrades repository to net10
baywet f7714af
Merge pull request #2826 from microsoft/ci/upgrade-net-10-to-v2
baywet 224008f
chore: ugprades STA dependency
baywet 2abf820
Merge pull request #2900 from microsoft/fix/flush-async-to-v2
baywet 833df26
chore/deps to v2 (#3013)
baywet c74318d
ci/nuget deploy cfs take 2 (#3015) (#3018)
baywet abd668c
ci: migrate MTP reporting (#3068) (#3072)
baywet 8ebc6ab
feat(hidi): import filtered support/v2 history
gavinbarron 049077e
chore(hidi): integrate v2 tool with OData builds and gated releases
gavinbarron 33922fe
fix(ci): use native paths for hidi smoke tests
gavinbarron c7f9c51
fix(ci): pin new hidi actions to verified revisions
gavinbarron b33fe6a
fix(ci): restore packages from approved authenticated feed
gavinbarron 29d5721
test(hidi): cover CLI validation and utility branches
gavinbarron f5b9332
chore(hidi): address solution build and release tracking review
gavinbarron ddbf336
fix(ci): align release actions and upgrade token runtime
gavinbarron File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,252 @@ | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # Licensed under the MIT License. | ||
|
|
||
| name: Hidi_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r) | ||
|
|
||
| trigger: | ||
| branches: | ||
| include: | ||
| - support/v2 | ||
| tags: | ||
| include: | ||
| - hidi-v2.* | ||
| pr: | ||
| branches: | ||
| include: | ||
| - support/v2 | ||
|
|
||
| variables: | ||
| buildConfiguration: Release | ||
| # Keep OFF until the destination PR lands and source publishing is cut over. | ||
| hidiPublishingEnabled: 'false' | ||
|
|
||
| resources: | ||
| repositories: | ||
| - repository: 1ESPipelineTemplates | ||
| type: git | ||
| name: 1ESPipelineTemplates/1ESPipelineTemplates | ||
| ref: refs/tags/release | ||
|
|
||
| extends: | ||
| template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates | ||
| parameters: | ||
| pool: | ||
| name: Azure-Pipelines-1ESPT-ExDShared | ||
| image: windows-latest | ||
| os: windows | ||
| stages: | ||
| - stage: build | ||
| jobs: | ||
| - job: hidi | ||
| templateContext: | ||
| outputs: | ||
| - output: pipelineArtifact | ||
| artifactName: Hidi | ||
| targetPath: '$(Build.ArtifactStagingDirectory)\hidi' | ||
| steps: | ||
| - task: UseDotNet@2 | ||
| displayName: Use .NET 6 for ESRP | ||
| inputs: | ||
| version: 6.x | ||
| - task: UseDotNet@2 | ||
| displayName: Use .NET 8 | ||
| inputs: | ||
| version: 8.x | ||
| - task: UseDotNet@2 | ||
| displayName: Use .NET 10 | ||
| inputs: | ||
| version: 10.x | ||
| - task: NuGetToolInstaller@1 | ||
| inputs: | ||
| versionSpec: '>=6.11.0' | ||
| checkLatest: true | ||
| - task: NuGetAuthenticate@1 | ||
| displayName: Authenticate approved NuGet feed | ||
| - pwsh: | | ||
| @' | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <configuration> | ||
| <packageSources> | ||
| <clear /> | ||
| <add key="GraphDeveloperExperiences_Public" value="https://microsoftgraph.pkgs.visualstudio.com/0985d294-5762-4bc2-a565-161ef349ca3e/_packaging/GraphDeveloperExperiences_Public/nuget/v3/index.json" /> | ||
| </packageSources> | ||
| </configuration> | ||
| '@ | Set-Content -Path '$(Build.SourcesDirectory)\nuget.config' | ||
| displayName: Configure approved NuGet feed | ||
| - pwsh: | | ||
| $version = ([xml](Get-Content src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj)).Project.PropertyGroup.Version | ||
| if ($version -notmatch '^2\.\d+\.\d+(-[0-9A-Za-z.-]+)?$') { throw "Expected a hidi 2.x version, got $version." } | ||
| if ('$(Build.SourceBranch)' -like 'refs/tags/*' -and '$(Build.SourceBranch)' -ne "refs/tags/hidi-v$version") { | ||
| throw "Hidi tag must exactly match the hidi project version." | ||
| } | ||
| Write-Host "##vso[task.setvariable variable=HidiVersion]$version" | ||
| dotnet build src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj -c $(buildConfiguration) -p:GeneratePackageOnBuild=false | ||
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
| dotnet run --project test\Microsoft.OpenApi.Hidi.Tests\Microsoft.OpenApi.Hidi.Tests.csproj -c $(buildConfiguration) -- --minimum-expected-tests 1 | ||
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
| dotnet publish src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj -c $(buildConfiguration) -r win-x64 --self-contained true -p:PublishSingleFile=true -p:PackAsTool=false -p:GeneratePackageOnBuild=false -o artifacts\hidi\win-x64 | ||
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
| & .\artifacts\hidi\win-x64\Microsoft.OpenApi.Hidi.exe --help | ||
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
| New-Item -ItemType Directory -Force artifacts\hidi\signing | Out-Null | ||
| Copy-Item src\Microsoft.OpenApi.Hidi\bin\$(buildConfiguration)\net8.0\Microsoft.OpenApi.Hidi.dll artifacts\hidi\signing | ||
| Copy-Item artifacts\hidi\win-x64\Microsoft.OpenApi.Hidi.exe artifacts\hidi\signing | ||
| displayName: Build, test and stage hidi binaries | ||
| - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5 | ||
| displayName: Sign hidi DLL and Windows executable | ||
| inputs: | ||
| ConnectedServiceName: Federated DevX ESRP Managed Identity Connection | ||
| FolderPath: 'artifacts\hidi\signing' | ||
| Pattern: 'Microsoft.OpenApi.Hidi.*' | ||
| AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8' | ||
| AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2' | ||
| AuthAKVName: akv-prod-eastus | ||
| AuthCertName: ReferenceLibraryPrivateCert | ||
| AuthSignCertName: ReferencePackagePublisherCertificate | ||
| signConfigType: inlineSignParams | ||
| inlineOperation: | | ||
| [ | ||
| { | ||
| "keyCode": "CP-230012", | ||
| "operationSetCode": "SigntoolSign", | ||
| "parameters": [ | ||
| { "parameterName": "OpusName", "parameterValue": "Microsoft" }, | ||
| { "parameterName": "OpusInfo", "parameterValue": "http://www.microsoft.com" }, | ||
| { "parameterName": "FileDigest", "parameterValue": "/fd \"SHA256\"" }, | ||
| { "parameterName": "PageHash", "parameterValue": "/NPH" }, | ||
| { "parameterName": "TimeStamp", "parameterValue": "/tr \"http://rfc3161.gtm.corp.microsoft.com/TSS/HttpTspServer\" /td sha256" } | ||
| ], | ||
| "toolName": "sign", | ||
| "toolVersion": "1.0" | ||
| }, | ||
| { | ||
| "keyCode": "CP-230012", | ||
| "operationSetCode": "SigntoolVerify", | ||
| "parameters": [], | ||
| "toolName": "sign", | ||
| "toolVersion": "1.0" | ||
| } | ||
| ] | ||
| SessionTimeout: '20' | ||
| MaxConcurrency: '50' | ||
| MaxRetryAttempts: '5' | ||
| PendingAnalysisWaitTimeoutMinutes: '5' | ||
| - pwsh: | | ||
| Copy-Item artifacts\hidi\signing\Microsoft.OpenApi.Hidi.dll src\Microsoft.OpenApi.Hidi\bin\$(buildConfiguration)\net8.0\Microsoft.OpenApi.Hidi.dll | ||
| Copy-Item artifacts\hidi\signing\Microsoft.OpenApi.Hidi.exe artifacts\hidi\win-x64\Microsoft.OpenApi.Hidi.exe | ||
| New-Item -ItemType Directory -Force '$(Build.ArtifactStagingDirectory)\hidi' | Out-Null | ||
| dotnet pack src\Microsoft.OpenApi.Hidi\Microsoft.OpenApi.Hidi.csproj -c $(buildConfiguration) --no-build -o '$(Build.ArtifactStagingDirectory)\hidi' | ||
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | ||
| Compress-Archive -Path artifacts\hidi\win-x64\* -DestinationPath '$(Build.ArtifactStagingDirectory)\hidi\hidi-win-x64-$(HidiVersion).zip' | ||
| Copy-Item artifacts\hidi\win-x64\Microsoft.OpenApi.Hidi.exe '$(Build.ArtifactStagingDirectory)\hidi\Microsoft.OpenApi.Hidi.exe' | ||
| displayName: Pack signed hidi binaries | ||
| - task: SFP.build-tasks.custom-build-task-1.EsrpCodeSigning@5 | ||
| displayName: Sign hidi NuGet package | ||
| inputs: | ||
| ConnectedServiceName: Federated DevX ESRP Managed Identity Connection | ||
| FolderPath: '$(Build.ArtifactStagingDirectory)\hidi' | ||
| Pattern: 'Microsoft.OpenApi.Hidi.$(HidiVersion).nupkg' | ||
| AppRegistrationClientId: '65035b7f-7357-4f29-bf25-c5ee5c3949f8' | ||
| AppRegistrationTenantId: 'cdc5aeea-15c5-4db6-b079-fcadd2505dc2' | ||
| AuthAKVName: akv-prod-eastus | ||
| AuthCertName: ReferenceLibraryPrivateCert | ||
| AuthSignCertName: ReferencePackagePublisherCertificate | ||
| signConfigType: inlineSignParams | ||
| inlineOperation: | | ||
| [ | ||
| { | ||
| "keyCode": "CP-401405", | ||
| "operationSetCode": "NuGetSign", | ||
| "parameters": [], | ||
| "toolName": "sign", | ||
| "toolVersion": "1.0" | ||
| }, | ||
| { | ||
| "keyCode": "CP-401405", | ||
| "operationSetCode": "NuGetVerify", | ||
| "parameters": [], | ||
| "toolName": "sign", | ||
| "toolVersion": "1.0" | ||
| } | ||
| ] | ||
| SessionTimeout: '60' | ||
| MaxConcurrency: '50' | ||
| MaxRetryAttempts: '5' | ||
| PendingAnalysisWaitTimeoutMinutes: '5' | ||
| - stage: publish | ||
| dependsOn: build | ||
| condition: and(succeeded(), eq(variables.hidiPublishingEnabled, 'true'), startsWith(variables['Build.SourceBranch'], 'refs/tags/hidi-v2.')) | ||
| jobs: | ||
| - deployment: publish_hidi | ||
| templateContext: | ||
| type: releaseJob | ||
| isProduction: true | ||
| inputs: | ||
| - input: pipelineArtifact | ||
| artifactName: Hidi | ||
| targetPath: '$(Pipeline.Workspace)\hidi' | ||
| environment: nuget-org | ||
| strategy: | ||
| runOnce: | ||
| deploy: | ||
| steps: | ||
| - pwsh: | | ||
| $tag = '$(Build.SourceBranch)' -replace '^refs/tags/hidi-v', '' | ||
| if ([version]($tag -split '-')[0] -le [version]'2.12.2') { throw "Never republish the source migration baseline or an older hidi version." } | ||
| $package = "$(Pipeline.Workspace)\hidi\Microsoft.OpenApi.Hidi.$tag.nupkg" | ||
| if (-not (Test-Path $package)) { throw "Missing exact hidi package: $package" } | ||
| Write-Host "##vso[task.setvariable variable=HidiReleaseVersion]$tag" | ||
| displayName: Verify new hidi release version and exact package | ||
| - task: 1ES.PublishNuget@1 | ||
| displayName: Publish hidi NuGet tool | ||
| inputs: | ||
| packagesToPush: '$(Pipeline.Workspace)\hidi\Microsoft.OpenApi.Hidi.$(HidiReleaseVersion).nupkg' | ||
| nuGetFeedType: external | ||
| publishFeedCredentials: OpenAPI Nuget Connection | ||
| packageParentPath: '$(Pipeline.Workspace)\hidi' | ||
| - task: GitHubRelease@1 | ||
| displayName: Attach signed hidi release artifacts | ||
| inputs: | ||
| gitHubConnection: Github-MaggieKimani1 | ||
| action: edit | ||
| tagSource: userSpecifiedTag | ||
| tag: 'hidi-v$(HidiReleaseVersion)' | ||
| title: 'Hidi v$(HidiReleaseVersion)' | ||
| assets: | | ||
| $(Pipeline.Workspace)\hidi\Microsoft.OpenApi.Hidi.$(HidiReleaseVersion).nupkg | ||
| $(Pipeline.Workspace)\hidi\Microsoft.OpenApi.Hidi.exe | ||
| $(Pipeline.Workspace)\hidi\hidi-win-x64-$(HidiReleaseVersion).zip | ||
| addChangeLog: false | ||
| - deployment: publish_container | ||
| templateContext: | ||
| type: releaseJob | ||
| isProduction: true | ||
| environment: hidi-container | ||
| strategy: | ||
| runOnce: | ||
| deploy: | ||
| pool: | ||
| vmImage: ubuntu-latest | ||
| steps: | ||
| - checkout: self | ||
| - pwsh: | | ||
| $version = ([xml](Get-Content src/Microsoft.OpenApi.Hidi/Microsoft.OpenApi.Hidi.csproj)).Project.PropertyGroup.Version | ||
| if ('$(Build.SourceBranch)' -ne "refs/tags/hidi-v$version") { throw "Hidi tag does not match project version." } | ||
| if ([version]($version -split '-')[0] -le [version]'2.12.2') { throw "Do not republish the migration baseline or an older hidi version." } | ||
| Write-Host "##vso[task.setvariable variable=HidiReleaseVersion]$version" | ||
| displayName: Read independent hidi version | ||
| - task: AzureCLI@2 | ||
| displayName: Publish multi-platform hidi image | ||
| inputs: | ||
| azureSubscription: ACR Images Push Service Connection | ||
| scriptType: bash | ||
| scriptLocation: inlineScript | ||
| inlineScript: | | ||
| set -euo pipefail | ||
| az acr login --name msgraphprodregistry | ||
| docker run --privileged --rm tonistiigi/binfmt --install all | ||
| docker buildx create --use | ||
| docker buildx build --platform linux/amd64,linux/arm64/v8 \ | ||
| --tag "msgraphprodregistry.azurecr.io/public/openapi/hidi:$(HidiReleaseVersion)" \ | ||
| --tag "msgraphprodregistry.azurecr.io/public/openapi/hidi:latest" \ | ||
| --push . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| **/bin | ||
| **/obj | ||
| **/artifacts | ||
| .git | ||
| .vs | ||
| .idea | ||
| test | ||
| **/*.snk | ||
| !tool/Microsoft.OpenApi.Hidi.public.snk | ||
| !tool/Microsoft.OpenApi.OData.public.snk |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.