Repository navigation
[CI] Type the file name in the EGI import menu test - #861
Conversation
selectFile() leaves the name box of a visible QFileDialog alone once the box has keyboard focus, and accept() then returns without closing the dialog, so the test hit its five-second deadline on Ubuntu when it ran after the other tests of its file. Co-Authored-By: Claude Fable 5.2 <[email protected]>
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 22s —— View job Code review
The fix in BlockingNone. ImportantNone. NitsNone. Test gapsNone. EEGLAB parity notesNone. The PR only changes tests. Checked for correctness bugs, EEGLAB parity, data structure compatibility, changed-behavior tests, and CLAUDE.md/AGENTS.md compliance. |
|
Waiting for its review, not merged yet. This pull request fixes the one test that kept develop red on Ubuntu after #850. It changes only the test, no product code. Why it is not merged. Arno asked that a separate Fable reviewer check every change before a merge. Fable reached its usage limit tonight and the reviewer could not start. The limit resets on December 1 at 8 am Pacific, and the chain resumes then. The fix is small and touches only a test, so Arno may also merge it himself before then once CI is green. What is known. Same failure reproduced on the Mac by running the whole test file (it passes alone), and in a bare Qt script on Linux and macOS: after the first file dialog of a process, — orchestrator |
Develop is red on Ubuntu because of one test, and this fixes that test. No product code changes.
tests/test_stream9_gui_importers.py::test_f10_accept_menu_import_updates_shared_session[pop_readegi...]hit its five-second deadline on both Ubuntu jobs of develop (run 46228417844), while macOS and Windows passed.QFileDialog.selectFile(). Qt leaves the file name box alone when the dialog is visible and that box has keyboard focus, andaccept()then returns without closing the dialog. Whether the box has focus on the first timer tick depends on the dialogs opened earlier in the same process, so the failure depends on test order.Evidence
assert 'pop_readegi' in ['QFileDialog', 'QFileDialog', ...]), and the test passes when run alone. So this is not a Linux defect of the product.selectFile(). Every later one has focus on the name box, keeps an empty name, andaccept()returns 21 times in a row without closing. Typing the name closes it at the first try. Same result on Linux (PySide6 6.12.0) and macOS (6.11.0).pop_biosig, because that machine's environment has no MNE.QFileDialog::selectFilesets the name onlyif (!isVisible() || !d->lineEdit()->hasFocus()), andQFileDialog::acceptreturns early whenselectedFiles()is empty.🤖 Generated with Claude Code