Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should we improve cell toolbar logic or disable cell toolbar in tests? #15305

Closed
krassowski opened this issue Oct 26, 2023 · 5 comments · Fixed by #16291
Closed

Should we improve cell toolbar logic or disable cell toolbar in tests? #15305

krassowski opened this issue Oct 26, 2023 · 5 comments · Fixed by #16291

Comments

@krassowski
Copy link
Member

Description

A bottleneck in the PR review are often the visual test failures. In addition to a few existing test cases which are flaky, a very common problem is the cell toolbar randomly showing up when it should not or randomly hiding when it should be visible for a split second. It is not a problem in normal usage when it is mostly unnoticeable, but it leads to many spurious failed tests, wasting hundreds of hours in CI time and in the time of maintainers, for example:

Actual Expected Diff
reexpand-headers-03a-actual reexpand-headers-03a-expected reexpand-headers-03a-diff
Actual Expected Diff
notebook-panel-1-actual notebook-panel-1-expected notebook-panel-1-diff

Reproduce

Screenshots taken from https://github.com/jupyterlab/jupyterlab/actions/runs/6640451043/job/18051878571?pr=15296 but every other PR has this issue. If you seen green status it likely means that one of the maintainers manually restarted the job after checking the failures manually (so they did that instead of improving the codebase or merging a PR).

@krassowski krassowski added bug maintenance status:Needs Triage Applied to new issues that need triage labels Oct 26, 2023
@JasonWeill
Copy link
Contributor

This may be related to known bugs #13115 and #13857 regarding the cell toolbar's display. In addition, there's #12223, an enhancement request to make the cell toolbar visible all the time, perhaps in collapsed form.

@JasonWeill JasonWeill removed the status:Needs Triage Applied to new issues that need triage label Oct 31, 2023
@krassowski
Copy link
Member Author

Also, there is #15314 which might help with things.

@krassowski
Copy link
Member Author

krassowski commented Jan 31, 2024

It continues to be a drag on maintenance and development (for example see incorrect snapshot update of notebook-run.test.ts-snapshots/notebook-panel-1-jupyterlab-linux.png in 1549442).

@krassowski
Copy link
Member Author

In discussion on #15422 with @brichet we note that after refreshing the page the toolbar often does not hide even though it should. I can reliably reproduce this on main:

should-hide

This looks like a bug in the logic which has implications on the maintainers ability to move forward because these tests are always flaky and often fail the run, adding about 15 to 30 minutes wasted to each PR review (we need to download the artifact, unpack, analyze, re-run a few times).

@krassowski
Copy link
Member Author

This is also a hurdle for new contributors as seen in #16284.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants