Skip to content

Commit 52a38a5

Browse files
committed
Merged PR 779: Rebase fj-develop with main
2 parents dc47d84 + 549d741 commit 52a38a5

File tree

1,212 files changed

+39306
-28377
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,212 files changed

+39306
-28377
lines changed

.github/labeler.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ ep:oneDNN: '/\bone\s*dnn\b/i'
1111
ep:OpenVINO: '/\bopen\s*vino\b/i'
1212
ep:QNN: '/\bqnn\b/i'
1313
ep:RockchipNPU: '/\brockchip(?:npu)?\b/i'
14-
ep:ROCm: '/\brocm\b/i'
1514
ep:SNPE: '/\bsnpe\b/i'
1615
ep:tvm: '/\btvm\b/i'
1716
ep:VitisAI: '/\bvitis(?:ai)?\b/i'

.github/workflows/android.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ permissions:
2424

2525
jobs:
2626
AndroidBinarySizeCheckJob_MinimalBaseline:
27-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
27+
runs-on: [
28+
"self-hosted",
29+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
30+
"JobId=AndroidBinarySizeCheckJob_MinimalBaseline-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
31+
]
2832
steps:
2933
- name: Checkout repository
30-
uses: actions/checkout@v5
34+
uses: actions/checkout@v6
3135
with:
3236
submodules: false
3337

@@ -66,7 +70,7 @@ jobs:
6670
set_var("BuildConfigOs", config["os"])
6771
shell: python
6872
working-directory: ${{ github.workspace }}
69-
73+
7074
- name: 1a. Build onnxruntime
7175
run: |
7276
set -e -x
@@ -110,9 +114,13 @@ jobs:
110114
shell: bash
111115

112116
android_nnapi_ep:
113-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
117+
runs-on: [
118+
"self-hosted",
119+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
120+
"JobId=android_nnapi_ep-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
121+
]
114122
steps:
115-
- uses: actions/checkout@v5
123+
- uses: actions/checkout@v6
116124

117125
- name: Use jdk 17
118126
uses: actions/setup-java@v5
@@ -185,9 +193,14 @@ jobs:
185193

186194
android_cpu_ep:
187195
name: Android CI Pipeline
188-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
196+
runs-on: [
197+
"self-hosted",
198+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
199+
"JobId=android_cpu_ep-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
200+
]
201+
189202
steps:
190-
- uses: actions/checkout@v5
203+
- uses: actions/checkout@v6
191204

192205
- name: Use jdk 17
193206
uses: actions/setup-java@v5

.github/workflows/cffconvert.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,14 @@ on:
99
jobs:
1010
validate:
1111
name: "validate"
12-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
12+
runs-on: [
13+
"self-hosted",
14+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
15+
"JobId=cffconvert-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
16+
]
1317
steps:
1418
- name: Check out a copy of the repository
15-
uses: actions/checkout@v5
19+
uses: actions/checkout@v6
1620

1721
- name: Check whether the citation metadata from CITATION.cff is valid
1822
uses: citation-file-format/cffconvert-github-action@2.0.0

.github/workflows/codeql.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ concurrency:
2323
jobs:
2424
analyze:
2525
name: Analyze
26-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
26+
runs-on: [
27+
"self-hosted",
28+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
29+
"JobId=codeql-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
30+
]
2731
permissions:
2832
actions: read
2933
contents: read
@@ -38,7 +42,7 @@ jobs:
3842

3943
steps:
4044
- name: Checkout repository
41-
uses: actions/checkout@v5
45+
uses: actions/checkout@v6
4246

4347
# Initializes the CodeQL tools for scanning.
4448
- name: Initialize CodeQL
@@ -61,7 +65,7 @@ jobs:
6165
distribution: 'microsoft'
6266

6367
- if: ${{ matrix.language == 'javascript' }}
64-
uses: actions/setup-node@v5
68+
uses: actions/setup-node@v6
6569
with:
6670
node-version: 20
6771

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ on:
1313
jobs:
1414
validation:
1515
name: "Validation"
16-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
16+
runs-on: [
17+
"self-hosted",
18+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
19+
"JobId=gradle-wrapper-validation-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
20+
]
1721
steps:
18-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
1923
- uses: gradle/actions/wrapper-validation@v5
2024
concurrency:
2125
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.ref || github.sha }}

.github/workflows/ios.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: macos-14
2121
steps:
2222
- name: Checkout repository
23-
uses: actions/checkout@v5
23+
uses: actions/checkout@v6
2424
with:
2525
submodules: false
2626
- uses: microsoft/onnxruntime-github-actions/setup-build-tools@v0.0.9

