Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
tilelang
Commits
a79bc5c6
Unverified
Commit
a79bc5c6
authored
Oct 16, 2025
by
Xuehai Pan
Committed by
GitHub
Oct 16, 2025
Browse files
[CI] Fix ROCm CI (#1043)
* [CI] fix ROCm CI * feat: add a hook to error out on no test runs
parent
1f4ffdb8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
4 deletions
+49
-4
.github/workflows/ci.yml
.github/workflows/ci.yml
+1
-4
examples/conftest.py
examples/conftest.py
+24
-0
testing/conftest.py
testing/conftest.py
+24
-0
No files found.
.github/workflows/ci.yml
View file @
a79bc5c6
...
...
@@ -90,7 +90,7 @@ jobs:
name
:
self-hosted-amd
# Format: [Nightly-]ROCm-<major>.<minor>[.<patch>]. E.g., "ROCm-6.4" or "Nightly-ROCm-7.0".
# Use "Nightly-" prefix to use torch nightly builds.
toolkit
:
Nightly-
ROCm-
7.0
toolkit
:
ROCm-
6.3
-
tags
:
[
macos-latest
]
name
:
macos-latest
toolkit
:
Metal
# or Nightly-Metal
...
...
@@ -352,8 +352,6 @@ jobs:
-
name
:
Run ROCm tests with Python ${{ matrix.python-version }} (${{ matrix.runner.toolkit }})
id
:
rocm-tests
if
:
contains(matrix.runner.toolkit, 'ROCm')
# FIXME: ROCm test incorrectly skips tests
continue-on-error
:
true
run
:
|
cd testing
PYTEST=(
...
...
@@ -362,7 +360,6 @@ jobs:
)
"${PYTEST[@]}" --maxfail=3 --numprocesses=4 \
./python/amd/test_tilelang_test_amd.py
echo "::error::ROCm tests are known to be skipped incorrectly due to ROCm TVM build issues." >&2
# Apple Metal tests
-
name
:
Run Metal tests with Python ${{ matrix.python-version }} (${{ matrix.runner.toolkit }})
...
...
examples/conftest.py
View file @
a79bc5c6
import
os
import
random
import
pytest
os
.
environ
[
"PYTHONHASHSEED"
]
=
"0"
...
...
@@ -18,3 +19,26 @@ except ImportError:
pass
else
:
np
.
random
.
seed
(
0
)
def
pytest_terminal_summary
(
terminalreporter
,
exitstatus
,
config
):
"""Ensure that at least one test is collected. Error out if all tests are skipped."""
known_types
=
{
"failed"
,
"passed"
,
"skipped"
,
"deselected"
,
"xfailed"
,
"xpassed"
,
"warnings"
,
"error"
,
}
if
(
sum
(
len
(
terminalreporter
.
stats
.
get
(
k
,
[]))
for
k
in
known_types
.
difference
({
"skipped"
,
"deselected"
}))
==
0
):
terminalreporter
.
write_sep
(
"!"
,
(
f
"Error: No tests were collected. "
f
"
{
dict
(
sorted
((
k
,
len
(
v
))
for
k
,
v
in
terminalreporter
.
stats
.
items
()))
}
"
),
)
pytest
.
exit
(
"No tests were collected."
,
returncode
=
5
)
testing/conftest.py
View file @
a79bc5c6
import
os
import
random
import
pytest
os
.
environ
[
"PYTHONHASHSEED"
]
=
"0"
...
...
@@ -18,3 +19,26 @@ except ImportError:
pass
else
:
np
.
random
.
seed
(
0
)
def
pytest_terminal_summary
(
terminalreporter
,
exitstatus
,
config
):
"""Ensure that at least one test is collected. Error out if all tests are skipped."""
known_types
=
{
"failed"
,
"passed"
,
"skipped"
,
"deselected"
,
"xfailed"
,
"xpassed"
,
"warnings"
,
"error"
,
}
if
(
sum
(
len
(
terminalreporter
.
stats
.
get
(
k
,
[]))
for
k
in
known_types
.
difference
({
"skipped"
,
"deselected"
}))
==
0
):
terminalreporter
.
write_sep
(
"!"
,
(
f
"Error: No tests were collected. "
f
"
{
dict
(
sorted
((
k
,
len
(
v
))
for
k
,
v
in
terminalreporter
.
stats
.
items
()))
}
"
),
)
pytest
.
exit
(
"No tests were collected."
,
returncode
=
5
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment