-
Notifications
You must be signed in to change notification settings - Fork 51
CHORE: Add OneBranch release pipelines for mssql-python-odbc #664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jahnvi480
wants to merge
33
commits into
main
Choose a base branch
from
jahnvi/odbc-release-pipelines
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
b845621
Add OneBranch release pipelines for mssql-python-odbc
jahnvi480 c19a261
Address PR review: fail-fast on wheel count, armory justification, Li…
jahnvi480 62910b4
Address review: preflight guard for odbcBuildDefinitionId placeholder…
jahnvi480 38b9ff9
Fold mssql-python-odbc build+release into existing pipelines
jahnvi480 d85fd92
Scope consolidate downloads by package to prevent cross-contamination
jahnvi480 e3cf2a9
Correct stale mssql-python wheel count in consolidate diagnostic (27 …
jahnvi480 a4b4e59
Harden odbc release path: pin guard + wheel-content assertions
jahnvi480 b88e169
Hard-fail mssql-python consolidate on wheel-count mismatch
jahnvi480 0346212
Merge branch 'main' into jahnvi/odbc-release-pipelines
jahnvi480 d1b3d46
odbc: add mssql-python-odbc selector to dummy release pipeline
jahnvi480 9f93c36
odbc: align dummy release pipeline mssql-python handling with official
jahnvi480 2d93fe0
odbc: bump mssql-python-odbc pin to 18.6.2 in release pipelines
jahnvi480 a4e3968
build: add buildPackage selector to build pipeline
jahnvi480 9d3097c
build: nightly build always builds both packages
jahnvi480 fdb02cb
Add OneBranch release pipelines for mssql-python-odbc
jahnvi480 79d60ba
Address PR review: fail-fast on wheel count, armory justification, Li…
jahnvi480 d4b82a6
Address review: preflight guard for odbcBuildDefinitionId placeholder…
jahnvi480 68b7ba0
Fold mssql-python-odbc build+release into existing pipelines
jahnvi480 7a1d351
Scope consolidate downloads by package to prevent cross-contamination
jahnvi480 7e5947e
Correct stale mssql-python wheel count in consolidate diagnostic (27 …
jahnvi480 68cba53
Harden odbc release path: pin guard + wheel-content assertions
jahnvi480 0772cc0
Hard-fail mssql-python consolidate on wheel-count mismatch
jahnvi480 52dbd7b
odbc: add mssql-python-odbc selector to dummy release pipeline
jahnvi480 19f1db1
odbc: align dummy release pipeline mssql-python handling with official
jahnvi480 2038ca6
odbc: bump mssql-python-odbc pin to 18.6.2 in release pipelines
jahnvi480 926ba53
build: add buildPackage selector to build pipeline
jahnvi480 72c3c88
build: nightly build always builds both packages
jahnvi480 b15c8ad
CHORE: reconcile GH pipeline Option A both-wheels test with validated…
jahnvi480 3caadc7
Merge branch 'jahnvi/odbc-release-pipelines' of https://github.com/mi…
jahnvi480 9580488
Merge branch 'main' into jahnvi/odbc-release-pipelines
jahnvi480 564ee03
Merge branch 'main' of https://github.com/microsoft/mssql-python into…
jahnvi480 9de3f4d
Merge branch 'jahnvi/odbc-release-pipelines' of https://github.com/mi…
jahnvi480 7795a2d
FIX: resolve DevSkim localhost finding and harden both-wheels test stage
jahnvi480 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
OneBranchPipelines/jobs/consolidate-odbc-artifacts-job.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| # Consolidate ODBC Artifacts Job Template | ||
| # Downloads the per-platform `mssql-python-odbc` wheels from all build stages and | ||
| # consolidates them into a single dist/ folder for the release pipeline to publish. | ||
| # Expected: 7 wheels (2 Windows + 1 macOS universal2 + 4 Linux). | ||
| parameters: | ||
| - name: oneBranchType | ||
| type: string | ||
| default: 'Official' | ||
| - name: expectedWheelCount | ||
| type: number | ||
| default: 7 | ||
|
|
||
| jobs: | ||
| - job: ConsolidateArtifacts | ||
| displayName: 'Consolidate All ODBC Platform Artifacts' | ||
| condition: succeeded() | ||
|
|
||
| pool: | ||
| type: linux | ||
| isCustom: true | ||
| name: Azure Pipelines | ||
| vmImage: 'ubuntu-latest' | ||
|
|
||
| variables: | ||
| # Consolidation only moves files; no binaries to scan. | ||
| - name: ob_sdl_binskim_enabled | ||
| value: false | ||
| - name: ob_outputDirectory | ||
| value: '$(Build.ArtifactStagingDirectory)' | ||
|
|
||
| steps: | ||
| - checkout: self | ||
| fetchDepth: 1 | ||
|
|
||
| # Download only the mssql-python-odbc platform-stage artifacts (drop_ODBC_*) from | ||
| # the current build. The same run also builds the mssql-python wheels (drop_Win_*, | ||
| # drop_MacOS_*, drop_Linux_*); itemPattern scopes this download to the odbc stages | ||
| # so ONLY the 7 odbc wheels are consolidated here (not the mssql-python wheels). | ||
| - task: DownloadPipelineArtifact@2 | ||
| displayName: 'Download All ODBC Platform Artifacts' | ||
| inputs: | ||
| buildType: 'current' | ||
| itemPattern: 'drop_ODBC_*/**' | ||
| targetPath: '$(Pipeline.Workspace)/all-artifacts' | ||
|
|
||
| - bash: | | ||
| set -e | ||
| mkdir -p $(ob_outputDirectory)/dist | ||
|
|
||
| echo "Finding all .whl files..." | ||
| find $(Pipeline.Workspace)/all-artifacts -name "*.whl" -exec ls -lh {} \; | ||
|
|
||
| echo "Copying all wheels to consolidated dist/..." | ||
| find $(Pipeline.Workspace)/all-artifacts -name "*.whl" -exec cp -v {} $(ob_outputDirectory)/dist/ \; | ||
|
|
||
| echo "Consolidated wheels:" | ||
| ls -lh $(ob_outputDirectory)/dist/ | ||
| WHEEL_COUNT=$(ls -1 $(ob_outputDirectory)/dist/*.whl 2>/dev/null | wc -l) | ||
| echo "Total wheel count: $WHEEL_COUNT (expected ${{ parameters.expectedWheelCount }})" | ||
| if [ "$WHEEL_COUNT" -ne "${{ parameters.expectedWheelCount }}" ]; then | ||
| echo "ERROR: expected ${{ parameters.expectedWheelCount }} wheels but found $WHEEL_COUNT" >&2 | ||
| exit 1 | ||
| fi | ||
| echo "SUCCESS: all ${{ parameters.expectedWheelCount }} ODBC wheels consolidated." | ||
| displayName: 'Consolidate ODBC wheels' | ||
|
|
||
| - task: PublishPipelineArtifact@1 | ||
| displayName: 'Publish Consolidated ODBC Artifacts' | ||
| inputs: | ||
| targetPath: '$(ob_outputDirectory)' | ||
| # Distinct name so it does not collide with the mssql-python consolidate | ||
| # artifact (drop_Consolidate_ConsolidateArtifacts) in the same build run. | ||
| # Matches the OneBranch auto-name for a stage named `ConsolidateOdbc`. | ||
| artifact: 'drop_ConsolidateOdbc_ConsolidateArtifacts' | ||
| publishLocation: 'pipeline' | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.