Skip to content

Test that lists every private copy of a standard block in models; new copies fail CI - #1455

Merged
bruAristimunha merged 1 commit into
braindecode:masterfrom
bruAristimunha:cleanup/t19-growth-stop
Oct 18, 2026
Merged

bruAristimunha merged 1 commit into
braindecode:masterfrom
bruAristimunha:cleanup/t19-growth-stop

Conversation

@bruAristimunha

Copy link
Copy Markdown
Collaborator

Part of #1442; first step of the consolidation plan (stop the growth before deduplicating).

braindecode/models has 134 private classes whose names say they re-implement a standard block (attention, transformer block/layer, MLP/feed-forward, positional or rotary encoding, norm, patch embedding, residual wrapper). test_private_blocks.py lists them as they are today. A model PR that adds one more fails with a message pointing to braindecode.modules / braindecode.functional, or adds the class to the list with the reason in its docstring (typically a parameter layout that released weights depend on). Removing a copy requires removing its line, so the list stays exact and shrinks with the follow-up PRs.

The new-model checklist gets one line asking for the shared blocks.

No library code changes.

Copilot AI balanced review requested due to automatic review settings October 17, 2026 20:38

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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.04%. Comparing base (47912a9) to head (acf9d93).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1455   +/-   ##
=======================================
  Coverage   91.04%   91.04%           
=======================================
  Files         165      165           
  Lines       21653    21653           
=======================================
  Hits        19714    19714           
  Misses       1939     1939           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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