Skip to content

Re-vendor eegprep-lean 0.1.0.dev3 - #510

Merged
neuromechanist merged 1 commit into
developfrom
chore/revendor-eegprep-lean-dev3
Sep 25, 2026
Merged

neuromechanist merged 1 commit into
developfrom
chore/revendor-eegprep-lean-dev3

Conversation

@neuromechanist

Copy link
Copy Markdown
Member

Refs #496 (the notebook's second fault; #502 fixed the first).

eegprep-lean's PyfetchTransport sent User-Agent: eegprep-lean. Chrome drops a script-set User-Agent, but Safari and Firefox send it, which made every notebook read a CORS preflight that zarr.nemar.org refuses. sccn/eegprep#420 sends only Range, and sccn/eegprep#423 releases it as 0.1.0.dev3. The new name is needed because wheels here are served as immutable under their file name.

Changes

  • wheels/: eegprep_lean-0.1.0.dev2 replaced by 0.1.0.dev3, built from sccn/eegprep@50c50879 with SOURCE_DATE_EPOCH=1790299289. Two builds from fresh archives give the same sha256, 12a07ac4a3bcf42e6de069e6033a683d5b3ab77920182cec15cdc3a4f5b15331.
  • nemar-pyodide-lock.json regenerated; sources.toml and the README table updated.
  • Tests that name the vendored wheel file updated. References to 0.1.0.dev2 as a minimum version, as history, or as the drift test's own fixture stay.
  • Between the old commit b4aa18bd and 50c50879, the only changes under packages/eegprep-lean are chore: sync develop with main after v0.8.11 #420 and the version line.

Proof (runtime README's order)

  • build_runtime_lock.py --check: current
  • bun frontend/test-data-lane.js: 93/93, with the new wheel in a real Pyodide
  • bun frontend/browser-harness/chrome.js: ok; the wheel loads by URL with its sha256 checked, under the production policy, and a warm boot serves it from cache
  • pytest for the NEMAR runtime, the notebook site and the drift watcher: 127 passed
  • scripts/eegprep_lean_drift.py: current at 50c50879
  • widget_e2e.py --nemar by hand against the live archive: not run; the Chrome harness and the data lane cover the wheel's reads
  • WebKit: the notebook's nm000132 second cell reads the store instead of raising TransportError

sccn/eegprep#420 makes PyfetchTransport send only Range; its
User-Agent made every notebook read in Safari and Firefox a CORS
preflight zarr.nemar.org refuses (#496). Built reproducibly from
50c50879 (#423); the runtime and the notebook site serve it.

Tested: two builds give sha256 12a07ac4...; build_runtime_lock
--check current; nemar runtime, notebook site and drift pytest (127);
test-data-lane.js 93/93; chrome.js ok; drift watcher current.
@neuromechanist

Copy link
Copy Markdown
Member Author

Checked in WebKit 26.6 (headless, through Playwright 1.63; not Safari itself). I built this branch's notebook site at b1785ae on loopback and opened open.html?community=nemar&dataset=nm000132.

  • The notebook installed eegprep_lean-0.1.0.dev3-py3-none-any.whl from the site's wheels/nemar/.
  • The index cell printed 240 recordings with a Zarr copy, then the first ten store paths (starting with sub-001/eeg/sub-001_task-MMN_eeg.set), in 1.0 s.
  • The read cell printed (4, 500) uV 250.0 ('FP1', 'F3', 'F7', 'FC3') and a figure, in 2.0 s.
  • No User-Agent: eegprep-lean was sent, and no preflight was made. The index.json request carried only the browser's own user agent and got a 200. The chunk reads were plain GETs with Range and got 206.
  • The kernel went back to idle after each cell, and a further execution ran.

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