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
More robust galata/UI tests #15355
More robust galata/UI tests #15355
Conversation
Thanks for making a pull request to jupyterlab! |
- do not check text immediately as the kernel needs to connect first - quality of life: instead of using nth selector, use proper category selectors which helps when testing with more kernels installed
Some comments about the execution time huge variation you have encountered. I realized that lately by times to times the integration tests were executed with 2 workers instead of 1. This is nice but introduces discrepancies in documentation as in that case we end up with 2 |
Thanks! Should we merge these branches? It seems that we picked on different things I guess it would be good to see how it works together (and whether it does result in fully green tests on CI). Feel free to merge this branch (or specific commits) into your PR and then close this one. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @krassowski
@meeseeksdev please backport to 4.0.x |
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
* upstream/main: (7628 commits) Adopt ruff format (jupyterlab#15499) Bump scipy from 1.11.3 to 1.11.4 (jupyterlab#15474) [pre-commit.ci] pre-commit autoupdate (jupyterlab#15491) Pin `actions/labeler` to v4 to fix failing CI action (jupyterlab#15496) Add npm provenance issue to the list of release postmortems (jupyterlab#15493) Fix URLs in debugger-extension (jupyterlab#15462) Bump tj-actions/changed-files from 40.0.2 to 40.2.0 (jupyterlab#15471) Bump dessant/lock-threads from 4 to 5 (jupyterlab#15472) Bump pandas from 2.1.2 to 2.1.3 (jupyterlab#15473) Bump actions/github-script from 6 to 7 (jupyterlab#15470) Bump matplotlib from 3.7.2 to 3.8.2 (jupyterlab#15475) Bump rjsf to 5.13.4 (jupyterlab#15469) Don't play with the focus when handling focus event (jupyterlab#15408) [ci skip] Publish 4.1.0a4 Updated light theme visited link colour to make text visible (jupyterlab#15406) Load custom CSS functionality and documentation (jupyterlab#14743) Added alt descriptions to a few icon and images (jupyterlab#15265) More robust galata/UI tests (jupyterlab#15355) Fix Shift + L not working in stdin (jupyterlab#15440) Upgrade releaser workflows for silent support (jupyterlab#15446) ...
References
When developing tests against #15330 and other issues I faced a problem where this code path would freeze the test in an infinite loop.
From an experiment on my fork it appears that this little change could cut the runtime for galata tests by
50%. From about 44 minutes down to about 22 minutes. Well, it appears unrelated, maybe just the runners were different because I also see the fast run (21 minutes) over in #15356 which does not include these changes.Code changes
Use playwright
getAttribute
instead of evaluation to get class name.User-facing changes
None
Backwards-incompatible changes
None