Skip to content
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

Make onnxscript release 1ES compliant #2071

Merged
merged 23 commits into from
Feb 24, 2025
Merged
Show file tree
Hide file tree
Changes from 20 commits
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
21 changes: 0 additions & 21 deletions .azure-pipelines/_release-template.yml

This file was deleted.

27 changes: 23 additions & 4 deletions .azure-pipelines/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,28 @@
# To configure triggers, see https://github.com/microsoft/onnx-converters-private/wiki/ONNX-Script-release
trigger: none

pool:
vmImage: ubuntu-latest
variables:
CI: 'true'
steps:
- template: _release-template.yml

resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

extends:
# The pipeline extends the 1ES PT which will inject different SDL and compliance tasks.
# For non-production pipelines, use "Unofficial" as defined below.
# For productions pipelines, use "Official".
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
sdl:
sourceAnalysisPool:
name: onnxruntime-Win-CPU-2022
os: windows
pool:
name: 'onnxruntime-Ubuntu2204-AMD-CPU'
os: 'linux'
stages:
- template: stages/_release-template-stage.yml
31 changes: 23 additions & 8 deletions .azure-pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,30 @@

trigger: none

pool:
vmImage: ubuntu-latest
variables:
CI: 'true'
# Set the release environment variable to build a release version of the wheel
ONNX_SCRIPT_RELEASE: 1
steps:
- template: _release-template.yml
# Test the wheels. This needs to happen after PublishBuildArtifacts
# to avoid interference with the artifacts
- script: python -m pip install dist/*.whl --no-deps
displayName: 'Install wheel'

resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

extends:
# The pipeline extends the 1ES PT which will inject different SDL and compliance tasks.
# For non-production pipelines, use "Unofficial" as defined below.
# For productions pipelines, use "Official".
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
sdl:
sourceAnalysisPool:
name: onnxruntime-Win-CPU-2022
os: windows
pool:
name: 'onnxruntime-Ubuntu2204-AMD-CPU'
os: 'linux'
stages:
- template: stages/release_stage.yml
20 changes: 20 additions & 0 deletions .azure-pipelines/stages/_release-template-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
displayName: 'Set Up Python'
- script: python -m pip install --upgrade pip build wheel
displayName: 'Install Python build dependencies'
- script: python -m build
displayName: 'Build ONNX Script wheel'
- task: CopyFiles@2
displayName: 'Copy Python Wheel to: $(Build.ArtifactStagingDirectory)'
inputs:
SourceFolder: 'dist'
Contents: '*.*'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
- task: 1ES.PublishPipelineArtifact@1
displayName: 'Publish Python Wheel'
inputs:
ArtifactName: 'onnxscript'
targetPath: '$(Build.ArtifactStagingDirectory)'
10 changes: 10 additions & 0 deletions .azure-pipelines/stages/release_stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
stages:
- stage: Stage
jobs:
- job: Job
steps:
- template: _release-template-stage.yml
# Test the wheels. This needs to happen after PublishBuildArtifacts
# to avoid interference with the artifacts
- script: python -m pip install dist/*.whl --no-deps
displayName: 'Install wheel'
Loading