Skip to content

Commit fc81266

Browse files
committed
Merge branch 'main' into fix/56331
2 parents 18e30b9 + 4ce2db7 commit fc81266

File tree

2,184 files changed

+275806
-100541
lines changed

Some content is hidden

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

2,184 files changed

+275806
-100541
lines changed

.azure/pipelines/azure-pipelines-mirror-within-azdo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ trigger:
33
batch: true
44
branches:
55
include:
6-
- internal/release/6.0
6+
- internal/release/8.0
77

88
parameters:
99
# Run the pipeline manually (usually disallowed)

.azure/pipelines/ci-public.yml

Lines changed: 53 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ stages:
101101
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
102102
displayName: Run eng/scripts/CodeCheck.ps1
103103
artifacts:
104-
- name: Code_Check_Logs
104+
- name: Code_Check_Logs_Attempt_$(System.JobAttempt)
105105
path: artifacts/log/
106106
publishOnError: true
107107
includeForks: true
@@ -227,7 +227,7 @@ stages:
227227
displayName: Build ARM64 Installers
228228

229229
artifacts:
230-
- name: Windows_Logs
230+
- name: Windows_Logs_Attempt_$(System.JobAttempt)
231231
path: artifacts/log/
232232
publishOnError: true
233233
includeForks: true
@@ -259,7 +259,7 @@ stages:
259259
$(_PublishArgs)
260260
$(_InternalRuntimeDownloadArgs)
261261
artifacts:
262-
- name: MacOS_arm64_Logs
262+
- name: MacOS_arm64_Logs_Attempt_$(System.JobAttempt)
263263
path: artifacts/log/
264264
publishOnError: true
265265
includeForks: true
@@ -289,7 +289,7 @@ stages:
289289
$(_PublishArgs)
290290
$(_InternalRuntimeDownloadArgs)
291291
artifacts:
292-
- name: MacOS_x64_Logs
292+
- name: MacOS_x64_Logs_Attempt_$(System.JobAttempt)
293293
path: artifacts/log/
294294
publishOnError: true
295295
includeForks: true
@@ -351,7 +351,7 @@ stages:
351351
displayName: Build RPM installers
352352
target: rpmpkg
353353
artifacts:
354-
- name: Linux_x64_Logs
354+
- name: Linux_x64_Logs_Attempt_$(System.JobAttempt)
355355
path: artifacts/log/
356356
publishOnError: true
357357
includeForks: true
@@ -381,7 +381,7 @@ stages:
381381
$(_PublishArgs)
382382
$(_InternalRuntimeDownloadArgs)
383383
artifacts:
384-
- name: Linux_arm_Logs
384+
- name: Linux_arm_Logs_Attempt_$(System.JobAttempt)
385385
path: artifacts/log/
386386
publishOnError: true
387387
includeForks: true
@@ -428,7 +428,7 @@ stages:
428428
displayName: Build RPM installers
429429
target: rpmpkg
430430
artifacts:
431-
- name: Linux_arm64_Logs
431+
- name: Linux_arm64_Logs_Attempt_$(System.JobAttempt)
432432
path: artifacts/log/
433433
publishOnError: true
434434
includeForks: true
@@ -459,10 +459,9 @@ stages:
459459
$(_BuildArgs)
460460
$(_PublishArgs)
461461
$(_InternalRuntimeDownloadArgs)
462-
installNodeJs: false
463462
disableComponentGovernance: true
464463
artifacts:
465-
- name: Linux_musl_x64_Logs
464+
- name: Linux_musl_x64_Logs_Attempt_$(System.JobAttempt)
466465
path: artifacts/log/
467466
publishOnError: true
468467
includeForks: true
@@ -495,7 +494,7 @@ stages:
495494
$(_PublishArgs)
496495
$(_InternalRuntimeDownloadArgs)
497496
artifacts:
498-
- name: Linux_musl_arm_Logs
497+
- name: Linux_musl_arm_Logs_Attempt_$(System.JobAttempt)
499498
path: artifacts/log/
500499
publishOnError: true
501500
includeForks: true
@@ -528,7 +527,7 @@ stages:
528527
$(_PublishArgs)
529528
$(_InternalRuntimeDownloadArgs)
530529
artifacts:
531-
- name: Linux_musl_arm64_Logs
530+
- name: Linux_musl_arm64_Logs_Attempt_$(System.JobAttempt)
532531
path: artifacts/log/
533532
publishOnError: true
534533
includeForks: true
@@ -557,14 +556,18 @@ stages:
557556
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
558557
displayName: Setup IISExpress test certificates and schema
559558
artifacts:
560-
- name: Windows_Test_Logs
559+
- name: Windows_Test_Logs_Attempt_$(System.JobAttempt)
561560
path: artifacts/log/
562561
publishOnError: true
563562
includeForks: true
564-
- name: Windows_Test_Results
563+
- name: Windows_Test_Results_Attempt_$(System.JobAttempt)
565564
path: artifacts/TestResults/
566565
publishOnError: true
567566
includeForks: true
567+
- name: Minified_JS_Files
568+
path: src/Components/Web.JS/dist/Release/
569+
publishOnError: true
570+
includeForks: true
568571

