Skip to content

Commit c8c2f1c

Browse files
committed
Merge in 'release/8.0' changes
2 parents ba6b2a3 + e79b530 commit c8c2f1c

File tree

50 files changed

+1170
-517
lines changed

Some content is hidden

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

50 files changed

+1170
-517
lines changed

.azure/pipelines/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ extends:
135135
sdl:
136136
sourceAnalysisPool:
137137
name: NetCore1ESPool-Svc-Internal
138-
image: 1es-windows-2022-pt
138+
image: 1es-windows-2022
139139
os: windows
140140
spotBugs:
141141
enabled: false

.azure/pipelines/helix-matrix.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ schedules:
1212
branches:
1313
include:
1414
- release/6.0
15-
- release/7.0
1615
- release/8.0
1716
always: false
1817

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
# We only want to run IdentityModel matrix on main
2+
pr: none
3+
trigger: none
4+
schedules:
5+
# Cron timezone is UTC.
6+
- cron: "0 */12 * * *"
7+
branches:
8+
include:
9+
- release/8.0
10+
always: true
11+
12+
variables:
13+
- name: _UseHelixOpenQueues
14+
value: false
15+
- group: DotNet-HelixApi-Access
16+
- template: /eng/common/templates-official/variables/pool-providers.yml@self
17+
18+
resources:
19+
repositories:
20+
# Repo: 1ESPipelineTemplates/1ESPipelineTemplates
21+
- repository: 1esPipelines
22+
type: git
23+
name: 1ESPipelineTemplates/1ESPipelineTemplates
24+
ref: refs/tags/release
25+
26+
extends:
27+
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
28+
parameters:
29+
sdl:
30+
sourceAnalysisPool:
31+
name: NetCore1ESPool-Svc-Internal
32+
image: 1es-windows-2022
33+
os: windows
34+
codeql:
35+
compiled:
36+
enabled: false
37+
justificationForDisabling: 'This is a test-only pipeline. The same product code is already scanned in the main pipeline (aspnetcore-ci)'
38+
39+
stages:
40+
- stage: build
41+
displayName: Build
42+
jobs:
43+
- template: .azure/pipelines/jobs/default-build.yml@self
44+
parameters:
45+
jobName: IdentityModel_helix_matrix_x64
46+
jobDisplayName: 'Tests: IdentityModel nightlies helix full matrix x64'
47+
agentOs: Windows
48+
timeoutInMinutes: 300
49+
steps:
50+
- task: NuGetAuthenticate@1
51+
inputs:
52+
forceReinstallCredentialProvider: true
53+
- task: NuGetCommand@2
54+
displayName: Install Microsoft.IdentityModel.Logging
55+
inputs:
56+
command: 'custom'
57+
arguments: 'install Microsoft.IdentityModel.Logging
58+
-Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
59+
-DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
60+
- task: NuGetCommand@2
61+
displayName: Install Microsoft.IdentityModel.Protocols.OpenIdConnect
62+
inputs:
63+
command: 'custom'
64+
arguments: 'install Microsoft.IdentityModel.Protocols.OpenIdConnect
65+
-Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
66+
-DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
67+
- task: NuGetCommand@2
68+
displayName: Install Microsoft.IdentityModel.Protocols.WsFederation
69+
inputs:
70+
command: 'custom'
71+
arguments: 'install Microsoft.IdentityModel.Protocols.WsFederation
72+
-Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
73+
-DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
74+
- task: NuGetCommand@2
75+
displayName: System.IdentityModel.Tokens.Jwt
76+
inputs:
77+
command: 'custom'
78+
arguments: 'install System.IdentityModel.Tokens.Jwt
79+
-Source https://pkgs.dev.azure.com/dnceng/internal/_packaging/identitymodel-nightlies/nuget/v3/index.json
80+
-DependencyVersion Highest -OutputDirectory $(Build.StagingDirectory) -PreRelease'
81+
- task: PowerShell@2
82+
displayName: Add IdentityModel feel to NuGet.config
83+
inputs:
84+
filePath: $(Build.SourcesDirectory)/eng/scripts/SetupIdentitySources.ps1
85+
arguments: -ConfigFile $(Build.SourcesDirectory)/NuGet.config -IdentityModelPackageSource $(Build.StagingDirectory)
86+
# Build the shared framework
87+
- script: ./eng/build.cmd -ci -nobl -all -pack -arch x64
88+
/p:CrossgenOutput=false /p:IsIdentityModelTestJob=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
89+
displayName: Build shared fx
90+
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
91+
- script: .\eng\build.cmd -ci -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
92+
-projects eng\helix\helix.proj /p:IsHelixJob=true /p:RunTemplateTests=false
93+
/p:CrossgenOutput=false /p:IsIdentityModelTestJob=true /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
94+
displayName: Run build.cmd helix target
95+
env:
96+
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues
97+
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
98+
artifacts:
99+
- name: Helix_logs
100+
path: artifacts/log/
101+
publishOnError: true

Directory.Build.props

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
<!-- Ensure API docs are available. -->
118118
<NoWarn>$(NoWarn.Replace('1591', ''))</NoWarn>
119119
<NoWarn Condition=" '$(BuildingInsideVisualStudio)' == 'true' ">$(NoWarn);0105</NoWarn>
120+
<!-- Allow prerelease dependencies in stable packages when we're running the IdentityModel nightly tests -->
121+
<NoWarn Condition=" '$(IsIdentityModelTestJob)' == 'true' ">$(NoWarn);NU5104</NoWarn>
120122

121123
<!-- For local builds, don't make missing XML docs a fatal build error, but still surface so we have visibility into undocumented APIs. -->
122124
<WarningsNotAsErrors Condition=" '$(ContinuousIntegrationBuild)' != 'true' ">$(WarningsNotAsErrors);CS1591</WarningsNotAsErrors>

0 commit comments

Comments
 (0)