Skip to content

Commit 93a7f1c

Browse files
fix bazel build //tests/core/runtime:runtime_tests issue (#3804)
1 parent 70874be commit 93a7f1c

File tree

4 files changed

+42
-74
lines changed

4 files changed

+42
-74
lines changed

.github/workflows/build-test-linux-x86_64_rtx.yml

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -77,44 +77,6 @@ jobs:
7777
architecture: "x86_64"
7878
use-rtx: true
7979

80-
tests-py-torchscript-fe:
81-
name: Test torchscript frontend [Python]
82-
needs: [filter-matrix, build]
83-
strategy:
84-
fail-fast: false
85-
matrix:
86-
include:
87-
- repository: pytorch/tensorrt
88-
package-name: torch_tensorrt
89-
pre-script: packaging/pre_build_script.sh
90-
post-script: packaging/post_build_script.sh
91-
smoke-test-script: packaging/smoke_test_script.sh
92-
uses: ./.github/workflows/linux-test.yml
93-
with:
94-
job-name: tests-py-torchscript-fe
95-
repository: "pytorch/tensorrt"
96-
ref: ""
97-
test-infra-repository: pytorch/test-infra
98-
test-infra-ref: main
99-
build-matrix: ${{ needs.filter-matrix.outputs.matrix }}
100-
pre-script: ${{ matrix.pre-script }}
101-
use-rtx: true
102-
script: |
103-
set -euo pipefail
104-
export USE_HOST_DEPS=1
105-
export CI_BUILD=1
106-
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
107-
pushd .
108-
cd tests/modules
109-
python hub.py
110-
popd
111-
pushd .
112-
cd tests/py/ts
113-
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
114-
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
115-
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
116-
popd
117-
11880
tests-py-dynamo-converters:
11981
name: Test dynamo converters [Python]
12082
needs: [filter-matrix, build]

.github/workflows/build-test-windows_rtx.yml

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -87,40 +87,6 @@ jobs:
8787
use-rtx: true
8888
timeout: 120
8989

90-
tests-py-torchscript-fe:
91-
name: Test torchscript frontend [Python]
92-
needs: [substitute-runner, build]
93-
strategy:
94-
fail-fast: false
95-
matrix:
96-
include:
97-
- repository: pytorch/tensorrt
98-
package-name: torch_tensorrt
99-
uses: ./.github/workflows/windows-test.yml
100-
with:
101-
job-name: tests-py-torchscript-fe
102-
repository: ${{ matrix.repository }}
103-
ref: ""
104-
test-infra-repository: pytorch/test-infra
105-
test-infra-ref: main
106-
build-matrix: ${{ needs.substitute-runner.outputs.matrix }}
107-
pre-script: packaging/driver_upgrade.bat
108-
use-rtx: true
109-
script: |
110-
set -euo pipefail
111-
export USE_HOST_DEPS=1
112-
export CI_BUILD=1
113-
pushd .
114-
cd tests/modules
115-
python hub.py
116-
popd
117-
pushd .
118-
cd tests/py/ts
119-
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_api_test_results.xml api/
120-
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_models_test_results.xml models/
121-
python -m pytest -ra --junitxml=${RUNNER_TEST_RESULTS_DIR}/ts_integrations_test_results.xml integrations/
122-
popd
123-
12490
tests-py-dynamo-converters:
12591
name: Test dynamo converters [Python]
12692
needs: [substitute-runner, build]

tests/core/runtime/BUILD

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,27 @@ package(default_visibility = ["//visibility:public"])
55
config_setting(
66
name = "use_torch_whl",
77
flag_values = {
8-
"//toolchains/dep_src:torch": "whl"
8+
"//toolchains/dep_src:torch": "whl",
9+
},
10+
)
11+
12+
config_setting(
13+
name = "sbsa",
14+
constraint_values = [
15+
"@platforms//cpu:aarch64",
16+
],
17+
flag_values = {
18+
"//toolchains/dep_collection:compute_libs": "default",
19+
},
20+
)
21+
22+
config_setting(
23+
name = "jetpack",
24+
constraint_values = [
25+
"@platforms//cpu:aarch64",
26+
],
27+
flag_values = {
28+
"//toolchains/dep_collection:compute_libs": "jetpack",
929
},
1030
)
1131

@@ -16,7 +36,6 @@ config_setting(
1636
],
1737
)
1838

19-
2039
runtime_test(
2140
name = "test_multi_device_safe_mode",
2241
)

tests/util/BUILD

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,27 @@ config_setting(
4343
},
4444
)
4545

46+
config_setting(
47+
name = "rtx_x86_64",
48+
constraint_values = [
49+
"@platforms//cpu:x86_64",
50+
"@platforms//os:linux",
51+
],
52+
flag_values = {
53+
"//toolchains/dep_collection:compute_libs": "rtx",
54+
},
55+
)
56+
57+
config_setting(
58+
name = "rtx_win",
59+
constraint_values = [
60+
"@platforms//os:windows",
61+
],
62+
flag_values = {
63+
"//toolchains/dep_collection:compute_libs": "rtx",
64+
},
65+
)
66+
4667
cc_library(
4768
name = "util",
4869
srcs = [

0 commit comments

Comments
 (0)