Compare commits

..
Author SHA1 Message Date
bruno 84ac82a231 ci-tests: watchdog faulthandler 30min + test TTL web_cache déterministe (fin du hang sous --cov)
CI / security (push) Successful in 21s
CI / lint (push) Successful in 1m25s
CI / test (push) Successful in 4m17s
CI / build (push) Successful in 1m26s
CI / e2e (push) Successful in 15m43s
2026-11-25 19:31:20 -05:00
bruno c4a3d2a2d3 ci: revalidation runners après correctifs ISA/labels
CI / security (push) Successful in 34s
CI / lint (push) Successful in 1m55s
CI / test (push) Failing after 37m46s
CI / build (push) Skipped
CI / e2e (push) Skipped
2026-11-25 17:46:02 -05:00
bruno d7a35ff7db Bundle docs Nexus (mécanique suite) — sources d'aide rapatriées + publication (#79) (#80)
CI / lint (push) Successful in 3m1s
CI / security (push) Successful in 24s
CI / test (push) Failing after 28m9s
CI / build (push) Skipped
CI / e2e (push) Skipped
Bundle docs Nexus — sources rapatriées et publication (#79)
2026-11-25 14:49:32 -05:00
2 changed files with 13 additions and 2 deletions
+7
View File
@@ -1,4 +1,11 @@
# tests/conftest.py — Shared fixtures for ObsiGate test suite # tests/conftest.py — Shared fixtures for ObsiGate test suite
import faulthandler
# Chien de garde CI : la suite sous --cov peut se pendre (course coverage ×
# threads). Dump des stacks de tous les threads après 30 min + exit forcé :
# le log CI nomme alors exactement où ça bloque (et ne pend plus des heures).
faulthandler.dump_traceback_later(1800, exit=True)
import os import os
import sys import sys
import shutil import shutil
+6 -2
View File
@@ -48,9 +48,13 @@ class TestCacheRoundTrip:
key = webcache.cache_key("search", {"q": "x"}) key = webcache.cache_key("search", {"q": "x"})
webcache.cache_set(key, {"v": 1}) webcache.cache_set(key, {"v": 1})
assert webcache.cache_get(key) == {"v": 1} assert webcache.cache_get(key) == {"v": 1}
import time # déterministe : on rajeunit la colonne created plutôt que
# dépendre d'un sleep face à une horloge TTL de 50 ms.
import sqlite3
time.sleep(0.15) with sqlite3.connect(str(tmp_path / "cache.sqlite3")) as con:
con.execute("UPDATE web_cache SET created = 0.0")
con.commit()
assert webcache.cache_get(key) is None assert webcache.cache_get(key) is None
def test_disabled_when_ttl_zero(self, cache_enabled, monkeypatch): def test_disabled_when_ttl_zero(self, cache_enabled, monkeypatch):