.github/workflows/labeler.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ permissions:
88

99
jobs:
1010
triage:
11-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
11+
runs-on: [
12+
"self-hosted",
13+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
14+
"JobId=labeler-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
15+
]
1216
steps:
1317
- uses: github/issue-labeler@v3.4
1418
with:

.github/workflows/lint.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Optional Lint
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: actions/checkout@v5
20+
- uses: actions/checkout@v6
2121
- name: misspell # Check spellings as well
2222
uses: reviewdog/action-misspell@v1
2323
with:
@@ -37,12 +37,16 @@ jobs:
3737
lint-python-format:
3838
# Required workflow
3939
name: Python format
40-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
40+
runs-on: [
41+
"self-hosted",
42+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
43+
"JobId=lint-python-format-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
44+
]
4145
permissions:
4246
contents: read
4347
security-events: write
4448
steps:
45-
- uses: actions/checkout@v5
49+
- uses: actions/checkout@v6
4650
- name: Setup Python
4751
uses: actions/setup-python@v6
4852
with:
@@ -87,7 +91,7 @@ jobs:
8791
name: Optional Lint C++
8892
runs-on: ubuntu-latest
8993
steps:
90-
- uses: actions/checkout@v5
94+
- uses: actions/checkout@v6
9195
- name: Update PATH
9296
run: |
9397
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
@@ -114,10 +118,14 @@ jobs:
114118

115119
lint-js:
116120
name: Lint JavaScript
117-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
121+
runs-on: [
122+
"self-hosted",
123+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
124+
"JobId=lint-js-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
125+
]
118126
steps:
119-
- uses: actions/checkout@v5
120-
- uses: actions/setup-node@v5
127+
- uses: actions/checkout@v6
128+
- uses: actions/setup-node@v6
121129
with:
122130
node-version: 20
123131
- uses: reviewdog/action-eslint@v1

.github/workflows/linux-wasm-ci-build-and-test-workflow.yml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,31 @@ on:
3434

3535
jobs:
3636
build-wasm:
37-
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
37+
runs-on: [
38+
"self-hosted",
39+
"1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU",
40+
"JobId=build-wasm-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}"
41+
]
3842
env:
3943
buildArch: x64
40-
common_build_args: --parallel ${{ inputs.use_vcpkg == true && '--use_vcpkg --use_vcpkg_ms_internal_asset_cache' || '' }} --config ${{ inputs.build_config }} --skip_submodule_sync --build_wasm --enable_wasm_simd ${{ inputs.enable_wasm_threads == true && '--enable_wasm_threads' || '' }} ${{ inputs.extra_build_args }}
44+
common_build_args: >-
45+
--parallel
46+
${{ inputs.use_vcpkg == true && '--use_vcpkg --use_vcpkg_ms_internal_asset_cache' || '' }}
47+
--config ${{ inputs.build_config }}
48+
--skip_submodule_sync
49+
--build_wasm
50+
--enable_wasm_simd
51+
${{ inputs.enable_wasm_threads == true && '--enable_wasm_threads' || '' }}
52+
${{ inputs.extra_build_args }}
4153
4254
steps:
4355
- name: Checkout code
44-
uses: actions/checkout@v5
56+
uses: actions/checkout@v6
4557
with:
4658
submodules: recursive
4759

4860
- name: Set up Node.js
49-
uses: actions/setup-node@v5
61+
uses: actions/setup-node@v6
5062
with:
5163
node-version: "22"
5264

@@ -70,6 +82,7 @@ jobs:
7082
python ./tools/ci_build/build.py \
7183
${{ env.common_build_args }} \
7284
--build_dir ${{ github.workspace }}/build/wasm_inferencing \
85+
${{ inputs.build_config == 'Release' && '--enable_wasm_api_exception_catching' || '' }} \
7386
--skip_tests
7487
working-directory: ${{ github.workspace }}
7588

@@ -82,6 +95,7 @@ jobs:
8295
--use_jsep \
8396
--use_webnn \
8497
--target onnxruntime_webassembly \
98+
${{ inputs.build_config == 'Release' && '--enable_wasm_api_exception_catching' || '' }} \
8599
--skip_tests
86100
working-directory: ${{ github.workspace }}
87101

