Skip to content

Move the epic's vendored EEGLAB to d0963be9 - #630

Merged
neuromechanist merged 4 commits into
epic/324-pyodide-browserfrom
agent/20261117-ref1-eeglab-pin
Nov 17, 2026
Merged

neuromechanist merged 4 commits into
epic/324-pyodide-browserfrom
agent/20261117-ref1-eeglab-pin

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Moves the vendored src/eegprep/eeglab submodule on the epic from 8ac485f6 to d0963be9d81acc5b66e84f8d3d7c89e3ce127cc4, the EEGLAB commit that tests/eeglab_tests/__init__.py and tools/eeglab_test_port_audit.py have pinned since #513, so the pin guard in tests/conftest.py passes on the epic and the MATLAB reference comparisons run.

Adds one test, test_vendored_eeglab_gitlink_and_pin_modules_agree, that reads the gitlink from the index and fails when it differs from the pin or when the two pin modules disagree, and two sentences in docs/source/development.rst saying that the vendored submodule follows the pin. The pin modules, the guard, the workflows, .gitmodules and the tolerances are unchanged.

Why: #513 repinned the eeglab_tests suite to fec88f9f and EEGLAB_TESTS_EEGLAB_COMMIT to d0963be9 (EEGLAB #977, double-precision ANOVA) but left the gitlink at 8ac485f6. The eeglab_matlab_engine fixture refuses any other commit before MATLAB starts, and the reference workflow runs MATLAB on the vendored tree, so every MATLAB-backed test has errored at fixture setup since 2026-10-20. Run 44150287774 (dispatched on the epic at a69f1e54) shows it: all seven shards fail in "Run EEGLAB reference tests" with 829 errors and 0 failed tests, each EEGLAB is at 8ac485f6...; expected pinned d0963be9....

This is the same gitlink change as #623 on develop, and the two merge cleanly in either order. git merge-tree --write-tree origin/develop HEAD exits 0, and so does the same merge against develop with #623 applied. d0963be9 is a fast-forward of 8ac485f6 by 7 commits touching 8 files under functions/statistics/ and functions/studyfunc/. The vendored tree is excluded from the wheel, so nothing shipped changes.

Tested:

  • New test written first and seen failing with the gitlink at 8ac485f6 (1 failed, 6 passed, 1 deselected), passing after the move (7 passed, 1 deselected).
  • The guard's own comparison, git -C src/eegprep/eeglab rev-parse HEAD against EEGLAB_TESTS_EEGLAB_COMMIT, prints two different hashes and exits 1 before the move; prints d0963be9... twice and exits 0 after it.
  • Three mutations each fail the new test and are reverted: index gitlink set to 8ac485f6, EEGLAB_TESTS_EEGLAB_COMMIT in the audit module set to 8ac485f6, and EEGLAB_TESTS_COMMIT there set to ff605546.
  • EEGPREP_SKIP_MATLAB=1 pytest tests/test_eeglab_test_provenance.py tests/test_eeglab_test_port_audit.py: 17 passed, 1 deselected.
  • ruff check .: All checks passed!; ruff format --check .: 966 files already formatted; ./pre-commit.py --changed-from origin/epic/324-pyodide-browser: OK.
  • ty check on the changed test module: All checks passed!. A full ty check in a --group dev environment (no torch, onnx or pamica installed) reports 9 unresolved-import diagnostics for those three packages, all in files this pull request does not touch; the CI lint job installs all extras.
  • git diff --exit-code over tests/eeglab_tests, tools, tests/conftest.py, .github, .gitmodules, tests/fuzz, pyproject.toml and uv.lock against the epic: no changes.

Not run: Tests (pull requests into the epic branch do not trigger test.yml; they run on #386 after this merges) and the EEGLAB reference workflow (dispatched by the maintainers on this branch).

Refs #622, #623, #386

Card REF-1 of the NEMAR portable-compute program.

@claude claude Bot 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.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@claude

claude Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @neuromechanist's task in 34s —— View job


Code review

  • Overall assessment: Looks good. Checked against the base origin/epic/324-pyodide-browser at head a58d7b7f.
  • Highest-risk area: The submodule gitlink move. It matches EEGLAB_TESTS_EEGLAB_COMMIT = d0963be9… in both tests/eeglab_tests/__init__.py:19 and tools/eeglab_test_port_audit.py:19. The guard compares against that value at tests/conftest.py:401-405.
  • Merge recommendation: Safe to merge once the maintainer-dispatched EEGLAB reference run on this branch comes back green.

Blocking

None.

Important

None.

Nits

None.

Test gaps

None. test_vendored_eeglab_gitlink_and_pin_modules_agree reads the gitlink from the index (git ls-files --stage), so it works even when the submodule is not initialized. It also checks all three pin constants across both modules. That covers the exact drift that caused this bug in #513. The from tools import … import matches existing tests such as tests/conftest.py:22 and tests/test_pyodide_harness.py:17.

EEGLAB parity notes

None. No runtime code changes. The vendored tree is reference input only and is excluded from the wheel. The new lines in docs/source/development.rst:95-97 match the pins documented just above them at lines 90-92.

Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance.

@neuromechanist
neuromechanist merged commit 75e2482 into epic/324-pyodide-browser Nov 17, 2026
@neuromechanist
neuromechanist deleted the agent/20261117-ref1-eeglab-pin branch November 17, 2026 21:53
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.

1 participant