Skip to content

[CI] Dependency version conflicts causing test failures across Python versions #31

Description

@bramdokman

CI Test Failures - Dependency Version Conflicts

Issue Summary

The test workflow is failing across multiple Python versions due to pinned dependency versions that are incompatible with older Python versions.

Failing Dependencies

Python 3.8:

  • pytest-mock==3.15.1 - Version not found (maximum available: 3.14.1)

Python 3.9:

  • markdown==3.10.2 - Version not found (maximum available: 3.9)

Root Cause

The file contains pinned dependency versions that are newer than what's available for older Python versions. This commonly happens when:

  1. Dependencies drop support for older Python versions
  2. Dependabot updates pin to latest versions without checking compatibility
  3. Version ranges not used instead of exact pinning

Impact

  • Blocking: All tests for Python 3.8 and 3.9
  • CI Status: Failing dependency updates (e.g., black v26 update)
  • Coverage: Unable to test compatibility across Python versions

Recommended Solution

Option 1: Use Compatible Version Ranges

Option 2: Version Matrices

Create separate requirements files:

Option 3: Drop Older Python Support

If Python 3.8/3.9 support is not critical:

Investigation Steps

  1. Check current requirements.txt:

  2. Test compatibility:

  3. Find compatible versions:
    pytest-mock (3.15.1)
    Available versions: 3.15.1, 3.15.0, 3.14.1, 3.14.0, 3.13.0, 3.12.0, 3.11.1, 3.11.0, 3.10.0, 3.9.0, 3.8.2, 3.8.1, 3.8.0, 3.7.0, 3.6.1, 3.6.0, 3.5.1, 3.5.0, 3.4.0, 3.3.1, 3.3.0, 3.2.0, 3.1.1, 3.1.0, 3.0.0, 2.0.0, 1.13.0, 1.12.1, 1.12.0, 1.11.2, 1.11.1, 1.11.0, 1.10.4, 1.10.3, 1.10.2, 1.10.1, 1.10.0, 1.9.0, 1.8.0, 1.7.1, 1.7.0, 1.6.3, 1.6.2, 1.6.1, 1.6.0, 1.5.0, 1.4.0, 1.3.0, 1.2, 1.1, 1.0, 0.11.0, 0.10.1, 0.10.0, 0.9.0, 0.8.1, 0.7.0, 0.6.0, 0.5.0, 0.4.3, 0.4.2, 0.4.1, 0.4.0, 0.3.0, 0.2.0, 0.1.0
    INSTALLED: 3.15.1
    LATEST: 3.15.1
    markdown (3.10.2)
    Available versions: 3.10.2, 3.10.1, 3.10, 3.9, 3.8.2, 3.8.1, 3.8, 3.7, 3.6, 3.5.2, 3.5.1, 3.5, 3.4.4, 3.4.3, 3.4.2, 3.4.1, 3.4, 3.3.7, 3.3.6, 3.3.4, 3.3.3, 3.3.2, 3.3.1, 3.3, 3.2.2, 3.2.1, 3.2, 3.1.1, 3.1, 3.0.1, 3.0, 2.6.11, 2.6.10, 2.6.9, 2.6.8, 2.6.7, 2.6.6, 2.6.5, 2.6.4, 2.6.3, 2.6.2, 2.6.1, 2.6, 2.5.2, 2.5.1, 2.5, 2.4.1, 2.4, 2.3.1, 2.3, 2.2.1, 2.2.0, 2.1.1, 2.1.0, 2.0.3, 2.0.2, 2.0.1, 2.0, 1.7

Immediate Fix

For quick resolution, use version ranges:

Priority

MEDIUM - Tests failing but not blocking development

CI Run Examples

  • Run #22783832199: Black v26 dependency update failed
  • Multiple dependency update PRs failing with same pattern

Generated during automated CI analysis - Tue Mar 10 00:14:23 CET 2026

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions