Skip to content

Establish faithful MATLAB reference-test infrastructure - #418

Merged
arnodelorme merged 4 commits into
developfrom
work/matlab-tests-phase1
Oct 7, 2026
Merged

arnodelorme merged 4 commits into
developfrom
work/matlab-tests-phase1

Conversation

@suraj-ranganath

Copy link
Copy Markdown
Member

Add explicit MATLAB and Python test backends with independently validated MAT-file transport, without changing EEGPrep capabilities. Correct source-test discovery to include class tests and unwrapped workflows, preserve opt-in tests in the provenance audit, and document the strict MATLAB validation lane.

@claude

claude Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@suraj-ranganath

suraj-ranganath commented Sep 24, 2026 •

Copy link
Copy Markdown
Member Author

🤖 Phase 1 specification and verification: tests/conftest.py requires explicit backend selection and rejects unconverted direct-Python provenance tests in MATLAB mode. tests/eeglab_tests/backend.py:28 preserves numeric classes, shapes, nested structs and cells through independent MAT-file transport, including consecutive EEG calls. tools/eeglab_test_port_audit.py:91 discovers Test-attributed methods and unwrapped workflows; collection includes opt-in contracts without executing them.

The transport keeps struct arrays distinct from cells:

if value.dtype.names and value.size:
    decoded = np.empty(value.shape, dtype=value.dtype)
    for index in np.ndindex(value.shape):
        for field in value.dtype.names:
            decoded[field][index] = _decode(value[field][index], typed[field][index])
    if value.shape == (1, 1):
        return {field: decoded[field][0, 0] for field in value.dtype.names}
    return decoded
if value.dtype == object:
    decoded = np.empty(value.shape, dtype=object)
    for index in np.ndindex(value.shape):
        decoded[index] = _decode(value[index], typed[index])
    return decoded

Validation: 73 focused tests passed on MATLAB R2026a/Python3.12, including49 live MATLAB cases and guard tests covering missing dependencies, no fallback, argument/output counts and chained EEG structures. All seven code/test/documentation CI jobs pass, including all four OS/Python test jobs. Claude review failed immediately after initialization with is_error:true and zero model usage; its log does not expose the underlying provider reason. No review bypass or workflow change was made.

The independent inventory exposes 813 source definitions, 812 provenance matches and one missing standalone IRLS workflow. These are source-accounting counts, not behavioral validation. No EEGPrep production files changed. Existing-test fidelity corrections remain the next phase; this draft establishes the runner and honest inventory only.

@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 Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 0s —— View job


I'll analyze this and get back to you.

@arnodelorme
arnodelorme merged commit 2e72091 into develop Oct 7, 2026
11 of 13 checks passed
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