Skip to content

Commit 4253a77

Browse files
authored
[sync](feat) Sync .github workflows from main to main-dev (#1576)
Signed-off-by: Jiahao Su <damow890@gmail.com>
1 parent 62d45bb commit 4253a77

20 files changed

Lines changed: 617 additions & 470 deletions

.github/ISSUE_TEMPLATE/200-installation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ body:
1515
Please show your current environment details here.
1616
value: |
1717
```text
18-
Triton-Ascend==3.2.0
18+
Triton-Ascend==3.2.1
1919
CANN==8.5.0
2020
torch_npu==2.7.1
2121
```
@@ -28,7 +28,7 @@ body:
2828
Paste the full command you are trying to execute.
2929
value: |
3030
```sh
31-
pip install triton-ascend
31+
pip install triton-ascend==3.2.1
3232
```
3333
- type: markdown
3434
attributes:

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

.github/ISSUE_TEMPLATE/performance.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/docs-ci/codespell.whitelist.json

Lines changed: 6 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -139,104 +139,14 @@
139139
"dtypes",
140140
"blockify",
141141
"Exampl",
142-
"ccdedreams",
143-
"Lijuan",
144-
"hailijuan",
145-
"Yingcong",
146-
"Liang",
147-
"wcleungaj",
148142
"Jingchang",
149-
"jingchangshi",
150-
"Kaipeng",
151143
"Xing",
152-
"kpxing",
153-
"Zhijie",
154-
"zhaozhijie",
155-
"Kaixin",
156-
"Chunli",
157144
"Zhang",
158-
"Xuan",
159-
"Ziqi",
160-
"hongziqi",
161-
"Peiji",
162145
"Ingu",
163-
"Tianyao",
164-
"TYSFG",
165-
"Yihan",
166-
"Kanua",
167-
"zhaojiqiao",
168-
"andreybokhanko",
169-
"zhangchaofan",
170-
"yuanjingya",
171-
"yufeng",
172-
"jtaizhang",
173-
"lbqg",
174-
"shaoyiyang",
175-
"xiechenye",
176-
"Zackc",
177-
"Levein",
178-
"ciggaco",
179-
"xlinn",
180-
"jeanniely",
181-
"elizaveta",
182-
"wuzhenqing",
183-
"szhewei",
184-
"eddine",
185-
"jqran",
186-
"Jemtaly",
187-
"nanalin",
188-
"noodleslx",
189-
"hocky",
190-
"zhudada",
191-
"uladz",
192-
"zhaojingkai",
193-
"ardazishvili",
194-
"jeshd",
195-
"chongweizhi",
196-
"Sifan",
197-
"weilinquan",
198-
"vgaskov",
199-
"hongshiyi",
200-
"wutianyao",
201-
"luobaiqing",
202-
"Yaser",
203-
"alankadiev",
204-
"zhaojieshan",
205-
"dainbow",
206-
"shenzhaofeng",
207-
"fishofnanqi",
208-
"Zzyiiii",
209-
"wodelt",
210-
"huchengbei",
211-
"junelotus",
212-
"zhaojies",
213-
"elstainniles",
214-
"kang",
215146
"ingu",
216-
"zhuxuejie",
217-
"zhangjunbo",
218-
"mengxuancai",
219-
"zhangshuolei",
220-
"zhangshuoleiokok",
221-
"cxtjjcz",
222-
"dingshuooffice",
223-
"saruagithub",
224-
"junelutus",
225-
"hipudding",
226-
"huafengchun",
227-
"zhiliangtang",
228-
"adamas",
229-
"wszh",
230-
"zhucehw",
231-
"qhrusty",
232147
"shen",
233-
"zhaofeng",
234-
"ffrog",
235-
"qiuqianjin",
236-
"bochu",
237148
"shijingchang",
238149
"zhang",
239-
"chunli",
240150
"Bufferize",
241151
"parallely",
242152
"kwargs",
@@ -319,5 +229,10 @@
319229
"specitfic",
320230
"pytorch",
321231
"vllm",
322-
"topk"
232+
"topk",
233+
"rtol",
234+
"atol",
235+
"ffts",
236+
"ctypes",
237+
"xdist"
323238
]

