Skip to content
Merged
Changes from all commits
Commits
Show all changes
200 commits
Select commit Hold shift + click to select a range
56518ec
build pipeline publishing pdb as artifacts
bewithgaurav Jun 25, 2025
00a2e00
added a job to publish in dummy release pipeline
bewithgaurav Jun 25, 2025
8e80e7d
fixed pdb dir
bewithgaurav Jun 25, 2025
0637928
fixed pdb ext
bewithgaurav Jun 25, 2025
e2a1037
fixed parameters and made them into env
bewithgaurav Jun 25, 2025
632f13b
fixed input azureSubscription
bewithgaurav Jun 25, 2025
080af4f
fixed input azureSubscription as mssql-python
bewithgaurav Jun 25, 2025
06caf7e
fixed input azureSubscription as mssql-python-service
bewithgaurav Jun 25, 2025
1e7b296
fix download pipeline artifact
bewithgaurav Jun 25, 2025
026f9a8
rename SymbolsArtifactName
bewithgaurav Jun 25, 2025
c6372d1
changed symbolsArtifactName
bewithgaurav Jun 25, 2025
e219f61
Merge branch 'main' into bewithgaurav/publish_symbols
bewithgaurav Jul 10, 2025
640bf3a
code changes from review
bewithgaurav Jul 10, 2025
dab82e8
add symbol generation and copy step in dummy release
bewithgaurav Jul 10, 2025
3d68d94
syntax
bewithgaurav Jul 10, 2025
b987d0d
use onebranch temp
bewithgaurav Jul 10, 2025
bfab7cf
use onebranch temp
bewithgaurav Jul 10, 2025
115b262
use onebranch temp
bewithgaurav Jul 10, 2025
864a7ff
use onebranch template - change pool to windows
bewithgaurav Jul 10, 2025
4faedbc
use onebranch template - remove globalSdl
bewithgaurav Jul 10, 2025
4421646
remove unnecessary step
bewithgaurav Jul 10, 2025
0639734
Merged PR 5852: SYNC: Github main to ADO main
bewithgaurav Jul 25, 2025
2d0265f
Merge branch 'main' into bewithgaurav/publish_symbols
bewithgaurav Jul 30, 2025
7f2d80b
Merge branch 'bewithgaurav/publish_symbols' of https://github.com/mic…
bewithgaurav Jul 30, 2025
3069fcb
conflicts
bewithgaurav Jul 30, 2025
01b7b3a
conflicts
bewithgaurav Jul 30, 2025
4624477
sync to main
bewithgaurav Jul 30, 2025
285dc28
added resources in pipeline
bewithgaurav Jul 30, 2025
99128d6
added variables in pipeline
bewithgaurav Jul 30, 2025
b7d923a
added variables in pipeline
bewithgaurav Jul 30, 2025
1a5bf33
added variables in pipeline
bewithgaurav Jul 30, 2025
06a505e
Merged PR 5874: SYNC: Templates and Github Commit History
bewithgaurav Jul 31, 2025
5328b65
ADO work item in contributing
bewithgaurav Aug 4, 2025
4957db1
Merged PR 5875: CHORE: Change Dummy Release Pipeline to 1ES Governed …
bewithgaurav Aug 6, 2025
ec764d1
Merged PR 6131: SYNC: Github main to ADO main
bewithgaurav Sep 30, 2025
f8d1690
Initial Migration commit
bewithgaurav Oct 1, 2025
6fd72e6
Merged PR 6157: SYNC: Github main to ADO main
bewithgaurav Oct 6, 2025
d9970d6
merge conflicts
bewithgaurav Oct 6, 2025
2ab9d0b
remove sqlclient pipelines
bewithgaurav Oct 6, 2025
6d8d8ff
Merged PR 6156: CHORE: OneBranch Pipelines - Build Pipeline
bewithgaurav Oct 7, 2025
d54c4a1
FIX: Build Pipeline Corrections
bewithgaurav Oct 7, 2025
709e78f
merge conflicts fixed
bewithgaurav Oct 7, 2025
587e68d
Merged PR 6211: FIX: Build Pipeline Corrections
bewithgaurav Oct 7, 2025
a53523b
FIX: Debug and Test Build Release Package Pipeline
bewithgaurav Oct 7, 2025
9919b83
fix container images
bewithgaurav Oct 7, 2025
b23e7c8
fix container images
bewithgaurav Oct 7, 2025
7975bc1
use agents directk=ly
bewithgaurav Oct 7, 2025
966d3b4
fix jobs structure
bewithgaurav Oct 7, 2025
aee8134
undo jobs removal
bewithgaurav Oct 7, 2025
5a661ba
added back containers
bewithgaurav Oct 7, 2025
c3d6d9e
fixed windows containers
bewithgaurav Oct 7, 2025
11210d4
docker on linux containers
bewithgaurav Oct 7, 2025
98ddeaf
ssl for pip and docker for linux
bewithgaurav Oct 7, 2025
63b4f88
docker setup for linux
bewithgaurav Oct 7, 2025
8455a32
add sudo in docker setup for linux
bewithgaurav Oct 7, 2025
202c701
diable auto-upgrade in python task
bewithgaurav Oct 7, 2025
45ab1a7
add pip.in for auto-upgrade in python task
bewithgaurav Oct 7, 2025
68c658f
use docker service from ado
bewithgaurav Oct 7, 2025
342cc6a
use MS hosted agents
bewithgaurav Oct 7, 2025
b41d6c9
use normal containers and add a docker installation step
bewithgaurav Oct 7, 2025
14a943e
use normal containers and add docker step
bewithgaurav Oct 7, 2025
404bfdc
docker installation in linux
bewithgaurav Oct 7, 2025
75b66d5
docker installation in linux
bewithgaurav Oct 7, 2025
277d657
use odbc linux test pool
bewithgaurav Oct 7, 2025
616e7f6
use ADO 1ES pool
bewithgaurav Oct 7, 2025
8dfddfd
use Django 1ES pool
bewithgaurav Oct 7, 2025
b58af37
use Django 1ES pool
bewithgaurav Oct 7, 2025
51fda72
use Django 1ES pool
bewithgaurav Oct 7, 2025
75717d0
use Django 1ES pool correct ubuntu
bewithgaurav Oct 7, 2025
4596a5a
use Django 1ES pool correct ubuntu
bewithgaurav Oct 7, 2025
6c7ceda
use Django 1ES pool Ubuntu20.04
bewithgaurav Oct 7, 2025
3328111
remove pip ini custom config from windows
bewithgaurav Oct 7, 2025
144c660
imageoverride for ubuntu
bewithgaurav Oct 7, 2025
c3bf7a8
fix indentation
bewithgaurav Oct 7, 2025
018cedf
imageoverride for ubuntu
bewithgaurav Oct 7, 2025
52fb677
docker all clear
bewithgaurav Oct 7, 2025
21d051b
pybin var fix
bewithgaurav Oct 7, 2025
b71a9b4
include macOS
bewithgaurav Oct 7, 2025
402811b
include macOS
bewithgaurav Oct 7, 2025
1dbbeff
include macOS
bewithgaurav Oct 7, 2025
aa8c00a
include macOS change type to linux
bewithgaurav Oct 7, 2025
2f4ff5c
added proper symbol publishing on windows and publish whl and binding…
bewithgaurav Oct 8, 2025
6913343
publishing artifacts correctly
bewithgaurav Oct 8, 2025
25078bc
publishing artifacts using onebranch method
bewithgaurav Oct 8, 2025
779994f
fix publishing artifacts
bewithgaurav Oct 8, 2025
ef27e3d
back to django 1es pool
bewithgaurav Oct 8, 2025
e62aa69
remove explicit artifact publishing
bewithgaurav Oct 8, 2025
d025a28
tsaoptions.json
bewithgaurav Oct 8, 2025
8e6ccb8
consolidate artifacts into one job and then publish
bewithgaurav Oct 8, 2025
d068be0
Fixed artifact locations
bewithgaurav Oct 8, 2025
bf77b46
use diff artifact names
bewithgaurav Oct 8, 2025
afd50a1
refactor to use stages
bewithgaurav Oct 8, 2025
e31bee8
refactor to use stages
bewithgaurav Oct 8, 2025
010a010
Fix Linux stage IMAGE variable - use runtime bash conditionals instea…
bewithgaurav Oct 8, 2025
241e4d1
Fix Python version display - wrap versions in nested quotes to preven…
bewithgaurav Oct 8, 2025
c1b98b1
Fix Python version display - wrap versions
bewithgaurav Oct 8, 2025
48aff55
Fix Python versioning
bewithgaurav Oct 8, 2025
f3ce7f6
Fix as per old template
bewithgaurav Oct 8, 2025
98f5eb8
Fix DB PASSWORD variable
bewithgaurav Oct 8, 2025
698c41f
Fix MSI download in windows
bewithgaurav Oct 8, 2025
1610c98
Fix ARM64 windows
bewithgaurav Oct 8, 2025
d718120
APIScan fix
bewithgaurav Oct 8, 2025
047d3d0
MacOS add sql server tests
bewithgaurav Oct 8, 2025
3f80870
keep individual SDL false, only global
bewithgaurav Oct 8, 2025
099ac3a
keep individual SDL false, only global
bewithgaurav Oct 8, 2025
27fd722
cleanup SDL customization
bewithgaurav Oct 8, 2025
c2f052d
Delete summary MDs and unnecessary things etc.
bewithgaurav Oct 8, 2025
63b8ef4
merge conflicts
bewithgaurav Oct 8, 2025
7c1c428
Merged PR 6233: FEAT: Build Pipeline OneBranch Migration
bewithgaurav Oct 9, 2025
6588a35
remove invalid param in official symbol publishing
bewithgaurav Oct 9, 2025
00b19d3
remove invalid param in official symbol publishing
bewithgaurav Oct 9, 2025
9147380
Merged PR 6242: FIX: Build Pipeline Symbol Publishing
bewithgaurav Oct 9, 2025
f896b68
Merge pull request 6209 from invBootstrap into main
Oct 9, 2025
d59245c
FIX: Build Pipeline - List signed files
bewithgaurav Oct 9, 2025
15523c0
Merge branch 'main' of https://sqlclientdrivers.visualstudio.com/mssq…
bewithgaurav Oct 9, 2025
9cfb2d7
Merged PR 6245: FIX: Build Pipeline - List signed files
bewithgaurav Oct 9, 2025
f42267b
FIX: Build Pipeline - only sign whl files
bewithgaurav Oct 9, 2025
10c9be7
use onebranch.pipeline.signing@1 task instead of ESRP signing
bewithgaurav Oct 9, 2025
e32f455
cleanup and use esrp malware scanning
bewithgaurav Oct 9, 2025
3acf2f8
merge conflicts
bewithgaurav Oct 9, 2025
7005bb5
Merged PR 6247: FIX: Build Pipeline - Use OneBranch Signing
bewithgaurav Oct 9, 2025
23be19a
FIX: Build Pipeline: OneBranch Signing
bewithgaurav Oct 9, 2025
cbad6f0
FIX: Build Pipeline: OneBranch Signing
bewithgaurav Oct 9, 2025
c125ec0
install onebranch signing tool
bewithgaurav Oct 9, 2025
f9b4685
move back to esrp signing tool
bewithgaurav Oct 9, 2025
4efa3d8
esrp sign on non official as well
bewithgaurav Oct 9, 2025
996978a
esrp signing task removed
bewithgaurav Oct 9, 2025
df7b770
Merged PR 6248: FIX: Commented ESRP CodeSign Task
bewithgaurav Oct 9, 2025
f3f0c59
non official runs for publish symbols
bewithgaurav Oct 9, 2025
eaf804a
change publish symbols a bit more
bewithgaurav Oct 9, 2025
1ca5a65
change publish symbols a bit more
bewithgaurav Oct 9, 2025
9fd5461
Merge branch 'main' of https://sqlclientdrivers.visualstudio.com/mssq…
bewithgaurav Oct 9, 2025
db06c44
add symbol publishing variable group
bewithgaurav Oct 10, 2025
babca22
deleted Learnings dir
bewithgaurav Oct 10, 2025
516a5dd
publish symbols
bewithgaurav Oct 10, 2025
e3a5e56
publish symbols - symbolsfolder
bewithgaurav Oct 10, 2025
75d6450
publish symbols - symbolsfolder
bewithgaurav Oct 10, 2025
0d75405
publish symbols - accesstokendebug
bewithgaurav Oct 10, 2025
2873ec0
publish symbols - system_acesstoken var
bewithgaurav Oct 10, 2025
54a2172
publish symbols - system_acesstoken globally
bewithgaurav Oct 10, 2025
b9fd1e9
publish symbols - fix system_accesstoken
bewithgaurav Oct 10, 2025
155c61b
publish symbols - use system_accesstoken
bewithgaurav Oct 10, 2025
309eeb8
publish symbols - set system_accesstoken in powershell
bewithgaurav Oct 10, 2025
687fdf2
publish symbols - set system_accesstoken in powershell
bewithgaurav Oct 10, 2025
b15a86d
publish symbols - set system_accesstoken in powershell
bewithgaurav Oct 10, 2025
0af993c
publish symbols - fix requestName
bewithgaurav Oct 10, 2025
524176b
publish symbols - fix symbol env variables
bewithgaurav Oct 10, 2025
27e13d3
removed symbols from build pipeline and add fixes for apiscanning
bewithgaurav Oct 14, 2025
890099d
remove symbols stuff from build release
bewithgaurav Oct 14, 2025
9395287
Merged PR 6250: FIX: Build Release Pipeline - Removed Symbols Publishing
bewithgaurav Oct 15, 2025
446141b
Added Official Release Pipeline
bewithgaurav Oct 15, 2025
bfa937c
official release testing
bewithgaurav Oct 16, 2025
0f2d8a3
nonofficial release testing
bewithgaurav Oct 16, 2025
2d02afa
use django 1es pool
bewithgaurav Oct 16, 2025
8762930
fix artifact structure
bewithgaurav Oct 16, 2025
818474c
take run from UI
bewithgaurav Oct 16, 2025
0c179ee
parse build ID from UI input run
bewithgaurav Oct 16, 2025
90fbf77
publish to public server ON
bewithgaurav Oct 16, 2025
9afe1a1
change true to string literal
bewithgaurav Oct 17, 2025
e09da92
change body to json
bewithgaurav Oct 17, 2025
7efe59d
try catch
bewithgaurav Oct 17, 2025
5ff8ce7
follow jdbc pipeline
bewithgaurav Oct 17, 2025
8e2ec56
follow jdbc
bewithgaurav Oct 17, 2025
c1c1407
polling to get symbols
bewithgaurav Oct 17, 2025
92159f4
added proper comments
bewithgaurav Oct 17, 2025
94e0b34
added proper comments and restored official release pipeline
bewithgaurav Oct 17, 2025
f13ef24
added proper comments and added dummy release pipeline
bewithgaurav Oct 17, 2025
cf7edc7
fixed conflicts
bewithgaurav Oct 17, 2025
ce7232d
Merged PR 6317: FEAT: Migrate Official and Dummy Release Pipelines
bewithgaurav Oct 17, 2025
2a2b2ea
FIX: APIScan and BinSkim
bewithgaurav Nov 5, 2025
1d6b27c
FIX: APIScan and BinSkim
bewithgaurav Nov 5, 2025
97a1ce7
FIX: APIScan and BinSkim
bewithgaurav Nov 5, 2025
28b8be7
FIX: APIScan and BinSkim
bewithgaurav Nov 5, 2025
335b5b7
Merged PR 6387: SYNC: Github main to ADO main
bewithgaurav Nov 10, 2025
708dffd
Merged PR 6424: Add the baseline and suppression file to guide Guardian
saurabh500 Nov 11, 2025
3fb8ab2
Merged PR 6426: SYNC: GH main to ADO main
bewithgaurav Nov 11, 2025
02c0dee
Merge branch 'main' of https://sqlclientdrivers.visualstudio.com/mssq…
bewithgaurav Nov 11, 2025
9677369
fix credscan suppressions
bewithgaurav Nov 11, 2025
011f7e7
macOS build pipeline fix
bewithgaurav Nov 11, 2025
2c42a8b
Fix Guardian suppression paths - use relative paths
bewithgaurav Nov 11, 2025
11fc811
Fix Guardian paths - use Windows backslash separators
bewithgaurav Nov 11, 2025
76fe315
Use global Guardian baseline/suppression config (matching JDBC pattern)
bewithgaurav Nov 11, 2025
2608d0f
fix tests
bewithgaurav Nov 11, 2025
4b6070b
disable ApiScan for now
bewithgaurav Nov 11, 2025
7302bf1
Merged PR 6388: FIX: Use .gdnsuppress and .gdnbaseline to suppress fa…
bewithgaurav Nov 11, 2025
126fa84
FIX: Disable BinSkim for Ubuntu and macOS
bewithgaurav Nov 11, 2025
e54ca36
merge conflicts
bewithgaurav Nov 11, 2025
7e17b82
merge conflicts
bewithgaurav Nov 11, 2025
7e41a18
added default timeout of 60mins to ESRP Scanning
bewithgaurav Nov 11, 2025
b822675
added ob_sdl_binskim_enabled and removed templateContext
bewithgaurav Nov 11, 2025
5499a65
Merged PR 6427: FIX: Disable BinSkim for Ubuntu and macOS
bewithgaurav Nov 12, 2025
9f5de21
Merge branch 'main' of https://github.com/microsoft/mssql-python into…
bewithgaurav Nov 14, 2025
255cd64
fix init
bewithgaurav Nov 14, 2025
9847964
delete MD file
bewithgaurav Nov 14, 2025
1a45121
Download Python Windows ARM Libs from nuget
bewithgaurav Nov 14, 2025
fd2bf7f
Merged PR 6457: SYNC: GH to ADO Main
bewithgaurav Nov 14, 2025
0c31411
Merge branch 'main' of https://sqlclientdrivers.visualstudio.com/mssq…
bewithgaurav Nov 14, 2025
22040ed
pull in latest main
bewithgaurav Nov 14, 2025
62972d3
Merged PR 6456: FEAT: Download Windows Python ARM64 Libs from Nuget d…
bewithgaurav Nov 14, 2025
04a1c97
Merge branch 'main' of https://sqlclientdrivers.visualstudio.com/mssq…
bewithgaurav Nov 14, 2025
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
71 changes: 62 additions & 9 deletions OneBranchPipelines/stages/build-windows-single-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,69 @@ stages:
env:
DB_PASSWORD: $(DB_PASSWORD)