569572
- template: jobs/default-build.yml
570573
parameters:
@@ -578,11 +581,11 @@ stages:
578581
- bash: "./eng/scripts/install-nginx-mac.sh"
579582
displayName: Installing Nginx
580583
artifacts:
581-
- name: MacOS_Test_Logs
584+
- name: MacOS_Test_Logs_Attempt_$(System.JobAttempt)
582585
path: artifacts/log/
583586
publishOnError: true
584587
includeForks: true
585-
- name: MacOS_Test_Results
588+
- name: MacOS_Test_Results_Attempt_$(System.JobAttempt)
586589
path: artifacts/TestResults/
587590
publishOnError: true
588591
includeForks: true
@@ -601,11 +604,11 @@ stages:
601604
- bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
602605
displayName: Increase inotify limit
603606
artifacts:
604-
- name: Linux_Test_Logs
607+
- name: Linux_Test_Logs_Attempt_$(System.JobAttempt)
605608
path: artifacts/log/
606609
publishOnError: true
607610
includeForks: true
608-
- name: Linux_Test_Results
611+
- name: Linux_Test_Results_Attempt_$(System.JobAttempt)
609612
path: artifacts/TestResults/
610613
publishOnError: true
611614
includeForks: true
@@ -632,7 +635,39 @@ stages:
632635
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
633636

634637
artifacts:
635-
- name: Helix_logs
638+
- name: Helix_Logs_Attempt_$(System.JobAttempt)
639+
path: artifacts/log/
640+
publishOnError: true
641+
includeForks: true
642+
643+
# Local development validation
644+
- template: jobs/default-build.yml
645+
parameters:
646+
jobName: Local_Windows
647+
jobDisplayName: 'Test: Windows local development validation'
648+
agentOs: Windows
649+
timeoutInMinutes: 240
650+
steps:
651+
- script: git submodule update --init
652+
displayName: Update submodules
653+
- script: ./restore.cmd
654+
displayName: Run restore.cmd
655+
- script: npm run build
656+
displayName: Build JS
657+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
658+
displayName: Build (Debug)
659+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Release
660+
displayName: Build (Release)
661+
- script: ./src/ProjectTemplates/build.cmd
662+
-test
663+
-NoRestore
664+
-NoBuild
665+
-NoBuildDeps
666+
-configuration Release
667+
displayName: Run project template tests
668+
669+
artifacts:
670+
- name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt)
636671
path: artifacts/log/
637672
publishOnError: true
638673
includeForks: true

.azure/pipelines/ci.yml

