Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

ci: improve minimal flakiness (#6661)

Dylan Madisettibb17dbb921f3
diff --git a/tests/_runtime/reload/test_module_watcher.py b/tests/_runtime/reload/test_module_watcher.py
index 639b8f2d42..ea3fb2425c 100644
--- a/tests/_runtime/reload/test_module_watcher.py
+++ b/tests/_runtime/reload/test_module_watcher.py
@@ -81,6 +81,7 @@ async def test_reload_function(
assert k.globals["x"] == 2
async def test_disable_and_reenable_reload(
tmp_path: pathlib.Path,
py_modname: str,
@@ -110,6 +111,9 @@ async def test_disable_and_reenable_reload(
config["runtime"]["auto_reload"] = "off"
k.set_user_config(SetUserConfigRequest(config=config))
+ # TODO: Invesitigate flaky on minimal CI
+ await asyncio.sleep(INTERVAL / 2)
+
# ... and reenable it
config["runtime"]["auto_reload"] = "lazy"
k.set_user_config(SetUserConfigRequest(config=config))
@@ -251,12 +255,6 @@ async def test_reload_nested_module_import_module(
assert k.globals["x"] == 2
-# TODO(akshayka): deflake this test
- condition=sys.version_info[0] == 3 and sys.version_info[1] == 8,
- reason="Timing dependent test is flaky, needs investigation",
- strict=False,
-)
async def test_reload_nested_module_import_module_autorun(
tmp_path: pathlib.Path,
py_modname: str,