Skip to content

Don't run memleak tests in CI#6583

Merged
rapids-bot[bot] merged 2 commits intorapidsai:branch-25.06from
jcrist:remove-memleak-tests-from-ci
Apr 24, 2025
Merged

Don't run memleak tests in CI#6583
rapids-bot[bot] merged 2 commits intorapidsai:branch-25.06from
jcrist:remove-memleak-tests-from-ci

Conversation

@jcrist
Copy link
Copy Markdown
Member

@jcrist jcrist commented Apr 24, 2025

cuml has a few memleak tests. These are currently all xfailed due to flakiness in CI (or poor measurement of "is this a memleak"). Currently we skip them manually with -m "not memleak" in most (but not all) test runs, and have a dedicated run for them in the nightlies. However, since all memleak tests are xfailed, the nightly run (which takes 18 mins per build) provides no signal. These just aren't currently good tests.

I was encouraged offline to keep the test code around. Rather than fully delete them, I've:

  • Made the memleak marker skip by default. You need to invoke pytest with --run_memleak to run the memleak tests. This means these tests no longer run on any build.
  • Removed the run of them memleak tests from nightly CI.
  • Removed some vestiges of trying to skip them in certain runs. We skip them by default now, no need to manually specify skipping.

Fixes #6475.

`cuml` has a few `memleak` tests. These are currently all xfailed due to
flakiness in CI (or poor measurement of "is this a memleak"). Currently
we skip them manually with `-m "not memleak"` in _most_ (but not all)
test runs, and have a dedicated run for them in the nightlies. However,
since all memleak tests are xfailed, the nightly run (which takes 18
mins per build) provides no signal. These just aren't currently good
tests.

I was encouraged offline to keep the test code around. Rather than fully
delete them, I've:

- Made the `memleak` marker skip by default. You need to invoke pytest
  with `--run_memleak` to run the memleak tests. This means these tests
  no longer run on any build.
- Removed the run of them memleak tests from nightly CI.
- Removed some vestiges of trying to skip them in certain runs. We skip
  them by default now, no need to manually specify skipping.
@jcrist jcrist requested review from a team as code owners April 24, 2025 17:59
@jcrist jcrist requested review from bdice and cjnolet April 24, 2025 17:59
@github-actions github-actions Bot added Cython / Python Cython or Python issue ci labels Apr 24, 2025
@jcrist jcrist added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Apr 24, 2025
@jcrist jcrist self-assigned this Apr 24, 2025
@jcrist
Copy link
Copy Markdown
Member Author

jcrist commented Apr 24, 2025

/merge

@rapids-bot rapids-bot Bot merged commit d3dcbc1 into rapidsai:branch-25.06 Apr 24, 2025
77 checks passed
@jcrist jcrist deleted the remove-memleak-tests-from-ci branch April 24, 2025 21:52
Ofek-Haim pushed a commit to Ofek-Haim/cuml that referenced this pull request May 13, 2025
`cuml` has a few `memleak` tests. These are currently all xfailed due to flakiness in CI (or poor measurement of "is this a memleak"). Currently we skip them manually with `-m "not memleak"` in _most_ (but not all) test runs, and have a dedicated run for them in the nightlies. However, since all memleak tests are xfailed, the nightly run (which takes 18 mins per build) provides no signal. These just aren't currently good tests.

I was encouraged offline to keep the test code around. Rather than fully delete them, I've:

- Made the `memleak` marker skip by default. You need to invoke pytest with `--run_memleak` to run the memleak tests. This means these tests no longer run on any build.
- Removed the run of them memleak tests from nightly CI.
- Removed some vestiges of trying to skip them in certain runs. We skip them by default now, no need to manually specify skipping.

Fixes rapidsai#6475.

Authors:
  - Jim Crist-Harif (https://github.com/jcrist)

Approvers:
  - Bradley Dice (https://github.com/bdice)

URL: rapidsai#6583
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Cython / Python Cython or Python issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[OPT] enable strict_xfail in pytest or remove memory leak tests

2 participants