You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are encountering a TimeoutError when running the test_notebook test within our CI pipeline in mostly of our current PRs. The error occurs during the reset_workspace method in the navigator.py file, specifically when waiting for the page load state to reach "networkidle." The test fails with the following traceback:
File "/home/runnerx/actions-runner/_work/nebari/nebari/tests/common/navigator.py", line 252, in reset_workspace
popup = self._check_for_kernel_popup()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runnerx/actions-runner/_work/nebari/nebari/tests/common/navigator.py", line 236, in _check_for_kernel_popup
self.page.wait_for_load_state("networkidle")
File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/playwright/sync_api/_generated.py", line 8949, in wait_for_load_state
self._sync(self._impl_obj.wait_for_load_state(state=state, timeout=timeout))
File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/playwright/_impl/_sync_base.py", line 115, in _sync
return task.result()
^^^^^^^^^^^^^
File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/playwright/_impl/_page.py", line 540, in wait_for_load_state
return await self._main_frame.wait_for_load_state(**locals_to_params(locals()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/playwright/_impl/_frame.py", line 243, in wait_for_load_state
return await self._wait_for_load_state_impl(state, timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runnerx/miniconda3/envs/test/lib/python3.11/site-packages/playwright/_impl/_frame.py", line 271, in _wait_for_load_state_impl
await waiter.result()
playwright._impl._errors.TimeoutError: Timeout 30000ms exceeded.
During an initial debug of this issue, it was observed that waiting for the "networkidle" state was not required. A simple wait_for_load_state call without specifying the state resolved the timeout issue. However, additional issues were encountered related to environment selection within the kernel selector popups in the tests themselves, which might require further investigation and refactoring.
Expected behavior
Playwright tests succeeding
OS and architecture in which you are running Nebari
Linux
How to Reproduce the problem?
The test that triggers this error is located in the test_playwright.py file under the test_notebook function, which relies on the following setup:
You can follow the readme instructions on how to run the e2e tests locally.
Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
This issue must be resolved as it is a significant obstacle in our testing workflows, causing disruptions and preventing other tests from running successfully in most of our recent PRs.
The text was updated successfully, but these errors were encountered:
Describe the bug
We are encountering a
TimeoutError
when running thetest_notebook
test within our CI pipeline in mostly of our current PRs. The error occurs during thereset_workspace
method in the navigator.py file, specifically when waiting for the page load state to reach "networkidle." The test fails with the following traceback:During an initial debug of this issue, it was observed that waiting for the "networkidle" state was not required. A simple
wait_for_load_state
call without specifying the state resolved the timeout issue. However, additional issues were encountered related to environment selection within the kernel selector popups in the tests themselves, which might require further investigation and refactoring.Expected behavior
OS and architecture in which you are running Nebari
Linux
How to Reproduce the problem?
The test that triggers this error is located in the
test_playwright.py
file under thetest_notebook
function, which relies on the following setup:You can follow the readme instructions on how to run the e2e tests locally.
Command output
No response
Versions and dependencies used.
No response
Compute environment
None
Integrations
No response
Anything else?
This issue must be resolved as it is a significant obstacle in our testing workflows, causing disruptions and preventing other tests from running successfully in most of our recent PRs.
The text was updated successfully, but these errors were encountered: