Skip to content

Raise the dependency floors the test suite fails below (pydantic 2.11.4, skorch 1.3.1, mne_bids 0.19, zarr 3.1) - #1531

Merged
bruAristimunha merged 3 commits into
braindecode:masterfrom
bruAristimunha:bd2deep/dependency-floors
Nov 2, 2026
Merged

bruAristimunha merged 3 commits into
braindecode:masterfrom
bruAristimunha:bd2deep/dependency-floors

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

The 2.0 release audit (bd2-deep) ran the test suite against the installed wheel on Python 3.11, with torch/torchaudio 2.6.0 and every floor declared in pyproject.toml; every other dependency was at its newest release. There were 96 failures. A bisection Job then raised one floor at a time until its tests passed:

dependency declared first passing what fails below it
pydantic >=2.0 2.11.4 (2.0 to 2.11.3 fail, 2.11.4 passes) braindecode.models.config does not import: create_model rejects __config__ together with __base__ (20 tests in test_base.py/test_config*.py)
zarr ([hub]) >=3.0 3.1.0 (3.0.0–3.0.10 fail) Group.create_array() has no data= (60 tests in the hub/zarr tests)
skorch >=1.3.0 1.3.1 with scikit-learn 1.9, cropped grid search leaves the pipeline unfitted (NotFittedError, 4 tests)
mne_bids >=0.18 0.19.0 the BIDS notebook viewer misses an inherited events.tsv (1 test)

This PR raises the four floors and adds a whats_new entry under Requirements. No code changes.

Verified in Voyager Jobs: pre-commit run --files exits 0, and test_dependencies.py passes. The full suite on Python 3.11 / torch 2.6 with the new floors (pydantic==2.11.4, zarr==3.1.0, skorch==1.3.1, mne_bids==0.19.0, mne==1.11.0, wfdb==4.3.1) against the installed wheel is posted below; it runs on top of the other open audit fixes (#1524 to #1530), because #1527 is needed for the torch 2.6 lfilter test.

…, skorch 1.3.1, mne_bids 0.19, zarr 3.1)

Measured on Python 3.11 with torch 2.6 and every declared floor, the other
dependencies at their newest release (bd2-deep audit): pydantic < 2.11
rejects create_model(__config__=..., __base__=...) used by the model
configs; skorch 1.3.0 leaves cropped grid-search pipelines unfitted with
scikit-learn 1.9; mne_bids 0.18 misses inherited sidecars in the notebook
viewer; zarr < 3.1 has no Group.create_array(data=...).
Copilot AI balanced review requested due to automatic review settings November 2, 2026 17:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the dependency-minimum and release-note updates.

No open issues 🎉

What changed in this PR

Aligns Braindecode’s declared minimum dependencies with the passing versions identified by the 2.0 release audit. No application code changes are included.

Changes:

  • Raises core minimums to pydantic>=2.11.4, skorch>=1.3.1, and mne_bids>=0.19.
  • Raises the optional hub minimum to zarr>=3.1.
  • Documents the new requirements and the failures motivating them.
File Description
pyproject.toml Raises four dependency minimums to the audited passing versions.
docs/​whats_new.rst Adds a Requirements entry explaining the dependency increases.

Review effort: Balanced

@codecov

codecov Bot commented Nov 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.34%. Comparing base (535e058) to head (e5c4f01).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1531   +/-   ##
=======================================
  Coverage   91.34%   91.34%           
=======================================
  Files         170      170           
  Lines       22105    22105           
=======================================
  Hits        20192    20192           
  Misses       1913     1913           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bruAristimunha
bruAristimunha merged commit c03559a into braindecode:master Nov 2, 2026
10 checks passed
@bruAristimunha

Copy link
Copy Markdown
Collaborator Author

Minimum-versions suite, run in a Voyager Job against the installed wheel of all the audit fixes combined (#1524 to #1531, branch bd2deep-tmp/all-fixes 6d9637f9). Environment: Python 3.11, torch/torchaudio 2.6.0, mne 1.11.0, mne_bids 0.19.0, skorch 1.3.1, pydantic 2.11.4, zarr 3.1.0, wfdb 4.3.1; everything else at the newest release.

Result: 7983 passed, 1 failed, 386 skipped, 2 xfailed. The 1 failure is a harness artefact: test_dependencies scans the source tree, which this harness removes so that the installed wheel is tested. Importing all 166 modules raises no warnings from braindecode, and python -W error::DeprecationWarning -c 'import braindecode, braindecode.models, braindecode.datasets, braindecode.preprocessing' exits 0.

The same combined branch on Python 3.14 / torch 2.15 with the latest dependencies gives 8166 passed, with the same single artefact.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants