kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Upgrade parameterized to 0.9.0 on Python 3.7+

Open rtibblesbot opened this issue 1 month ago • 0 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Overview

Dependabot PR #15241 bumped the parameterized test dependency from 0.8.1 to 0.9.0 and was closed unmerged. 0.9.0 dropped Python 3.6 support, and Kolibri still runs 3.6 test jobs, so the single ==0.9.0 pin fails "Install dependencies" in those jobs. No other package has to move with it.

Complexity: Low Target branch: develop

Context

  • The 3.6 unit test job on #15241 fails "Install dependencies" with:

    Because the current Python version (3.6.15) does not satisfy Python>=3.7 and parameterized==0.9.0 depends on Python>=3.7, we can conclude that parameterized==0.9.0 cannot be used.
    
  • The 3.7 jobs installed 0.9.0 and were then cancelled by the matrix's fail-fast.

  • The pin lives in the test group: pyproject.toml:115.

  • pytest is already split by Python version in the same group: pyproject.toml:109-110.

  • 3.6 runs in tox.yml unit_test_no_uv and morango_integration.yml.

  • Dependabot cannot write a split pin, so this needs a manual change.

The Change

The parameterized pin should be split by Python version, as pytest is, with uv.lock regenerated to match.

Acceptance Criteria

  • [ ] pyproject.toml pins parameterized 0.8.1 for Python < 3.7 and 0.9.0 for Python >= 3.7.
  • [ ] uv.lock resolves parameterized 0.9.0 for every Python version >= 3.7.
  • [ ] The 3.6 and 3.7 jobs in tox.yml and morango_integration.yml pass "Install dependencies".
  • [ ] kolibri/core/content/test/test_search.py and kolibri/utils/tests/test_version.py pass on 3.7 and on the newest Python in CI.

AI usage

rtibblesbot (Claude Code) reviewed #15241, found the Python 3.6 failure in CI, and drafted this issue from that review.

Filed from #15241's review.

rtibblesbot avatar Nov 02 '26 05:11 rtibblesbot