Skip to content

Commit abf229c

Browse files
reduce flakiness
1 parent 548b2b7 commit abf229c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/aignostics/application/_gui/_frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
BORDERED_SEPARATOR = "bordered separator"
1616
RUNS_LIMIT = 100
17-
RUNS_REFRESH_INTERVAL = 60 * 5 # 5 minutes
17+
RUNS_REFRESH_INTERVAL = 60 * 15 # 15 minutes
1818
STORAGE_TAB_RUNS_HAS_OUTPUT = "runs_has_output"
1919

2020
service = Service()
@@ -276,7 +276,7 @@ def is_active(self) -> bool:
276276
ui.separator()
277277
await _runs_list()
278278

279-
# Auto-refresh runs list every minute
279+
# Auto-refresh runs list
280280
ui.timer(interval=RUNS_REFRESH_INTERVAL, callback=_runs_list.refresh)
281281
except Exception as e: # noqa: BLE001
282282
ui.label(f"Failed to list application runs: {e!s}").mark("LABEL_ERROR")

tests/aignostics/application/cli_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def test_cli_run_submit_fails_on_missing_url(runner: CliRunner, tmp_path: Path)
243243

244244
@pytest.mark.e2e
245245
@pytest.mark.long_running
246+
@pytest.mark.flaky(retries=2, delay=5, only_on=[AssertionError])
246247
@pytest.mark.timeout(timeout=60 * 10)
247248
def test_cli_run_submit_and_describe_and_cancel_and_download_and_delete( # noqa: PLR0915
248249
runner: CliRunner, tmp_path: Path, silent_logging

tests/aignostics/application/gui_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ async def test_gui_cli_submit_to_run_result_delete(user: User, runner: CliRunner
127127
await user.should_see(marker="SIDEBAR_APPLICATION:he-tme", retries=100)
128128
await user.should_see("Atlas H&E-TME", retries=100)
129129
await user.should_see("Runs")
130-
await user.should_see(content=HETA_APPLICATION_ID, marker="LABEL_RUN_APPLICATION:0", retries=100)
130+
await user.should_see(content=HETA_APPLICATION_ID, marker="LABEL_RUN_APPLICATION:0", retries=250)
131131
await user.should_see(content=HETA_APPLICATION_VERSION, marker="LABEL_RUN_APPLICATION:0", retries=100)
132132

133133
# Navigate to the extracted run ID

0 commit comments

Comments
 (0)