Skip to content

Investigate upstream_dev failures #4961

Closed

Description

@TomAugspurger

Activity

  1. pentschev commented on Jun 24, 2019

    @pentschev
    Member

    I'm not sure about the dataframe issues, but there's only one issue on the Dask Array side, that manifests only on Sparse tests and when NumPy 1.17 (currently master) is used, as mentioned in #4994.

  2. TomAugspurger commented on Jul 19, 2019

    @TomAugspurger
    MemberAuthor

    #5056 gets most of them.

    There's a class of compression-related failures. @martindurant do you have time to investigate? Not sure if it's an environment or compatibility issue.

    https://travis-ci.org/dask/dask/jobs/561013095#L1127

    ______________________ test_read_text[snappy-None-ascii] _______________________
    [gw1] linux -- Python 3.7.3 /home/travis/miniconda/envs/test-environment/bin/python
    fmt = 'snappy', bs = None, encoding = 'ascii'
        @pytest.mark.parametrize("fmt,bs,encoding", fmt_bs_enc)
        def test_read_text(fmt, bs, encoding):
            if fmt == "zip" and sys.version_info.minor == 5:
                pytest.skip("zipfile is read-only on py35")
    >       compress = utils.compress[fmt]
    E       KeyError: 'snappy'
  3. TomAugspurger commented on Jul 19, 2019

    @TomAugspurger
    MemberAuthor

    Here's the env for that run: https://travis-ci.org/dask/dask/jobs/561013095#L792. Things look OK at a glance (python-snappy and snappy are both present).

  4. martindurant commented on Jul 19, 2019

    @martindurant
    Member

    There's a class of compression-related failures.

    This is in fsspec master only. Can be fixed by

    --- a/dask/bag/tests/test_text.py
    +++ b/dask/bag/tests/test_text.py
    @@ -43,6 +43,8 @@ fmt_bs_enc = [(fmt, bs, encoding) for fmt, bs in fmt_bs for encoding in encoding
     def test_read_text(fmt, bs, encoding):
         if fmt == "zip" and sys.version_info.minor == 5:
             pytest.skip("zipfile is read-only on py35")
    +    if fmt not in utils.compress:
    +        pytest.skip("compress function not provided for %s" % fmt)
         compress = utils.compress[fmt]
         files2 = dict((k, compress(v.encode(encoding))) for k, v in files.items())
         with filetexts(files2, mode="b"):
    diff --git a/dask/dataframe/io/tests/test_csv.py b/dask/dataframe/io/tests/test_csv.py
    index b3bcceb..e9f0110 100644
    --- a/dask/dataframe/io/tests/test_csv.py
    +++ b/dask/dataframe/io/tests/test_csv.py
    @@ -705,6 +705,8 @@ def test_read_csv_sensitive_to_enforce():
     def test_read_csv_compression(fmt, blocksize):
         if fmt == "zip" and sys.version_info.minor == 5:
             pytest.skip("zipfile is read-only on py35")
    +    if fmt not in utils.compress:
    +        pytest.skip("compress function not provided for %s" % fmt)
         files2 = valmap(compress[fmt], csv_files)
         with filetexts(files2, mode="b"):
             if fmt and blocksize:
  5. martindurant commented on Jul 19, 2019

    @martindurant
    Member

    (because I added zstd, snappy and lz4 "files" to the available compressions, but dask uses direct functions to produce the test data to be loaded. Could probably be cleaned up to remove dask.bytes.utils.compress altogether and move those to fsspec too)

  6. TomAugspurger commented on Aug 20, 2019

    @TomAugspurger
    MemberAuthor

    I think we're OK on this for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions