Repository navigation
Conversation
jameslamb
left a comment
There was a problem hiding this comment.
Support this, thanks!
We'll probably want to bump the oldest-supported-versions test versions here:
LightGBM/.ci/pip-envs/requirements-oldest.txt
Lines 1 to 4 in c259914
And might end up needing to bump some things in ci-core-py310.txt.
Just leaving a blocking review until CI is passing, @ me when you're ready for another review and I'll come look at whatever was necessary to get this working.
|
@jameslamb have you seen an issue like the one in https://github.com/lightgbm-org/LightGBM/actions/runs/25888309590/job/76085467194?pr=7276 before? Claude suggested let's see, what it does UPDATE: doesn't help |
|
Yep this GLIBC / GLIBCXX issues like this can happen when you mix packages across distributions (in this case, compiler toolchain + MPI libraries from Alma Linux 8 or whatever that manylinux image is based on). I'm guessing the root cause here is some mix of:
All the other Python 3.10 Linux jobs are failing (like this one in the same image), so it's gotta be something specific to MPI. Let's try just updating to Python 3.11 in that failing job. If that fixes it, let's not worry any more about it any more. I don't think it's critical to cover the full range of Python versions, compilers, etc. for the MPI build. We rarely receive user questions about it, I'm not sure if anyone uses it π€·π» |
|
All right, green CI @jameslamb π |
jameslamb
left a comment
There was a problem hiding this comment.
Thanks! I'm comfortable with the bumps in these pins, they all still allow a couple years' worth of versions of our dependencies. Appreciate the care you took to make the changes so minimal.
I left one suggestion on that new ruff finding, it can be a follow-up. I'll merge this right now.
| [tool.ruff.lint] | ||
| ignore = [ | ||
| # (flake8-bugbear) Zip calls without an explicit strict parameter | ||
| "B905", |
There was a problem hiding this comment.
Oh this one is useful for correctness! I wouldn't want to just skip it.
From https://docs.astral.sh/ruff/rules/zip-without-explicit-strict/
By default, if the iterables passed to zip are of different lengths, the resulting iterator will be silently truncated to the length of the shortest iterable. This can lead to subtle bugs.
I glanced at git grep -E 'zip\(' and I don't think there are cases where we're intentionally relying on that behavior. If adding strict=True breaks anything in CI, that probably means it's found a bug.
I'm ok with merging this PR as-is so you don't have to go through more commits and CI runs, but would you please put up a follow-up reverting this and adding strict=True everywhere?
Motivation
Python 3.9 reached EOL on Oct 31, 2025.
Dropping support for it will simplify bumping the floor on some dependencies required for #7275.