Skip to content

The OSINT investigator's workbench. One case, one folder, every tool. Local-first: your media and your investigations never leave your machine.

JavaScript

Stabilize cross-platform CI after the graph merge (#54)

OsintMeThate46d2ed5da1d
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 400373a..740497d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -39,8 +39,8 @@ jobs:
os: macos-latest
python: "3.12"
tests: all
- # Four fresh Windows processes retain the complete suite while making
- # progress visible and keeping the slowest shard near ten minutes.
+ # Five fresh Windows processes retain the complete suite while making
+ # progress visible and keeping every shard well below the timeout.
- name: Backend (windows-latest, py3.12, A-F)
os: windows-latest
python: "3.12"
@@ -49,10 +49,14 @@ jobs:
os: windows-latest
python: "3.12"
tests: tests/test_[g-l]*.py
- - name: Backend (windows-latest, py3.12, M-R)
+ - name: Backend (windows-latest, py3.12, M-O)
os: windows-latest
python: "3.12"
- tests: tests/test_[m-r]*.py
+ tests: tests/test_[m-o]*.py
+ - name: Backend (windows-latest, py3.12, P-R)
+ os: windows-latest
+ python: "3.12"
+ tests: tests/test_[p-r]*.py
- name: Backend (windows-latest, py3.12, S-Z)
os: windows-latest
python: "3.12"
diff --git a/frontend/e2e/graph.spec.js b/frontend/e2e/graph.spec.js
index 414692f..3347873 100644
--- a/frontend/e2e/graph.spec.js
+++ b/frontend/e2e/graph.spec.js
@@ -1226,6 +1226,10 @@ async function dragNode(page, from, dx, dy) {
await page.mouse.move(from.x + dx / 2, from.y + dy / 2, { steps: 5 });
await page.mouse.move(from.x + dx, from.y + dy, { steps: 5 });
await page.mouse.up();
+ // Graph keeps its drag guard through the release click, then clears it on the
+ // next frame. A second gesture cannot happen before that frame in real use, so
+ // do not let a fast headless runner manufacture that impossible overlap.
+ await page.evaluate(() => new Promise((resolve) => requestAnimationFrame(resolve)));
}
/** Leave and come back, so a node already under a still pointer names itself. */
diff --git a/tests/test_graph.py b/tests/test_graph.py
index 519b824..6957a25 100644
--- a/tests/test_graph.py
+++ b/tests/test_graph.py
@@ -31,6 +31,7 @@ from PIL import Image
from azimut.engine import entities as entity_engine
from azimut.engine import graph as graph_engine
from azimut.engine import links as link_engine
+from azimut.engine import workqueue
from azimut.workspace import Case
@@ -1064,6 +1065,10 @@ def _adjusted(client, cid, path, amount=1.4, label=None):
},
)
assert res.status_code == 200, res.text
+ # Saving queues enrichment, and the graph assertions below read the mirror
+ # suggestion that job may create. Do not race the background worker on a fast
+ # or heavily loaded runner.
+ assert workqueue.wait_until_idle(timeout=10)
return res.json()["saved"][0]