Lines changed: 54 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ variables:
9696
value: /bl:artifacts/log/Release/Build.Installers.binlog
9797
- name: WindowsArm64InstallersLogArgs
9898
value: /bl:artifacts/log/Release/Build.Installers.Arm64.binlog
99-
- group: DotNetBuilds storage account read tokens
10099
- name: _InternalRuntimeDownloadArgs
101100
value: -RuntimeSourceFeed https://dotnetbuilds.blob.core.windows.net/internal
102101
-RuntimeSourceFeedKey $(dotnetbuilds-internal-container-read-token-base64)
@@ -145,6 +144,10 @@ extends:
145144
os: windows
146145
spotBugs:
147146
enabled: false
147+
policheck:
148+
enabled: true
149+
tsa:
150+
enabled: true
148151
containers:
149152
alpine319WithNode:
150153
image: mcr.microsoft.com/dotnet-buildtools/prereqs:alpine-3.19-WithNode
@@ -167,7 +170,7 @@ extends:
167170
- powershell: ./eng/scripts/CodeCheck.ps1 -ci $(_InternalRuntimeDownloadArgs)
168171
displayName: Run eng/scripts/CodeCheck.ps1
169172
artifacts:
170-
- name: Code_Check_Logs
173+
- name: Code_Check_Logs_Attempt_$(System.JobAttempt)
171174
path: artifacts/log/
172175
publishOnError: true
173176
includeForks: true
@@ -293,7 +296,7 @@ extends:
293296
displayName: Build ARM64 Installers
294297

295298
artifacts:
296-
- name: Windows_Logs
299+
- name: Windows_Logs_Attempt_$(System.JobAttempt)
297300
path: artifacts/log/
298301
publishOnError: true
299302
includeForks: true
@@ -325,7 +328,7 @@ extends:
325328
$(_PublishArgs)
326329
$(_InternalRuntimeDownloadArgs)
327330
artifacts:
328-
- name: MacOS_arm64_Logs
331+
- name: MacOS_arm64_Logs_Attempt_$(System.JobAttempt)
329332
path: artifacts/log/
330333
publishOnError: true
331334
includeForks: true
@@ -355,7 +358,7 @@ extends:
355358
$(_PublishArgs)
356359
$(_InternalRuntimeDownloadArgs)
357360
artifacts:
358-
- name: MacOS_x64_Logs
361+
- name: MacOS_x64_Logs_Attempt_$(System.JobAttempt)
359362
path: artifacts/log/
360363
publishOnError: true
361364
includeForks: true
@@ -417,7 +420,7 @@ extends:
417420
displayName: Build RPM installers
418421
target: rpmpkg
419422
artifacts:
420-
- name: Linux_x64_Logs
423+
- name: Linux_x64_Logs_Attempt_$(System.JobAttempt)
421424
path: artifacts/log/
422425
publishOnError: true
423426
includeForks: true
@@ -447,7 +450,7 @@ extends:
447450
$(_PublishArgs)
448451
$(_InternalRuntimeDownloadArgs)
449452
artifacts:
450-
- name: Linux_arm_Logs
453+
- name: Linux_arm_Logs_Attempt_$(System.JobAttempt)
451454
path: artifacts/log/
452455
publishOnError: true
453456
includeForks: true
@@ -494,7 +497,7 @@ extends:
494497
displayName: Build RPM installers
495498
target: rpmpkg
496499
artifacts:
497-
- name: Linux_arm64_Logs
500+
- name: Linux_arm64_Logs_Attempt_$(System.JobAttempt)
498501
path: artifacts/log/
499502
publishOnError: true
500503
includeForks: true
@@ -525,10 +528,9 @@ extends:
525528
$(_BuildArgs)
526529
$(_PublishArgs)
527530
$(_InternalRuntimeDownloadArgs)
528-
installNodeJs: false
529531
disableComponentGovernance: true
530532
artifacts:
531-
- name: Linux_musl_x64_Logs
533+
- name: Linux_musl_x64_Logs_Attempt_$(System.JobAttempt)
532534
path: artifacts/log/
533535
publishOnError: true
534536
includeForks: true
@@ -561,7 +563,7 @@ extends:
561563
$(_PublishArgs)
562564
$(_InternalRuntimeDownloadArgs)
563565
artifacts:
564-
- name: Linux_musl_arm_Logs
566+
- name: Linux_musl_arm_Logs_Attempt_$(System.JobAttempt)
565567
path: artifacts/log/
566568
publishOnError: true
567569
includeForks: true
@@ -594,7 +596,7 @@ extends:
594596
$(_PublishArgs)
595597
$(_InternalRuntimeDownloadArgs)
596598
artifacts:
597-
- name: Linux_musl_arm64_Logs
599+
- name: Linux_musl_arm64_Logs_Attempt_$(System.JobAttempt)
598600
path: artifacts/log/
599601
publishOnError: true
600602
includeForks: true
@@ -623,11 +625,11 @@ extends:
623625
- powershell: "& ./src/Servers/IIS/tools/UpdateIISExpressCertificate.ps1; & ./src/Servers/IIS/tools/update_schema.ps1"
624626
displayName: Setup IISExpress test certificates and schema
625627
artifacts:
626-
- name: Windows_Test_Logs
628+
- name: Windows_Test_Logs_Attempt_$(System.JobAttempt)
627629
path: artifacts/log/
628630
publishOnError: true
629631
includeForks: true
630-
- name: Windows_Test_Results
632+
- name: Windows_Test_Results_Attempt_$(System.JobAttempt)
631633
path: artifacts/TestResults/
632634
publishOnError: true
633635
includeForks: true
@@ -644,11 +646,11 @@ extends:
644646
- bash: "./eng/scripts/install-nginx-mac.sh"
645647
displayName: Installing Nginx
646648
artifacts:
647-
- name: MacOS_Test_Logs
649+
- name: MacOS_Test_Logs_Attempt_$(System.JobAttempt)
648650
path: artifacts/log/
649651
publishOnError: true
650652
includeForks: true
651-
- name: MacOS_Test_Results
653+
- name: MacOS_Test_Results_Attempt_$(System.JobAttempt)
652654
path: artifacts/TestResults/
653655
publishOnError: true
654656
includeForks: true
@@ -667,11 +669,11 @@ extends:
667669
- bash: "echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p"
668670
displayName: Increase inotify limit
669671
artifacts:
670-
- name: Linux_Test_Logs
672+
- name: Linux_Test_Logs_Attempt_$(System.JobAttempt)
671673
path: artifacts/log/
672674
publishOnError: true
673675
includeForks: true
674-
- name: Linux_Test_Results
676+
- name: Linux_Test_Results_Attempt_$(System.JobAttempt)
675677
path: artifacts/TestResults/
676678
publishOnError: true
677679
includeForks: true
@@ -698,11 +700,44 @@ extends:
698700
SYSTEM_ACCESSTOKEN: $(System.AccessToken) # We need to set this env var to publish helix results to Azure Dev Ops
699701

