Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_device_memory_objects(): dispatch on cudf.core.frame.Frame #658

Merged

Conversation

madsbk
Copy link
Member

@madsbk madsbk commented Jun 21, 2021

get_device_memory_objects() now dispatch on cudf.core.frame.Frame instead of cudf.core.dataframe.DataFrame only.

This includes the CI fix, closes #659

@madsbk madsbk requested a review from a team as a code owner June 21, 2021 09:39
@github-actions github-actions bot added the python python code needed label Jun 21, 2021
@madsbk madsbk added 2 - In Progress Currently a work in progress improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Jun 21, 2021
@madsbk
Copy link
Member Author

madsbk commented Jun 21, 2021

Current CI fail relates to rapidsai/cudf#8570

@quasiben
Copy link
Member

@charlesbluca can you take a look at this ?

@charlesbluca
Copy link
Member

Sure! @madsbk do you have a link to the test failure? I am only seeing passed and pending checks on my end

@madsbk
Copy link
Member Author

madsbk commented Jun 22, 2021

rerun tests

@quasiben
Copy link
Member

It looks like things are failing in distributed tests:

04:08:33 file /opt/conda/envs/rapids/lib/python3.7/site-packages/distributed/tests/test_nanny.py, line 444
04:08:33   @pytest.mark.asyncio
04:08:33   async def test_nanny_closes_cleanly(cleanup):
04:08:33       async with Scheduler() as s:
04:08:33           n = await Nanny(s.address)
04:08:33           assert n.process.pid
04:08:33           proc = n.process.process
04:08:33           await n.close()
04:08:33           assert not n.process
04:08:33           assert not proc.is_alive()
04:08:33           assert proc.exitcode == 0
04:08:33 E       fixture 'cleanup' not found
04:08:33 >       available fixtures: anyio_backend, anyio_backend_name, anyio_backend_options, benchmark, benchmark_weave, cache, capfd, capfdbinary, caplog, capsys, capsysbinary, cov, doctest_namespace, event_loop, monkeypatch, no_cover, pytestconfig, record_property, record_testsuite_property, record_xml_attribute, recwarn, testrun_uid, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, unused_tcp_port, unused_tcp_port_factory, worker_id
04:08:33 >       use 'pytest --fixtures [testpath]' for help on them.

These test pass locally so. I'll rerun now

@quasiben
Copy link
Member

rerun tests

@madsbk madsbk requested a review from a team as a code owner June 23, 2021 08:38
@github-actions github-actions bot added the gpuCI gpuCI issue label Jun 23, 2021
@codecov-commenter
Copy link

codecov-commenter commented Jun 23, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.08@f3220a4). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.08     #658   +/-   ##
===============================================
  Coverage                ?   61.75%           
===============================================
  Files                   ?       21           
  Lines                   ?     2604           
  Branches                ?        0           
===============================================
  Hits                    ?     1608           
  Misses                  ?      996           
  Partials                ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f3220a4...fbff1ee. Read the comment docs.

Copy link
Member

@quasiben quasiben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @madsbk

@quasiben
Copy link
Member

@gpucibot merge

Copy link
Member

@ajschmidt8 ajschmidt8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved with a suggestion 👍

Comment on lines +120 to +125
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_cupy.py
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_numba.py
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_rmm.py
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_collection_cuda.py
py.test --cache-clear -vs distributed/distributed/tests/test_nanny.py
py.test --cache-clear -vs distributed/distributed/diagnostics/tests/test_nvml.py
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_cupy.py
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_numba.py
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_rmm.py
py.test --cache-clear -vs distributed/distributed/protocol/tests/test_collection_cuda.py
py.test --cache-clear -vs distributed/distributed/tests/test_nanny.py
py.test --cache-clear -vs distributed/distributed/diagnostics/tests/test_nvml.py
pytest --cache-clear -vs distributed/distributed/protocol/tests/test_cupy.py
pytest --cache-clear -vs distributed/distributed/protocol/tests/test_numba.py
pytest --cache-clear -vs distributed/distributed/protocol/tests/test_rmm.py
pytest --cache-clear -vs distributed/distributed/protocol/tests/test_collection_cuda.py
pytest --cache-clear -vs distributed/distributed/tests/test_nanny.py
pytest --cache-clear -vs distributed/distributed/diagnostics/tests/test_nvml.py

While we're touching these lines, can we update these commands to pytest instead of py.test? It seems that py.test may be deprecated according to the SO discussion below.

https://stackoverflow.com/q/39495429

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whoops. forgot that @gpucibot merge would merge after my approval. this can be addressed in a future PR I guess.

@rapids-bot rapids-bot bot merged commit 0a221ec into rapidsai:branch-21.08 Jun 23, 2021
rapids-bot bot pushed a commit that referenced this pull request Jun 23, 2021
@madsbk madsbk deleted the fixed_get_device_memory_objects branch November 1, 2021 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 - In Progress Currently a work in progress gpuCI gpuCI issue improvement Improvement / enhancement to an existing function non-breaking Non-breaking change python python code needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants