Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
attempt to delete PR script
  • Loading branch information
m-redding committed Dec 10, 2025
commit 60977aefa5c0268ba41e25ae81b2559f02a78e9c
28 changes: 23 additions & 5 deletions eng/pipelines/templates/steps/aot-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,29 @@ steps:
- task: Powershell@2
displayName: Check for AOT compatibility regressions for PR
inputs:
targetType: filepath
filePath: $(Build.SourcesDirectory)/eng/scripts/compatibility/Check-AOT-Compatibility-For-PR.ps1
arguments: >-
-PackageInfoFolder "${{ parameters.PackageInfoFolder }}"
-ProjectNames "$(ProjectNames)"
targetType: inline
script: |
$packageInfos = Get-ChildItem -Path "${{ parameters.PackageInfoFolder }}" -Filter "*.json" -File `
| ForEach-Object { Get-Content -Raw $_.FullName | ConvertFrom-Json }

$failedAotChecks = $false
foreach ($package in $packageInfos) {
$packagePath = "$($package.DirectoryPath)/src/$($package.ArtifactName).csproj"

Write-Host "Running Check-AOT-Compatibility.ps1 for Package: $($package.ArtifactName)"
Write-Host "Package Path: $packagePath"

& "$(Build.SourcesDirectory)/eng/scripts/compatibility/Check-AOT-Compatibility.ps1" -PackagePath $packagePath

if ($LASTEXITCODE -ne 0) {
$failedAotChecks = $true
}
}

if ($failedAotChecks) {
Write-Error "AOT compatibility check failed for one or more packages."
exit 1
}
workingDirectory: $(Build.SourcesDirectory)/eng/scripts/compatibility
- ${{ else }}:
- ${{ each artifact in parameters.Artifacts }}:
Expand Down
55 changes: 0 additions & 55 deletions eng/scripts/compatibility/Check-AOT-Compatibility-For-PR.ps1

This file was deleted.

1 change: 0 additions & 1 deletion eng/scripts/compatibility/Check-AOT-Compatibility.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ $RepoRoot = Resolve-Path (Join-Path $PSScriptRoot .. .. ..)
$ProjectPath = Join-Path $RepoRoot $PackagePath
$PackageName = [System.IO.Path]::GetFileNameWithoutExtension($PackagePath)

# Get the property directly from the project file - replicating what the target does
$output = dotnet msbuild -getProperty:AotCompatOptOut "$ProjectPath"

$aotOptOut = $output.Trim() -eq "true"
Expand Down
Loading