Run IdentityModel tests once per day in Helix-Matrix (#55296)

This commit is contained in:
William Godbe 2024-04-22 19:54:04 -06:00 коммит произвёл GitHub
Родитель d3f5b217e5
Коммит 7bba81ee8a
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 15 добавлений и 3 удалений

Просмотреть файл

@ -8,6 +8,12 @@ schedules:
include:
- main
always: true
- cron: "0 18 * * *"
branches:
include:
- main
always: true
displayName: IdentityModel test job
- cron: "0 9 * * *"
branches:
include:
@ -19,6 +25,8 @@ schedules:
variables:
- name: _UseHelixOpenQueues
value: ${{ ne(variables['System.TeamProject'], 'internal') }}
- name: _IsIdentityModelTestJob
value: ${{ eq(variables['Build.CronSchedule.DisplayName'], 'IdentityModel test job') }}
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
- group: DotNet-HelixApi-Access
- template: /eng/common/templates/variables/pool-providers.yml
@ -31,14 +39,17 @@ jobs:
agentOs: Windows
timeoutInMinutes: 300
steps:
- ${{ if eq(variables['Build.CronSchedule.DisplayName'], 'IdentityModel test job') }}:
- script: "echo ##vso[build.addbuildtag]identitymodel-test"
displayName: 'Set CI identitymodel-test tag'
# Build the shared framework
- script: ./eng/build.cmd -ci -prepareMachine -nativeToolsOnMachine -nobl -all -pack -arch x64
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
/p:CrossgenOutput=false /p:IsIdentityModelTestJob=$(_IsIdentityModelTestJob) /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
displayName: Build shared fx
# -noBuildRepoTasks -noBuildNative -noBuild to avoid repeating work done in the previous step.
- script: .\eng\build.cmd -ci -prepareMachine -nobl -all -noBuildRepoTasks -noBuildNative -noBuild -test
-projects eng\helix\helix.proj /p:IsHelixJob=true
/p:CrossgenOutput=false /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
/p:CrossgenOutput=false /p:IsIdentityModelTestJob=$(_IsIdentityModelTestJob) /p:ASPNETCORE_TEST_LOG_DIR=artifacts/log
displayName: Run build.cmd helix target
env:
HelixApiAccessToken: $(HelixApiAccessToken) # Needed for internal queues

Просмотреть файл

@ -11,7 +11,8 @@
<AspNetCorePatchVersion>0</AspNetCorePatchVersion>
<PreReleaseVersionIteration>4</PreReleaseVersionIteration>
<ValidateBaseline>true</ValidateBaseline>
<IdentityModelVersion>7.4.1</IdentityModelVersion>
<IdentityModelVersion Condition="'$(IsIdentityModelTestJob)' != 'true'">7.4.1</IdentityModelVersion>
<IdentityModelVersion Condition="'$(IsIdentityModelTestJob)' == 'true'">7.*</IdentityModelVersion>
<!--
When StabilizePackageVersion is set to 'true', this branch will produce stable outputs for 'Shipping' packages
-->