Skip to content

⚠️ Upstream CI failed ⚠️ #9204

Closed

Description

@github-actions

Workflow Run URL

Python log Test Summary
dask/array/tests/test_stats.py::test_two[ttest_1samp-kwargs2]: ValueError: cannot select an axis to squeeze out which has size not equal to one

Activity

  1. jsignell commented on Jun 22, 2022

    @jsignell
    Member

    I am going to start taking a look as these.

  2. ncclementi commented on Jun 23, 2022

    @ncclementi
    Member

    @jsignell Happy to help with this if needed, or for a review (feel free to ping me). It looks like the up to now numeric_only=True by default in many pandas.core.groupby.GroupBy.operation, but this will not be the case moving forward.

  3. pavithraes commented on Jul 1, 2022

    @pavithraes
    Member
  4. ncclementi commented on Aug 8, 2022

    @ncclementi
    Member

    Breakdown of upstream failures:

    numeric_only

    No numeric_only

    #9271 Julia filter most of the numeric only problems and the remaining issues are

    E           TypeError: Cannot cast DatetimeArray to dtype datetime64
    E           ValueError: Metadata inference failed in `dropna`.
    E           
    E           You have supplied a custom function and Dask is unable to 
    E           determine the type of output that that function returns. 
    E           
    E           To resolve this please provide a meta= keyword.
    E           The docstring of the Dask function you ran should have more information.
    E           
    E           Original error is below:
    E           ------------------------
    E           TypeError('You cannot set both the how and thresh arguments at the same time.')
    E           
    E           Traceback:
    E           ---------
    E             File "/home/runner/work/dask/dask/dask/dataframe/utils.py", line 182, in raise_on_meta_error
    E               yield
    E             File "/home/runner/work/dask/dask/dask/dataframe/core.py", line 6406, in _emulate
    E               return func(*_extract_meta(args, True), **_extract_meta(kwargs, True))
    E             File "/home/runner/work/dask/dask/dask/utils.py", line 1070, in __call__
    E               return getattr(__obj, self.method)(*args, **kwargs)
    E             File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pandas/util/_decorators.py", line 314, in wrapper
    E               return func(*args, **kwargs)
    E             File "/usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/pandas/core/frame.py", line 6530, in dropna
    E               raise TypeError(
    
    dask/dataframe/utils.py:203: ValueError
    E   RuntimeError: file metadata is only available after writer close

    and

    E   pyarrow.lib.ArrowInvalid: Casting from timestamp[ns] to timestamp[us] would lose data: 1640995373146292585
    
    pyarrow/error.pxi:100: ArrowInvalid
    E       TypeError: 'NoneType' object is not iterable
    
    /usr/share/miniconda3/envs/test-environment/lib/python3.9/site-packages/fastparquet/writer.py:1331: TypeError
  5. jsignell commented on Aug 9, 2022

    @jsignell
    Member

    Thanks for writing this up @ncclementi! Please feel free to pick up either of those PRs, or we can work on them together if you like.

  6. jrbourbeau commented on Oct 27, 2022

    @jrbourbeau
    Member

    It looks like we're down to just a couple of failures

    FAILED dask/array/tests/test_stats.py::test_two[ttest_1samp-kwargs2] - ValueE...
    FAILED dask/tests/test_compatibility.py::test_entry_points - AttributeError: ...

    One is scipy-related and the other is an interesting

    AttributeError: module 'importlib' has no attribute 'metadata'

    error. @charlesbluca do you have bandwidth / interest in getting the upstream CI build passing over the finish line?

  7. charlesbluca commented on Oct 27, 2022

    @charlesbluca
    Member

    Sure I can take a look into this

  8. jrbourbeau commented on Oct 27, 2022

    @jrbourbeau
    Member

    Awesome, thanks @charlesbluca!

  9. charlesbluca commented on Oct 27, 2022

    @charlesbluca
    Member

    Looks like there are a few more upstream test failures that have cropped up since the run linked in this issue:

    https://github.com/dask/dask/actions/runs/3333837387/jobs/5516179181

    Unrelated, but it looks like the upstream workflow has been failing to update the link in the opened issue since we bumped to actions/github-script@v6; might be worth dropping back down to v3 for the time being to unblock that workflow unless it's immediately obvious what the issue there is.

    The additional failing tests are:

    FAILED dask/tests/test_cli.py::test_register_command_ep - AttributeError: module 'importlib' has no attribute 'metadata'
    FAILED dask/tests/test_cli.py::test_repeated_name_registration_warn - AttributeError: module 'importlib' has no attribute 'metadata'
    

    So thinking they might be related to the test_entry_points failure?

  10. jrbourbeau commented on Oct 27, 2022

    @jrbourbeau
    Member

    Unrelated, but it looks like the upstream workflow has been failing to update the link in the opened issue since we bumped to actions/github-script@v6;

    Ah, thanks for pointing that out. #9602 might fix that

    So thinking they might be related to the test_entry_points failure?

    Yeah, I suspect all those importlib-related failures are from the same underlying cause

  11. charlesbluca commented on Oct 27, 2022

    @charlesbluca
    Member

    Digging in more, it looks like the scipy failure is cropping up due to changes introduced in scipy/scipy#16835, which changes the expected input shape of popmean for ttest_1samp, as well as adding some additional information to the returned object; I'm not too familiar with the scipy stats functions, so it seems like it might take some non-trivial refactoring of our ttest_1samp to get the behavior consistent with scipy 1.10.

    The cause of the importlib failures is a little hard to track down, as it seems like some test being run before test_cli.py and test_compatibility.py is breaking importlib such that we can't import importlib.metadata as expected; my first guess was the S3 tests since those use moto which depends on importlib_metadata, but running those first doesn't seem to reproduce.

    After running through the entire test suite to reproduce, I notice that from importlib import metadata still seems to work, so a short term unblocker could be to use that import style instead in the relevant places.

  12. jrbourbeau commented on Oct 27, 2022

    @jrbourbeau
    Member

    Thanks @charlesbluca!

    After running through the entire test suite to reproduce, I notice that from importlib import metadata still seems to work, so a short term unblocker could be to use that import style instead in the relevant places.

    Hrm, that's strange but not an unreasonable change if it gets things passing. Would you mind pushing up a PR for this?

  13. charlesbluca commented on Oct 28, 2022

    @charlesbluca
    Member

    Opened #9604 which should resolve the issues with importing importlib.metadata

  14. ncclementi commented on Oct 28, 2022

    @ncclementi
    Member
  15. jrbourbeau commented on Nov 22, 2022

    @jrbourbeau
    Member

    #9499 is the remaining upstream failure. That test was temporarily xfailed in #9670 in order to get our upstream CI build passing. I'm going to go ahead and close this issue so that when a new upstream test failure pops up, a new issue will be opened (which we're more likely to see). Thanks all!

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