Skip to content

Commit daefbd4

Browse files
author
Paco Wong
committed
Merge branch 'develop' into pacowong/wasm-static-library
2 parents eedf400 + 0a19598 commit daefbd4

File tree

3,695 files changed

+204701
-116018
lines changed

Some content is hidden

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

3,695 files changed

+204701
-116018
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.
2+
3+
pipelines:
4+
1624:
5+
retail:
6+
source:
7+
credscan:
8+
lastModifiedDate: 2024-10-25
9+
policheck:
10+
lastModifiedDate: 2024-10-25
11+
eslint:
12+
lastModifiedDate: 2024-10-25
13+
psscriptanalyzer:
14+
lastModifiedDate: 2024-10-25
15+
armory:
16+
lastModifiedDate: 2024-10-25
17+
usedNonDefaultBranch: true
18+
1299:
19+
retail:
20+
source:
21+
credscan:
22+
lastModifiedDate: 2024-10-25
23+
eslint:
24+
lastModifiedDate: 2024-10-25
25+
psscriptanalyzer:
26+
lastModifiedDate: 2024-10-25
27+
armory:
28+
lastModifiedDate: 2024-10-25
29+
policheck:
30+
lastModifiedDate: 2024-10-29
31+
binary:
32+
credscan:
33+
lastModifiedDate: 2024-10-25
34+
binskim:
35+
lastModifiedDate: 2024-10-25
36+
spotbugs:
37+
lastModifiedDate: 2024-10-25
38+
1625:
39+
retail:
40+
source:
41+
credscan:
42+
lastModifiedDate: 2024-11-05
43+
policheck:
44+
lastModifiedDate: 2024-11-05
45+
eslint:
46+
lastModifiedDate: 2024-11-05
47+
psscriptanalyzer:
48+
lastModifiedDate: 2024-11-05
49+
armory:
50+
lastModifiedDate: 2024-11-05
51+
binary:
52+
credscan:
53+
lastModifiedDate: 2024-11-13
54+
binskim:
55+
lastModifiedDate: 2024-11-13
56+
spotbugs:
57+
lastModifiedDate: 2024-11-13
58+
1626:
59+
retail:
60+
source:
61+
credscan:
62+
lastModifiedDate: 2024-11-13
63+
policheck:
64+
lastModifiedDate: 2024-11-13
65+
eslint:
66+
lastModifiedDate: 2024-11-13
67+
psscriptanalyzer:
68+
lastModifiedDate: 2024-11-13
69+
armory:
70+
lastModifiedDate: 2024-11-13
71+
binary:
72+
credscan:
73+
lastModifiedDate: 2024-11-13
74+
binskim:
75+
lastModifiedDate: 2024-11-13
76+
spotbugs:
77+
lastModifiedDate: 2024-11-13

.config/guardian/.gdnbaselines

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"properties": {
3+
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
4+
},
5+
"version": "1.0.0",
6+
"baselines": {
7+
"default": {
8+
"name": "default",
9+
"createdDate": "2024-11-13 00:40:35Z",
10+
"lastUpdatedDate": "2024-11-13 00:40:35Z"
11+
}
12+
},
13+
"results": {
14+
"48f03e2797fc40ecea50f878a0268947c7e13db1b2fa51aa3981246844fc4c68": {
15+
"signature": "48f03e2797fc40ecea50f878a0268947c7e13db1b2fa51aa3981246844fc4c68",
16+
"alternativeSignatures": [],
17+
"target": "ScanTelemetry_20241113003616898.json",
18+
"line": 1,
19+
"memberOf": [
20+
"default"
21+
],
22+
"tool": "credscan",
23+
"ruleId": "CSCAN-AZURE0130",
24+
"createdDate": "2024-11-13 00:40:35Z",
25+
"expirationDate": "2025-05-02 01:29:47Z",
26+
"justification": "This error is baselined with an expiration date of 180 days from 2024-11-13 01:29:47Z"
27+
},
28+
"9cb6eddb3f3e886ad06cae65f5886412ff0c5fb0b96d4e943e4efa237be617b1": {
29+
"signature": "9cb6eddb3f3e886ad06cae65f5886412ff0c5fb0b96d4e943e4efa237be617b1",
30+
"alternativeSignatures": [],
31+
"target": "ScanTelemetry_20241113111547065.json",
32+
"line": 1,
33+
"memberOf": [
34+
"default"
35+
],
36+
"tool": "credscan",
37+
"ruleId": "CSCAN-AZURE0130",
38+
"createdDate": "2024-11-13 11:20:17Z",
39+
"expirationDate": "2025-05-02 11:55:15Z",
40+
"justification": "This error is baselined with an expiration date of 180 days from 2024-11-13 11:55:15Z"
41+
}
42+
}
43+
}

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This sets the default behaviour, overriding core.autocrlf
1+
# This sets the default behavior, overriding core.autocrlf
22
* text=auto
33