@@ -94,6 +108,20 @@ jobs:
94108
--use_webgpu \
95109
--use_webnn \
96110
--target onnxruntime_webassembly \
111+
${{ inputs.build_config == 'Release' && '--enable_wasm_api_exception_catching' || '' }} \
112+
--skip_tests
113+
working-directory: ${{ github.workspace }}
114+
115+
- name: Build (simd + threads + WebGPU experimental, JSPI)
116+
if: ${{ inputs.build_webgpu == true }}
117+
run: |
118+
python ./tools/ci_build/build.py \
119+
${{ env.common_build_args }} \
120+
--build_dir ${{ github.workspace }}/build/wasm_inferencing_webgpu_jspi \
121+
--use_webgpu \
122+
--use_webnn \
123+
--enable_wasm_jspi \
124+
--target onnxruntime_webassembly \
97125
--skip_tests
98126
working-directory: ${{ github.workspace }}
99127

@@ -111,10 +139,14 @@ jobs:
111139
cp ${{ github.workspace }}/build/wasm_inferencing_webgpu/${{ inputs.build_config }}/ort-wasm-simd-threaded.asyncify.wasm ${{ github.workspace }}/artifacts/wasm/
112140
cp ${{ github.workspace }}/build/wasm_inferencing_webgpu/${{ inputs.build_config }}/ort-wasm-simd-threaded.asyncify.mjs ${{ github.workspace }}/artifacts/wasm/
113141
fi
142+
if [ -d ${{ github.workspace }}/build/wasm_inferencing_webgpu_jspi ]; then
143+
cp ${{ github.workspace }}/build/wasm_inferencing_webgpu_jspi/${{ inputs.build_config }}/ort-wasm-simd-threaded.jspi.wasm ${{ github.workspace }}/artifacts/wasm/
144+
cp ${{ github.workspace }}/build/wasm_inferencing_webgpu_jspi/${{ inputs.build_config }}/ort-wasm-simd-threaded.jspi.mjs ${{ github.workspace }}/artifacts/wasm/
145+
fi
114146
115147
- name: Upload WASM artifacts
116148
if: ${{ inputs.skip_publish != true }}
117-
uses: actions/upload-artifact@v4
149+
uses: actions/upload-artifact@v5
118150
with:
119151
name: ${{ inputs.build_config }}_wasm
120152
path: ${{ github.workspace }}/artifacts/wasm
@@ -143,7 +175,7 @@ jobs:
143175

144176
- name: Publish test results
145177
if: ${{ always() && inputs.build_config == 'Debug' }}
146-
uses: actions/upload-artifact@v4
178+
uses: actions/upload-artifact@v5
147179
with:
148180
name: test-results
149181
path: ${{ github.workspace }}/build/**/*.results.xml

.github/workflows/linux_ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
dockerfile_path: tools/ci_build/github/linux/docker/inference/x86_64/default/cpu/Dockerfile
4949
docker_image_repo: onnxruntimecpubuildcix64
5050
extra_build_flags: '--enable_address_sanitizer'
51+
job_identifier: build-linux-x64-debug
5152
# python_path_prefix: '' # Default empty string is fine, no prefix needed
5253
secrets:
5354
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -63,6 +64,7 @@ jobs:
6364
docker_image_repo: onnxruntimecpubuildpythonx64
6465
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel --build_nuget --enable_transformers_tool_test --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
6566
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:$PATH' # $ needs escaping in single quotes
67+
job_identifier: build-linux-x64-release
6668
secrets:
6769
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6870

@@ -77,6 +79,7 @@ jobs:
7779
docker_image_repo: onnxruntimecpubuildpythonx64 # Shares image with standard x64 release
7880
extra_build_flags: '--enable_training --use_binskim_compliant_compile_flags --build_wheel --build_nuget --enable_transformers_tool_test --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
7981
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:$PATH' # $ needs escaping in single quotes
82+
job_identifier: orttraining-linux-ci-pipeline
8083
secrets:
8184
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8285

@@ -92,6 +95,7 @@ jobs:
9295
docker_image_repo: onnxruntimecpubuildciaarch64
9396
# ASan disabled due to excessive runtime (>4hr). Includes wheel build for basic checks.
9497
extra_build_flags: '--use_binskim_compliant_compile_flags --build_shared_lib'
98+
job_identifier: build-linux-arm64-debug
9599
secrets:
96100
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
97101

@@ -106,5 +110,6 @@ jobs:
106110
docker_image_repo: onnxruntimecpubuildpythonaarch64
107111
extra_build_flags: '--use_binskim_compliant_compile_flags --build_wheel --cmake_extra_defines onnxruntime_BUILD_BENCHMARKS=ON'
108112
python_path_prefix: 'PATH=/opt/python/cp310-cp310/bin:$PATH' # $ needs escaping in single quotes
113+
job_identifier: build-linux-arm64-release
109114
secrets:
110115
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)