- task: DownloadPipelineArtifact@2
- powershell: |
# Download Python ARM64 from NuGet (contains libs directory with python.lib)
$pythonVer = "${{ parameters.pythonVersion }}"

# Map version to NuGet package version
$nugetVersion = switch ($pythonVer) {
"3.10" { "3.10.11" }
"3.11" { "3.11.9" }
"3.12" { "3.12.7" }
"3.13" { "3.13.0" }
"3.14" { "3.14.0-a2" }
default { throw "Unsupported Python version: $pythonVer" }
}

$nugetUrl = "https://www.nuget.org/api/v2/package/pythonarm64/$nugetVersion"
$nugetFile = "$(Build.SourcesDirectory)\pythonarm64.nupkg"
$zipFile = "$(Build.SourcesDirectory)\pythonarm64.zip"
$extractPath = "$(Build.SourcesDirectory)\pythonarm64-nuget"
$destPath = "$(Build.SourcesDirectory)\mssql_python\pybind\python_libs\arm64"

Write-Host "Downloading Python $pythonVer ARM64 NuGet package from: $nugetUrl"
Invoke-WebRequest -Uri $nugetUrl -OutFile $nugetFile -UseBasicParsing

Write-Host "Renaming .nupkg to .zip for extraction..."
Move-Item -Path $nugetFile -Destination $zipFile -Force

