Repository navigation
[GUI] Make develop's test jobs pass again: three repairs - #1062
arnodelorme wants to merge 6 commits into
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 @arnodelorme's task in 29s —— View job Code review
BlockingNone. ImportantNone. NitsNone. Test gapsNone. EEGLAB parity notesNone. Points checked:
Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. I did not run the tests in this session; I reviewed the code and the fixture logic. |
|
Three follow-up commits from review:
Checks (macOS, offscreen Qt): Agentic AI tools were used. Workflows follow the Research Skills (doi:10.5281/zenodo.20696515). The author assumes full responsibility for this content and associated changes. |
Develop's test jobs fail on all four platforms since December 1, 2026, for three unrelated reasons, so every open pull request shows red checks. This pull request repairs the three. Two are tests, one is a one-line change in the comments figure.
068ad174)test_stream11_datasets.py::test_f42_merge_opens_newset_and_cancel_preserves_datasets(2 failed, 2 errors)1 2.test_gui_geometry.py::test_runica_width_follows_first_visible_algorithm_only(assert 1816 < 1440)pop_runicacasestest_pop_editeventvals.py, the job stops at 63%qt_comments.pyreads the size of the primary screen instead of asking the dialog for its screen.The Python 3.13 crash: how it was found
Reproduced on jamming with Python 3.13.18 and the locked packages (PySide6 6.11.0). The smallest run that crashes is
pytest tests/test_plugin_menu.py tests/test_pop_comments.py::test_comments_figure_resizes_like_matlab tests/test_pop_editeventfield_current.py. The crash is in Qt, at the nextQDialog()built after the comments figure of #929 was destroyed:It needs the call
dialog.screen()inbuild_comments_figure: with the primary screen read from the application the same run passes, and so does the whole suite (no crash in a full Python 3.13 run on jamming, where the earlier run stopped at 63%). A dialog that is not shown yet is on the primary screen, so the size of the comments figure does not change. Why Qt keeps a dangling screen there is not established: the same call on an ordinary dialog (qt.py,_apply_spec_size) does not crash, a standalone script that repeats the test does not crash, and defining the dialog class once instead of at every call did not help. It does not occur with Python 3.12, on macOS or on Windows.How the two test failures were found, and the checks
git bisect --first-parentbetweencea86f8fand develop gives the merge of #904 (f0537673) for the Append datasets test: #904 gave the dialog what EEGLAB has (no title, one proposed dataset) and the menu test still looked for "pop_mergeset" in the title.In
supergui.ma text more than three times wider than its cell is left out of the figure width. With the wide fallback font of the Windows runner the longerpop_runicalabel passes that limit, so the window with the longer label is the narrower one (1440 against 1816 pixels). The two assertions that matter (the width follows the first label, whichever is selected) are unchanged.On the Mac:
tests/test_stream11_datasets.py,tests/test_gui_geometry.pyandtests/test_pop_comments.pypass (208 passed, 85 skipped, then 9 passed). On jamming, Python 3.13: the full suite runs to the end with this branch.Part of #733