700702
artifacts:
701-
- name: Helix_logs
703+
- name: Helix_Logs_Attempt_$(System.JobAttempt)
702704
path: artifacts/log/
703705
publishOnError: true
704706
includeForks: true
705707

708+
# Local development validation
709+
- ${{ if in(variables['Build.Reason'], 'PullRequest', 'Manual') }}:
710+
- template: .azure/pipelines/jobs/default-build.yml@self
711+
parameters:
712+
jobName: Local_Windows
713+
jobDisplayName: 'Test: Windows local development validation'
714+
agentOs: Windows
715+
timeoutInMinutes: 240
716+
steps:
717+
- script: git submodule update --init
718+
displayName: Update submodules
719+
- script: ./restore.cmd
720+
displayName: Run restore.cmd
721+
- script: npm run build
722+
displayName: Build JS
723+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Debug
724+
displayName: Build (Debug)
725+
- script: ./eng/build.cmd -all -noBuildJava -pack -c Release
726+
displayName: Build (Release)
727+
- script: ./src/ProjectTemplates/build.cmd
728+
-test
729+
-NoRestore
730+
-NoBuild
731+
-NoBuildDeps
732+
-configuration Release
733+
displayName: Run project template tests
734+
735+
artifacts:
736+
- name: Local_Windows_x64_Logs_Attempt_$(System.JobAttempt)
737+
path: artifacts/log/
738+
publishOnError: true
739+
includeForks: true
740+
706741
# Source build
707742
- template: /eng/common/templates-official/job/source-build.yml@self
708743
parameters:

0 commit comments

Comments
 (0)