Skip to content

Commit

Permalink
Switch traceback to native in pytest (#633)
Browse files Browse the repository at this point in the history
In cudf & cuml we have observed a ~10% to ~20% respectively speed up of pytest suite execution by switching pytest traceback to `--native`:

```
currently:

102474 passed, 2117 skipped, 902 xfailed in 892.16s (0:14:52)

--tb=short:

102474 passed, 2117 skipped, 902 xfailed in 898.99s (0:14:58)

--tb=no:

102474 passed, 2117 skipped, 902 xfailed in 815.98s (0:13:35)

--tb=native:

102474 passed, 2117 skipped, 902 xfailed in 820.92s (0:13:40)
```

This PR makes a similar change to `cuxfilter` repo.

xref: rapidsai/cudf#16851

Authors:
  - GALI PREM SAGAR (https://github.com/galipremsagar)

Approvers:
  - Ajay Thorve (https://github.com/AjayThorve)
  - Jake Awe (https://github.com/AyodeAwe)

URL: #633
  • Loading branch information
galipremsagar authored Sep 26, 2024
1 parent 58238a5 commit 0cd1568
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ci/test_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ pushd python/
pytest \
--cache-clear \
--junitxml="${RAPIDS_TESTS_DIR}/junit-cuxfilter.xml" \
--numprocesses=8 \
--dist=worksteal \
--numprocesses=8 \
--dist=worksteal \
--cov-config=.coveragerc \
--cov=cuxfilter \
--cov-report=xml:"${RAPIDS_COVERAGE_DIR}/cuxfilter-coverage.xml" \
Expand Down
4 changes: 4 additions & 0 deletions python/cuxfilter/tests/pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Copyright (c) 2024, NVIDIA CORPORATION.

[pytest]
addopts = --tb=native

0 comments on commit 0cd1568

Please sign in to comment.