Skip to content

Commit a63d228

Browse files
committed
Merge latest master into roll-migration
2 parents 56fd4c6 + 54778c8 commit a63d228

319 files changed

Lines changed: 27319 additions & 12655 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# @global-owner1 and @global-owner2 will be requested for
44
# review when someone opens a pull request.
55

6-
/src/flag_gems/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
6+
/src/flag_gems/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit
77
/src/flag_gems/runtime/backend/*
88

9-
/tests/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
10-
/modules_tests/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
11-
/benchmark/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
9+
/tests/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit
10+
/modules_tests/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit
11+
/benchmark/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit
1212

1313

14-
/lib/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
15-
/ctests/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
16-
/include/* @kiddyjinjin @0x45f @zhangpeiyang1 @huangyiqun
14+
/lib/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit
15+
/ctests/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit
16+
/include/* @0x45f @huangyiqun @douxetpur @bin913 @w1120029931-bit

.github/workflows/backend-test.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
- uses: actions/checkout@v6
6060
with:
6161
ssh-key: ${{ secrets.RUNNER_SSH_KEY }}
62+
- name: Setup FlagGems
63+
shell: bash
64+
run: |
65+
if [[ "${RUNNER_LABEL}" != "h20" ]]; then
66+
export HTTP_PROXY="http://10.1.12.38:38002"
67+
export HTTPS_PROXY="http://10.1.12.38:38002"
68+
fi
69+
./setup.sh ${{ inputs.vendor }}
6270
- name: Check GPU availability
6371
if: ${{ inputs.gpu_check_script != '' }}
6472
shell: bash
@@ -78,9 +86,4 @@ jobs:
7886
CHANGED_FILES: ${{ inputs.changed_files }}
7987
RUNNER_LABEL: ${{ inputs.runner_label }}
8088
run: |
81-
if [[ "${RUNNER_LABEL}" != "h20" ]]; then
82-
export HTTP_PROXY="http://10.1.12.38:38002"
83-
export HTTPS_PROXY="http://10.1.12.38:38002"
84-
fi
85-
86-
tools/test_backends.sh ${{ inputs.vendor }} ${{ inputs.pr_id }}
89+
tools/test-op.sh ${{ inputs.pr_id }}

benchmark/conftest.py

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -137,14 +137,19 @@ def pytest_addoption(parser):
137137
help="Specify the shape file name for benchmarks. If not specified, a default shape list will be used.",
138138
)
139139

140-
parser.addoption(
141-
"--record",
142-
action="store",
143-
default="none",
144-
required=False,
145-
choices=["none", "log"],
146-
help="Benchmark info recorded in log files or not",
147-
)
140+
try:
141+
parser.addoption(
142+
"--record",
143+
action="store",
144+
default="none",
145+
required=False,
146+
choices=["none", "log"],
147+
help="Benchmark info recorded in log files or not",
148+
)
149+
except ValueError:
150+
# Mixed test+benchmark pytest runs may already register --record in
151+
# tests/conftest.py. Reuse the existing option in that case.
152+
pass
148153

149154
parser.addoption(
150155
"--parallel",
@@ -158,11 +163,16 @@ def pytest_addoption(parser):
158163
),
159164
)
160165

161-
parser.addoption(
162-
"--collect-marks",
163-
action="store_true",
164-
help="Collect the tests with marker information without executing them",
165-
)
166+
try:
167+
parser.addoption(
168+
"--collect-marks",
169+
action="store_true",
170+
help="Collect the tests with marker information without executing them",
171+
)
172+
except ValueError:
173+
# Mixed test+benchmark pytest runs may already register this option in
174+
# tests/conftest.py. Reuse the existing option in that case.
175+
pass
166176

167177

168178
def pytest_configure(config):

0 commit comments

Comments
 (0)