Skip to content

Commit

Permalink
[APIScan] Scan extra symbols and update parameters (#8812)
Browse files Browse the repository at this point in the history
Updates the task parameters for API Scan to better match those used for
VS scanning, which should allow us to only have to maintain one SEL.

Additional symbols files from the latest binutils package are also now
included.
  • Loading branch information
pjcollins authored Apr 3, 2024
1 parent 6d2a4bb commit 8037c1f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
17 changes: 11 additions & 6 deletions build-tools/automation/azure-pipelines-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ stages:
timeoutInMinutes: 480
workspace:
clean: all
variables:
- name: ApiScanSoftwareName
value: VS
- name: ApiScanSoftwareVersion
value: 17.10
steps:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
Expand All @@ -317,21 +322,21 @@ stages:
Contents: |
$(System.DefaultWorkingDirectory)\bin\$(XA.Build.Configuration)\dotnet\packs\Microsoft.Android*\**\?(*.dll|*.exe|*.pdb)
$(System.DefaultWorkingDirectory)\binutils-pdb\*.pdb
TargetFolder: $(Build.StagingDirectory)\apiscan
TargetFolder: $(Agent.TempDirectory)\T
OverWrite: true
flattenFolders: true

- pwsh: Get-ChildItem -Path "$(Build.StagingDirectory)\apiscan" -Recurse
- pwsh: Get-ChildItem -Path "$(Agent.TempDirectory)\T" -Recurse
displayName: List Files for APIScan

### Run latest version of APIScan listed at https://www.1eswiki.com/wiki/APIScan_Build_Task
- task: APIScan@2
displayName: Run APIScan
inputs:
softwareFolder: $(Build.StagingDirectory)\apiscan
symbolsFolder: 'SRV*http://symweb;$(Build.StagingDirectory)\apiscan'
softwareName: $(ApiScanName)
softwareVersionNum: $(Build.SourceBranchName)-$(Build.SourceVersion)$(System.JobAttempt)
softwareFolder: $(Agent.TempDirectory)\T
symbolsFolder: 'SRV*http://symweb;$(Agent.TempDirectory)\T'
softwareName: $(ApiScanSoftwareName)
softwareVersionNum: $(ApiScanSoftwareVersion)
isLargeApp: true
toolVersion: Latest
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ void CopyTools (string prefix)
Utilities.CopyFile (toolSourcePath, toolDestinationPath);
Utilities.CopyFile (toolSourcePdbPath, toolDestinationPdbPath);
}
// Copy PDB files for tools that have been renamed
if (isWindows) {
Utilities.CopyFile (Path.Combine (sourcePath, "lld.pdb"), Path.Combine (symbolArchiveDir, "lld.pdb"));
Utilities.CopyFile (Path.Combine (sourcePath, "llvm-objcopy.pdb"), Path.Combine (symbolArchiveDir, "llvm-objcopy.pdb"));
}
}
}

Expand Down

0 comments on commit 8037c1f

Please sign in to comment.