Skip to content

[BUG]: test_property_graph CI Failure #3081

@lowener

Description

@lowener

Version

23.02

Which installation method(s) does this occur on?

No response

Describe the bug.

CI ran into this issue:

=========================== short test summary info ============================
FAILED tests/test_property_graph.py::test_renumber_vertices_by_type[df_type=cudf.DataFrame-None] - AttributeError: 'bool' object has no attribute 'all'
FAILED tests/test_property_graph.py::test_renumber_vertices_by_type[df_type=cudf.DataFrame-prev_id] - AttributeError: 'bool' object has no attribute 'all'
FAILED tests/test_property_graph.py::test_renumber_edges_by_type[df_type=cudf.DataFrame-None] - AttributeError: 'bool' object has no attribute 'all'
FAILED tests/test_property_graph.py::test_renumber_edges_by_type[df_type=cudf.DataFrame-prev_id] - AttributeError: 'bool' object has no attribute 'all'
= 4 failed, 1488 passed, 561 skipped, 22 deselected, 899 warnings in 1484.16s (0:24:44) =
Ran Python pytest for cugraph : return code was: 1, test script exit code is now: 1
=================================== FAILURES ===================================
_________ test_renumber_vertices_by_type[df_type=cudf.DataFrame-None] __________

dataset1_PropertyGraph = (<PropertyGraph object at 0x7f6baeca8610>, {'merchants': [['merchant_id', 'merchant_location', 'merchant_size', 'merch...yer_id', 'amount'], [(11, 1123.98), (4, 3243.7), (21, 8932.3), (16, 3241.77), (86, 789.2), (89021, 23.98), ...]], ...})
prev_id_column = None

    @pytest.mark.parametrize("prev_id_column", [None, "prev_id"])
    def test_renumber_vertices_by_type(dataset1_PropertyGraph, prev_id_column):
        from cugraph.experimental import PropertyGraph
    
        (pG, data) = dataset1_PropertyGraph
        with pytest.raises(ValueError, match="existing column"):
            pG.renumber_vertices_by_type("merchant_size")
        df_id_ranges = pG.renumber_vertices_by_type(prev_id_column)
        expected = {
            "merchants": [0, 4],  # stop is inclusive
            "users": [5, 8],
        }
        for key, (start, stop) in expected.items():
            assert df_id_ranges.loc[key, "start"] == start
            assert df_id_ranges.loc[key, "stop"] == stop
            df = pG.get_vertex_data(types=[key])
            assert len(df) == stop - start + 1
>           assert (df["_VERTEX_"] == list(range(start, stop + 1))).all()
E           AttributeError: 'bool' object has no attribute 'all'

Link to job log: https://gpuci.gpuopenanalytics.com/job/rapidsai/job/gpuci/job/cugraph/job/prb/job/cugraph-gpu-test/CUDA=11.2,GPU_LABEL=driver-495,LINUX_VER=ubuntu18.04,PYTHON=3.9/2921/consoleText

Minimum reproducible example

No response

Relevant log output

No response

Environment details

No response

Other/Misc.

No response

Code of Conduct

  • I agree to follow cuGraph's Code of Conduct
  • I have searched the open bugs and have found no duplicates for this bug report

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions