Skip to content

Commit f43286e

Browse files
Mahdiglnclaude
andcommitted
chore: merge microsoft/main and resolve PublicAPI.Unshipped.txt conflict
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2 parents 31fc5d2 + afd4967 commit f43286e

119 files changed

Lines changed: 3253 additions & 5368 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.azure-pipelines/ci-build.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,12 +100,16 @@ extends:
100100
arguments: '--configuration $(BuildConfiguration) --no-incremental'
101101

102102
# Run the Unit test
103-
- task: DotNetCoreCLI@2
103+
- pwsh: |
104+
dotnet test "$(Build.SourcesDirectory)\Microsoft.OpenApi.slnx" `
105+
--configuration $(BuildConfiguration) `
106+
--no-build `
107+
-- `
108+
--report-azdo `
109+
--publish-azdo-test-results `
110+
--results-directory="$(Agent.TempDirectory)\TestResults" `
111+
--minimum-expected-tests 1
104112
displayName: 'test'
105-
inputs:
106-
command: test
107-
projects: '$(Build.SourcesDirectory)\Microsoft.OpenApi.slnx'
108-
arguments: '--configuration $(BuildConfiguration) --no-build'
109113
110114
- task: EsrpCodeSigning@6
111115
displayName: 'ESRP CodeSigning binaries'
@@ -287,7 +291,7 @@ extends:
287291
vmImage: ubuntu-latest
288292
steps:
289293
- pwsh: |
290-
$fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.Workbench.*.nupkg"
294+
$fileNames = "$(Pipeline.Workspace)/Microsoft.OpenApi.Hidi.*.nupkg", "$(Pipeline.Workspace)/Microsoft.OpenApi.YamlReader.*.nupkg"
291295
foreach($fileName in $fileNames) {
292296
if(Test-Path $fileName) {
293297
Remove-Item $fileName -Verbose

.github/dependabot.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ updates:
55
open-pull-requests-limit: 10
66
schedule:
77
interval: daily
8+
groups:
9+
codeql:
10+
patterns:
11+
- github/codeql-action*
812
cooldown:
913
default-days: 7
1014
- package-ecosystem: nuget
@@ -16,9 +20,12 @@ updates:
1620
MicrosoftExtensions:
1721
patterns:
1822
- Microsoft.Extensions.*
19-
coverlet:
23+
testing:
2024
patterns:
2125
- coverlet.*
26+
- Microsoft.NET.Test.Sdk
27+
- Microsoft.Testing.*
28+
- xunit.*
2229
cooldown:
2330
default-days: 7
2431
- package-ecosystem: dotnet-sdk

.github/workflows/ci-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
id: run_unit_tests
4646
shell: pwsh
4747
run: |
48-
dotnet test Microsoft.OpenApi.slnx -c Release --no-build -v n --collect:"XPlat Code Coverage"
48+
dotnet test --solution Microsoft.OpenApi.slnx -c Release -v n --results-directory=./TestResults --coverlet --coverlet-output-format cobertura --report-gh
4949
5050
- name: Install report generator
5151
shell: pwsh
@@ -55,7 +55,7 @@ jobs:
5555
- name: Generate coverage report
5656
shell: pwsh
5757
run: |
58-
reportgenerator -reports:**/coverage.cobertura.xml -targetdir:./reports/coverage -reporttypes:"Html;MarkdownSummaryGithub;Cobertura"
58+
reportgenerator -reports:./TestResults/**/coverage.cobertura.*.xml -targetdir:./reports/coverage -reporttypes:"Html;MarkdownSummaryGithub;Cobertura"
5959
6060
- name: Add coverage to job summary
6161
shell: bash

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Initialize CodeQL
3636
id: init_codeql
37-
uses: github/codeql-action/init@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
37+
uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
3838
with:
3939
queries: security-and-quality
4040

@@ -54,6 +54,6 @@ jobs:
5454
5555
- name: Perform CodeQL Analysis
5656
id: analyze_codeql
57-
uses: github/codeql-action/analyze@5595ccaf912efad79be6eef63a5619ff05969be3 # v4.37.6
57+
uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938 # v4.37.9
5858

5959
# Built with ❤ by [Pipeline Foundation](https://pipeline.foundation)

.github/workflows/promote-shipped-apis.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- support/v2
88
workflow_dispatch:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
1014
jobs:
1115
promote-apis:
1216
runs-on: ubuntu-latest
@@ -20,6 +24,15 @@ jobs:
2024
with:
2125
client-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
2226
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
27+
permission-contents: write
28+
permission-pull-requests: write
29+
30+
- name: Get GitHub App user ID
31+
id: get-user-id
32+
shell: bash
33+
env:
34+
GH_TOKEN: ${{ steps.app-token.outputs.token }}
35+
run: echo "user-id=$(gh api "/users/${{ steps.app-token.outputs.app-slug }}[bot]" --jq .id)" >> "$GITHUB_OUTPUT"
2336

2437
- name: Checkout code
2538
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -32,9 +45,9 @@ jobs:
3245
env:
3346
GH_TOKEN: ${{ steps.app-token.outputs.token }}
3447
run: |
35-
git config --global user.name "github-actions[bot]"
36-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
37-
git config --global url."https://$($env:GH_TOKEN)@github.com/".insteadOf "https://github.com/"
48+
git config --global user.name "${{ steps.app-token.outputs.app-slug }}[bot]"
49+
git config --global user.email "${{ steps.get-user-id.outputs.user-id }}+${{ steps.app-token.outputs.app-slug }}[bot]@users.noreply.github.com"
50+
git config --global url."https://x-access-token:${{ steps.app-token.outputs.token }}@github.com/".insteadOf "https://github.com/"
3851
3952
- name: Check for existing PR
4053
id: check_pr

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ jobs:
3535
runs-on: windows-latest
3636
steps:
3737
- name: Set up JDK 17
38-
uses: actions/setup-java@b6effb05e454b25005698d916606bdc6ffcbf961 # v5.7.0
38+
uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0
3939
with:
40-
distribution: 'adopt'
40+
distribution: 'temurin'
4141
java-version: 17
4242
- name: Setup .NET 8
4343
uses: actions/setup-dotnet@a98b56852c35b8e3190ac28c8c2271da59106c68 # v6.0.0
@@ -61,12 +61,10 @@ jobs:
6161
- name: Build and analyze
6262
env:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
64-
CollectCoverage: true
65-
CoverletOutputFormat: 'opencover' # https://github.com/microsoft/vstest/issues/4014#issuecomment-1307913682
6664
shell: pwsh
6765
run: |
68-
dotnet tool run dotnet-sonarscanner begin /k:"microsoft_OpenAPI.NET" /o:"microsoft" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="test/**/coverage.opencover.xml"
66+
dotnet tool run dotnet-sonarscanner begin /k:"microsoft_OpenAPI.NET" /o:"microsoft" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover*.xml"
6967
dotnet workload restore
7068
dotnet build
71-
dotnet test Microsoft.OpenApi.slnx --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=opencover
72-
dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
69+
dotnet test --solution Microsoft.OpenApi.slnx --verbosity normal --coverlet --coverlet-output-format opencover --report-gh
70+
dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ nCrunchTemp_*
127127
*.mm.*
128128
AutoTest.Net/
129129

130-
# Web workbench (sass)
130+
# Sass cache
131131
.sass-cache/
132132

133133
# Installshield output folder

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "3.10.0"
2+
".": "3.10.2"
33
}

.vscode/launch.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,7 @@
4949
"console": "internalConsole",
5050
"stopAtEntry": false,
5151
"requireExactSource": false,
52-
},
53-
{
54-
// Use IntelliSense to find out which attributes exist for C# debugging
55-
// Use hover for the description of the existing attributes
56-
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/main/debugger-launchjson.md
57-
"name": "Launch Workbench",
58-
"type": "coreclr",
59-
"request": "launch",
60-
"preLaunchTask": "build",
61-
// If you have changed target frameworks, make sure to update the program path.
62-
"program": "${workspaceFolder}/src/Microsoft.OpenApi.WorkBench/bin/Debug/net8.0-windows/Microsoft.OpenApi.Workbench.exe",
63-
"args": [],
64-
"cwd": "${workspaceFolder}/src/Microsoft.OpenApi.Workbench",
65-
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
66-
"console": "internalConsole",
67-
"stopAtEntry": false
68-
},
52+
},
6953
{
7054
"name": ".NET Core Attach",
7155
"type": "coreclr",

.vscode/tasks.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@
4343
"/consoleloggerparameters:NoSummary"
4444
],
4545
"problemMatcher": "$msCompile"
46-
},
47-
{
48-
"label": "workbench",
49-
"type": "shell",
50-
"command": "src/Microsoft.OpenApi.WorkBench/bin/Debug/Microsoft.OpenApi.WorkBench.exe",
51-
"problemMatcher": []
5246
}
5347
]
5448
}

0 commit comments

Comments
 (0)