.github/docs-ci/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "triton-ascend docs check config",
33
"config": {
44
"base": {
5-
"docPath": "^(?!.*menu).*$",
5+
"docPath": "^(?!.*(?:menu|CONTRIBUTOR|MAINTAINERS)).*$",
66
"markdownlintRemoteConfigUrl": ".github/docs-ci/markdownlint.config.json",
77
"linkValidityCheckRemoteWhitelistUrl": ".github/docs-ci/url.whitelist.json",
88
"resourceExistenceCheckRemoteWhitelistUrl": ".github/docs-ci/url.whitelist.json",
Lines changed: 41 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,56 @@
11
name: Release Triton Ascend Images
22

3-
# TEMPORARILY DISABLED — all triggers commented out so this workflow never
4-
# starts and never occupies a runner. Uncomment to re-enable.
53
on:
64
workflow_dispatch:
7-
# push:
8-
# branches: [main]
9-
# paths:
10-
# - 'docker/Dockerfile'
11-
# - 'Makefile'
12-
# - 'requirements.txt'
13-
# - 'requirements_dev.txt'
14-
# - '.github/workflows/build-docker-image.yml'
15-
# pull_request:
16-
# branches: [main]
17-
# paths:
18-
# - 'docker/Dockerfile'
19-
# - 'Makefile'
20-
# - 'requirements.txt'
21-
# - 'requirements_dev.txt'
22-
# - '.github/workflows/build-docker-image.yml'
5+
push:
6+
branches: [main]
7+
paths:
8+
- 'docker/Dockerfile'
9+
- 'requirements.txt'
10+
- 'requirements_dev.txt'
11+
- '.github/workflows/build-docker-image.yml'
12+
pull_request:
13+
branches: [main]
14+
paths:
15+
- 'docker/Dockerfile'
16+
- 'requirements.txt'
17+
- 'requirements_dev.txt'
18+
- '.github/workflows/build-docker-image.yml'
19+
20+
concurrency:
21+
group: build-docker-${{ github.ref }}
22+
cancel-in-progress: true
2323

2424
permissions:
2525
contents: read
2626
actions: write
2727

2828
jobs:
2929
build-images:
30-
name: Build ${{ matrix.cann_version }}-${{ matrix.chip_type }}-${{ matrix.os }}-py${{ matrix.python_version }}
31-
runs-on: ubuntu-22.04
30+
name: Build ${{ matrix.cann_version }}-${{ matrix.chip_type }}-${{ matrix.os }}-py${{ matrix.python_version }}-${{ matrix.platforms }}
31+
# Use buildkit runner matching the target platform.
32+
runs-on: ${{ matrix.platforms == 'amd64' && 'linux-amd64-cpu-4' || 'linux-aarch64-cpu-4' }}
33+
container:
34+
image: swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:9.0.0-a3-ubuntu22.04-py3.12
35+
timeout-minutes: 360
3236

3337
strategy:
3438
fail-fast: false
39+
# Limit parallelism: too many concurrent builds overwhelm the shared
40+
# buildkitd workers and SWR (auth timeouts / connection resets).
41+
max-parallel: 6
3542
matrix:
3643
cann_version: [8.5.0, 9.0.0-beta.2]
3744
chip_type: [910b, a3]
3845
os: [ubuntu22.04]
3946
python_version: ["3.10", "3.11"]
47+
platforms: [amd64, arm64]
4048

4149
steps:
4250
- name: Checkout code
4351
uses: actions/checkout@v4
44-
45-
- name: Set up QEMU
46-
uses: docker/setup-qemu-action@v3
47-
48-
- name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@v3
52+
with:
53+
symlinks: true
5054

5155
- name: Login to Quay.io
5256
if: github.event_name == 'push'
@@ -59,6 +63,7 @@ jobs:
5963
- name: Generate tags
6064
id: tags
6165
run: |
66+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
6267
CANN_TAG="${{ matrix.cann_version }}-${{ matrix.chip_type }}-${{ matrix.os }}-py${{ matrix.python_version }}"
6368
GIT_COMMIT_SHORT="$(git rev-parse --short HEAD)"
6469
TAG_COMMIT="${CANN_TAG}-${GIT_COMMIT_SHORT}"
@@ -68,16 +73,19 @@ jobs:
6873
echo "tag_latest=${TAG_LATEST}" >> $GITHUB_OUTPUT
6974
7075
- name: Build and push
71-
uses: docker/build-push-action@v6
76+
uses: docker/build-push-action@v7
7277
with:
7378
context: .
7479
file: docker/Dockerfile
75-
platforms: linux/amd64,linux/arm64
7680
push: ${{ github.event_name == 'push' }}
7781
tags: |
78-
quay.io/ascend/triton:${{ steps.tags.outputs.tag_commit }}
79-
quay.io/ascend/triton:${{ steps.tags.outputs.tag_latest }}
82+
quay.io/ascend/triton:${{ steps.tags.outputs.tag_commit }}-${{ matrix.platforms }}
83+
quay.io/ascend/triton:${{ steps.tags.outputs.tag_latest }}-${{ matrix.platforms }}
8084
build-args: |
81-
CANN_BASE_IMAGE=quay.io/ascend/cann:${{ steps.tags.outputs.cann_tag }}
82-
cache-from: type=gha
83-
cache-to: type=gha,mode=max
85+
CANN_BASE_IMAGE=swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:${{ steps.tags.outputs.cann_tag }}
86+
APTMIRROR=http://cache-service.nginx-pypi-cache.svc.cluster.local:8081
87+
PIP_INDEX_URL=http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
88+
PIP_TRUSTED_HOST=cache-service.nginx-pypi-cache.svc.cluster.local
89+
TORCH_INDEX_URL=http://cache-service.nginx-pypi-cache.svc.cluster.local/whl/cpu
90+
cache-from: type=registry,ref=swr.cn-southwest-2.myhuaweicloud.com/modelfoundry/triton-buildcache:${{ matrix.cann_version }}-${{ matrix.platforms }}
91+
cache-to: type=registry,ref=swr.cn-southwest-2.myhuaweicloud.com/modelfoundry/triton-buildcache:${{ matrix.cann_version }}-${{ matrix.platforms }},mode=max

0 commit comments

Comments
 (0)