44
# All source files should have unix line-endings in the repository,

.github/ISSUE_TEMPLATE/05-performance.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Performance
22
description: issues related to performance
33
title: "[Performance] "
4+
labels: ["performance"]
45
body:
56
- type: markdown
67
attributes:

.github/codeql/codeql-config.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: "CodeQL config"
2+
queries:
3+
- uses: security-extended
4+
- uses: security-and-quality
5+
paths-ignore:
6+
- tests
7+
- build

.github/labeler.yml

+18-13
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
1-
api:javascript: '/\bjavascript\b/i'
1+
api:CSharp: '/(\bc\s*sharp\b|\bc#)/i'
22
api:java: '/\bjava\b/i'
3+
api:javascript: '/\bjavascript\b/i'
34
ep:ACL: '/\bacl\b/i'
45
ep:ArmNN: '/\barmnn\b/i'
5-
ep:CUDA: '/\bcuda\b/i'
6-
ep:DML: '/(\bdirectml\b|\bdml\b)/i'
7-
ep:MIGraphX: '/\bmigraphx\b/i'
8-
ep:oneDNN: '/\bonednn\b/i'
6+
ep:CANN: '/\bcann\b/i'
7+
ep:CoreML: '/\bcore\s*ml\b/i'
8+
ep:DML: '/(\bdirect\s*ml\b|\bdml\b)/i'
9+
ep:MIGraphX: '/\bmi\s*graph\s*x\b/i'
10+
ep:oneDNN: '/\bone\s*dnn\b/i'
911
ep:OpenVINO: '/\bopen\s*vino\b/i'
10-
ep:RockchipNPU: '/\brockchip\b/i'
12+
ep:QNN: '/\bqnn\b/i'
13+
ep:RockchipNPU: '/\brockchip(?:npu)?\b/i'
1114
ep:ROCm: '/\brocm\b/i'
12-
ep:TensorRT: '/(\btensor\s*rt\b|\btrt\b)/i'
15+
ep:SNPE: '/\bsnpe\b/i'
1316
ep:tvm: '/\btvm\b/i'
1417
ep:VitisAI: '/\bvitis(?:ai)?\b/i'
15-
platform:jetson: '/\bjetson\b/i'
16-
platform:mobile: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bcore-?ml\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i'
17-
platform:web: '/(\bwebgl\b|\bweb-?gpu\b|\bwasm\b|\bonnxruntime-node\b|\bonnxruntime-web\b)/i'
18-
platform:windows: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i'
19-
model:transformer: '/(\bbert\b|\bgpt-?2\b|\bhugging-?face\b|\blong-?former\b|\bt5\b)/i'
20-
quantization: '/(is this a quantized model\?\n\nYes|\bquantization\b)/i'
18+
ep:WebGPU: '/\bwebgpu\b/i'
19+
ep:WebNN: '/\bwebnn\b/i'
20+
ep:Xnnpack: '/\bxnn\s*pack\b/i'
21+
.NET: '/(\bdot\s*net\b|\bnuget\b|\.net\b)/i'
22+
platform:jetson: '/(\bjetson\b|\bjetpack\b)/i'
23+
platform:mobile: '/(\bobj(?:ective)?-?c\b|\bnnapi\b|\bmobile\b|\bandroid\b|\bios\b|\bxamarin\b|\bmaui\b)/i'
24+
platform:web: '/(\bwebgl\b|\bweb-?gpu\b|\bwasm\b|\bonnxruntime-node\b|\bonnxruntime-web\b|\bonnxruntime-react-native\b|\bnpm\b|\btransformers\.js\b)/i'
25+
model:transformer: '/\btransformers(?!\.js)\b/i'

.github/title-only-labeler.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
ep:CUDA: '/\bcuda\b/i'
2+
ep:TensorRT: '/(\btensor\s*rt\b|\btrt\b)/i'
3+
platform:windows: '/(\bwindows\b|\bwinrt\b|\bwinml\b)/i'
4+
quantization: '/(quant|\bqdq\b)/i'

.github/workflows/cffconvert.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
validate:
1010
name: "validate"
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- name: Check out a copy of the repository
1414
uses: actions/checkout@v4