Write-Host "Extracting NuGet package..."
Expand-Archive -Path $zipFile -DestinationPath $extractPath -Force

Write-Host "`nSearching for libs directory..."
$libsDir = Get-ChildItem -Path $extractPath -Recurse -Directory -Filter "libs" | Select-Object -First 1

if ($libsDir) {
Write-Host "Found libs at: $($libsDir.FullName)"
New-Item -ItemType Directory -Force -Path $destPath | Out-Null
Copy-Item -Path "$($libsDir.FullName)\*" -Destination $destPath -Recurse -Force
Write-Host "✓ Copied .lib files from NuGet package"
} else {
Write-Host "libs directory not found, searching for .lib files..."
$libFiles = Get-ChildItem -Path $extractPath -Recurse -Filter "*.lib"
New-Item -ItemType Directory -Force -Path $destPath | Out-Null
foreach ($lib in $libFiles) {
Write-Host " Copying $($lib.Name)"
Copy-Item -Path $lib.FullName -Destination $destPath -Force
}
}

Write-Host "`nContents of $destPath :"
Get-ChildItem $destPath | ForEach-Object { Write-Host " - $($_.Name)" }

$expectedLib = "python$($pythonVer.Replace('.', '')).lib"
if (Test-Path "$destPath\$expectedLib") {
Write-Host "`n✓ $expectedLib found"
} else {
Write-Error "$expectedLib not found in NuGet package!"
exit 1
}

# Cleanup
Remove-Item -Path $zipFile -Force -ErrorAction SilentlyContinue
Remove-Item -Path $extractPath -Recurse -Force -ErrorAction SilentlyContinue
condition: eq(variables['targetArch'], 'arm64')
inputs:
buildType: 'specific'
project: '$(System.TeamProject)'
definition: 2162
buildVersionToDownload: 'latest'
artifactName: 'mssql-python-arm64-libs'
targetPath: '$(Build.SourcesDirectory)\mssql_python\pybind\python_libs\arm64'
displayName: 'Download ARM64 Python libs'
displayName: 'Download Python ARM64 libs from NuGet'

- script: |
echo "Python Version: $(pythonVersion)"
Expand Down
Loading