From d4835eef065d0ee680045becebfefcfc343bf34a Mon Sep 17 00:00:00 2001 From: GALI PREM SAGAR Date: Wed, 25 Sep 2024 13:22:50 -0500 Subject: [PATCH] Switch `traceback` to `native` in pytests (#1464) 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 similar change to `cuspatial` repo. xref: https://github.com/rapidsai/cudf/pull/16851 Authors: - GALI PREM SAGAR (https://github.com/galipremsagar) Approvers: - Bradley Dice (https://github.com/bdice) - Paul Taylor (https://github.com/trxcllnt) URL: https://github.com/rapidsai/cuspatial/pull/1464 --- python/cuproj/cuproj/tests/pytest.ini | 5 +++++ python/cuspatial/cuspatial/tests/pytest.ini | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 python/cuproj/cuproj/tests/pytest.ini create mode 100644 python/cuspatial/cuspatial/tests/pytest.ini diff --git a/python/cuproj/cuproj/tests/pytest.ini b/python/cuproj/cuproj/tests/pytest.ini new file mode 100644 index 000000000..bf70c06f8 --- /dev/null +++ b/python/cuproj/cuproj/tests/pytest.ini @@ -0,0 +1,5 @@ +# Copyright (c) 2024, NVIDIA CORPORATION. + +[pytest] +addopts = --tb=native + diff --git a/python/cuspatial/cuspatial/tests/pytest.ini b/python/cuspatial/cuspatial/tests/pytest.ini new file mode 100644 index 000000000..bf70c06f8 --- /dev/null +++ b/python/cuspatial/cuspatial/tests/pytest.ini @@ -0,0 +1,5 @@ +# Copyright (c) 2024, NVIDIA CORPORATION. + +[pytest] +addopts = --tb=native +