.github/workflows/codeql.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ on:
1515
schedule:
1616
- cron: '41 13 * * 0'
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
20+
cancel-in-progress: true
21+
1822
jobs:
1923
analyze:
2024
name: Analyze
21-
runs-on: ubuntu-latest
25+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
2226
permissions:
2327
actions: read
2428
contents: read
@@ -55,6 +59,11 @@ jobs:
5559
java-version: '11'
5660
distribution: 'microsoft'
5761

62+
- if: ${{ matrix.language == 'javascript' }}
63+
uses: actions/setup-node@v4
64+
with:
65+
node-version: 20
66+
5867
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5968
# If this step fails, then you should remove it and run the build manually (see below)
6069
- if: ${{ matrix.language != 'cpp' }}

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on: [push, pull_request]
88
jobs:
99
validation:
1010
name: "Validation"
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: gradle/wrapper-validation-action@v3
14+
- uses: gradle/actions/wrapper-validation@v4

.github/workflows/labeler.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ permissions:
88

99
jobs:
1010
triage:
11-
runs-on: ubuntu-latest
11+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
1212
steps:
1313
- uses: github/[email protected]
1414
with:

.github/workflows/lint.yml

+33-8
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- rel-*
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name == 'workflow_dispatch' }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
optional-lint:
1216
name: Optional Lint
@@ -32,23 +36,29 @@ jobs:
3236
lint-python-format:
3337
# Required workflow
3438
name: Python format
35-
runs-on: ubuntu-latest
39+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
40+
permissions:
41+
contents: read
42+
security-events: write
3643
steps:
3744
- uses: actions/checkout@v4
3845
- name: Setup Python
3946
uses: actions/setup-python@v5
4047
with:
41-
# Version range or exact version of Python to use, using SemVer's version range syntax. Reads from .python-version if unset.
48+
# Use the version configured in target-version of [tool.black] section in pyproject.toml.
4249
python-version: "3.10"
4350
- name: Setup Rust
4451
uses: actions-rs/toolchain@v1
4552
with:
4653
toolchain: stable
4754
components: rustfmt
55+
- name: Update PATH
56+
run: |
57+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
4858
- name: Install dependencies
4959
run: |
50-
python -m pip install -r requirements-dev.txt
51-
python -m pip install lintrunner lintrunner-adapters
60+
set -e -x
61+
python -m pip install --user -r requirements-dev.txt
5262
lintrunner init
5363
- name: Run lintrunner on all files
5464
run: |
@@ -73,12 +83,16 @@ jobs:
7383
checkout_path: ${{ github.workspace }}
7484

7585
lint-cpp:
76-
name: Lint C++
86+
name: Optional Lint C++
7787
runs-on: ubuntu-latest
7888
steps:
7989
- uses: actions/checkout@master
90+
- name: Update PATH
91+
run: |
92+
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
93+
8094
- name: Install ninja
81-
run: python -m pip install --upgrade ninja
95+
run: python -m pip install --user --upgrade ninja
8296
- name: Generate compile_commands.json
8397
run: |
8498
python tools/ci_build/build.py \
@@ -89,22 +103,33 @@ jobs:
89103
- name: Generate ONNX protobuf files
90104
run: cmake --build build/Debug --config Debug --target onnx_proto
91105
- uses: reviewdog/action-cpplint@master
106+
continue-on-error: true
92107
with:
93108
github_token: ${{ secrets.github_token }}
94109
reporter: github-pr-check
95-
level: warning
110+
level: info
96111
flags: --linelength=120
97112
--exclude=java/src/main/native/*.c
98113
--exclude=onnxruntime/core/mlas/inc/*
99114
--exclude=onnxruntime/core/mlas/lib/*
100115
--exclude=onnxruntime/contrib_ops/cuda/bert/flash_attention/*
116+
--exclude=build/Debug/*
117+
--exclude=cmake/*
118+
--exclude=csharp/test/*
119+
--exclude=onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/GeneratedShaders/*
120+
--exclude=orttraining/orttraining/test/*
121+
--exclude=onnxruntime/test/*
122+
--exclude=winml/*
101123
filter: "-runtime/references"
102124

103125
lint-js:
104126
name: Lint JavaScript
105-
runs-on: ubuntu-latest
127+
runs-on: ["self-hosted", "1ES.Pool=onnxruntime-github-Ubuntu2204-AMD-CPU"]
106128
steps:
107129
- uses: actions/checkout@v4
130+
- uses: actions/setup-node@v4
131+
with:
132+
node-version: 20
108133
- uses: reviewdog/action-eslint@v1
109134
with:
110135
reporter: github-pr-check

0 commit comments

Comments
 (0)