Skip to content

[ci] python-package "regular" CI jobs failing to install dependenciesย #6282

Closed

Description

@jameslamb

Description

The TASK=regular jobs in this project's CI run the Python package's unit tests and test a few other things:

  • the example notebookes in the examples/ directory
  • that lightgbm can be imported after all of its dependencies have been removed

Those jobs are currently failing across all operating systems, with an error like this:

[NbConvertApp] Converting notebook interactive_plot_example.ipynb to notebook
[IPKernelApp] ERROR | KeyboardInterrupt caught in kernel.
[NbConvertApp] Writing 178679 bytes to interactive_plot_example.ipynb

PackagesNotFoundError: The following packages are missing from the target environment:
  - dask

Error: Process completed with exit code 255.

Reproducible example

Logs from latest commit on master:

  • Azure DevOps Linux_latest regular (link)
  • Azure DevOps macOS regular (link)
  • GitHub Actions regular (macOS-latest, Python 3.9) (link)

Environment info

LightGBM version or commit hash: 255c93b

Additional Comments

I don't see any of the dependencies like dask, dask-core, etc. getting installed in the logs.

It seems that this might be silently failing:

https://github.com/microsoft/LightGBM/blob/255c93b551c13b5d9b0bd8eff83ef828b14b9547/.ci/test.sh#L128-L135

Activity

  1. added
    blocking
    on Jan 22, 2024
  2. added a commit that references this issue on Jan 22, 2024
    3d0e237
  3. jmoralez commented on Jan 22, 2024

    @jmoralez
    Collaborator

    I believe the command that's failing is the uninstall, maybe it's due to a difference between installing with mamba and trying to uninstall with conda.
    https://github.com/microsoft/LightGBM/blob/255c93b551c13b5d9b0bd8eff83ef828b14b9547/.ci/test.sh#L312
    https://github.com/microsoft/LightGBM/blob/255c93b551c13b5d9b0bd8eff83ef828b14b9547/.ci/test.sh#L322

    I can submit a PR with that change if you think that may be it.

  4. jameslamb commented on Jan 22, 2024

    @jameslamb
    MemberAuthor

    ooooo interesting. Yeah I'd welcome that PR, thank you!

  5. jmoralez commented on Jan 22, 2024

    @jmoralez
    Collaborator

    Oh sorry I hadn't seen #6283, do you want me to create a new one or push to that branch?

  6. jameslamb commented on Jan 22, 2024

    @jameslamb
    MemberAuthor

    whatever's easier for you! No preference.

  7. jameslamb commented on Jan 22, 2024

    @jameslamb
    MemberAuthor

    If that doesn't work, could you test another idea I just had?

    Maybe the problem is that the package we install is named dask-core

    https://github.com/microsoft/LightGBM/blob/255c93b551c13b5d9b0bd8eff83ef828b14b9547/.ci/test.sh#L128

    but then we're asking conda uninstall to remove a package called dask.

    https://github.com/microsoft/LightGBM/blob/255c93b551c13b5d9b0bd8eff83ef828b14b9547/.ci/test.sh#L322-L325

    Maybe something has changed recently in conda, mamba, or the dask-core metapackage that breaks that.

    Either way, I think we should probably be adding dask-core to that conda uninstall call.

  8. added a commit that references this issue on Jan 22, 2024
    2544d1b
  9. github-actions commented on Jan 22, 2025

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

  10. removed
    blocking
    on Jan 22, 2025
  11. locked as resolved and limited conversation to collaborators on Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions