Repository navigation
Round-1 review fixes for #386: CI, release, docs - #631
Conversation
There was a problem hiding this comment.
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 finished @neuromechanist's task in 1m 16s —— View job Code review
BlockingNone. ImportantFollowing the documented ICLabel rebuild leaves a stale
Suggested fix:
NitsNone. Test gapsNone. Every new rule has a test: the pin equals the lock, the lock has an Intel Mac wheel, EEGLAB parity notesNone. This PR changes no EEGLAB-ported processing code (only CI, docs, the lock file and ICLabel tooling), so it needs no MATLAB reference run.
I posted this review here and as one inline comment; the skill's separate |
| ``iclabel_net.py``, or this script, from the repository root:: | ||
|
|
||
| uv sync --group dev --extra torch --extra iclabel | ||
| uv sync --group dev --extra torch |
There was a problem hiding this comment.
Important: in this rebuild sequence, float32_model.sha256 goes stale after a real rebuild.
evaluate_model hashes PACKAGED_FLOAT32_MODEL, the file in src/, when the quantize step runs (L432-L438). The new export reaches src/ only on the cp line that comes after it. When the re-export changes bytes, which can happen with any new PyTorch version, the committed report keeps the old hash. test_parity_report_records_the_packaged_model_and_frozen_inputs and the new release.yml check then both fail.
Fix: move cp build/iclabel/iclabel_float32.onnx src/eegprep/plugins/ICLabel/iclabel.onnx above the quantize command, here and in docs/source/releasing.rst steps 3 and 4. Another option is to have evaluate_model hash the --float32-artifact it is given.
Round-1 review fixes for the epic in #386, part A: continuous integration (CI), release, dependency metadata and documentation. The runtime items are in the companion pull request (card FIX-386b), which touches disjoint files.
Items fixed
onnxruntime==1.32.0, the versionuv.lockresolves on Linux, the comment says why, andtest_release_smoke_tests_pin_the_locked_onnxruntimefails when the pins and the lock differ.releasing.rstno longer says thetorchextra is outsideeegprep[all].testjob; thepyodidejob getsneeds: lint,timeout-minutes: 120,permissions: contents: readandpersist-credentials: false;tests/test_ci_workflows.pychecks each.torchandiclabelextras, the two packaged networks and the markers onpsutilandpyedflib; no existing line changes.pyodide_benchmark.mdsays the 2026-10-12 numbers were measured with the harness on the epic branch that day.pyproject.tomlcomment andpyodide_benchmark.mdsay that the floors test and the live CI install enforce the Pyodide rule and thattools/check_pyodide_base_resolution.pyis run by hand.--extra iclabelnext to--group dev; the text says thedevgroup includes ONNX Runtime;docs.ymlkeeps its extra because it has nodevgroup.float32_model(path, size, SHA-256 oficlabel.onnx) intools/iclabel/parity_report.json, produced byevaluate_model(which records the float32 file the quantize step is given, so a rebuild records the network it ships), checked by a test (and against the frozen teacher's source) and byrelease.yml, which fails when the packaged file differs; the regeneration docs now say that replacingiclabel.onnxalso means refreezing the teacher and updating the manifest's source hash.devgroup's ONNX Runtime has an Intel Mac marker (1.23.2 there, the last release with a macOS x86_64 wheel, for Python 3.12 and 3.13 only);uv lockadds only that entry,coloredlogs,humanfriendlyand split resolution markers; a test checks the lock carries such a wheel.Ruling for this card's rows
eegprep[all]".testjob;pyodidegetspermissions,needs: lint,timeout-minutes: 120,persist-credentials: false. Path filters declined: the job is the only CI check of the browser path and depends on the whole tree.devgroup carries ONNX Runtime, so drop--extra iclabelwherever--group devis used;docs.ymlstays.float32_modelin the report, checked by a test and byrelease.yml.devgroup's ONNX Runtime.Tested
ruff check .: All checks passed;ruff format --check .: 967 files already formatted;ty check: 9 diagnostics, all unresolved imports oftorch,onnxandpamicain files this pull request does not touch (this environment has no extras; the CI lint job installs them all)../pre-commit.py --changed-from origin/epic/324-pyodide-browser: OK;uv lock --check: Resolved 185 packages.pytest tests/test_ci_workflows.py tests/test_iclabel_quantization.py tests/test_browser_dependency_floors.py tests/test_optional_extras.py tests/test_package_help.pywithonnx==1.23.2andEEGPREP_SKIP_MATLAB=1: 90 passed, 9 skipped (the torch tests).production_runtime,native_backend,evaluate_model_reproduces,async_matches_sync,float32_network) pass on ONNX Runtime 1.20.1, 1.23.2 and 1.32.0: 5 passed, 1 skipped each.mainto the report, the float32 step deleted fromrelease.yml, each of the fivepyodidejob and secret settings undone, and the baseuv.lockrestored.metricsandfloat32_model; a compile of the exporteddevgroup forx86_64-apple-darwinwith wheels only failed on ONNX Runtime before the change and passes after it.actionlintontest.ymlandrelease.yml: 4 findings (shellcheck notes in untouched steps) on the base and on this head, the same ones.Not run: Tests (pull requests into the epic run no
test.yml; they run on #386 after this merges), the torch regeneration tests, the docs build, the EEGLAB reference workflow.Refs #386
Card FIX-386a of the NEMAR portable-compute program.