mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-16 03:49:26 +00:00
merge(plane): ax field names verbatim; pins and bindings as stripped annotations
Live test made opt-in (OUSAST_AX_LIVE=1) against the digest-pinned manifest up.sh renders, so the host gate no longer depends on cluster state. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01EmM1j46qgKMh3zqD1QMwEo
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
"""ai-service-plane Req 3.5/3.6: one trivial Task end to end on the real ax cluster of ``ops/ax/up.sh``.
|
||||
|
||||
Marker ``ax``; skipped unless every check of ``ousast plane doctor`` passes, so the host suite never depends on
|
||||
the cluster. Run it on purpose: ``pytest -m ax tests/test_plane_ax_live.py``.
|
||||
Marker ``ax``; opt-in only (``OUSAST_AX_LIVE=1``) and skipped unless every check of ``ousast plane doctor``
|
||||
passes, so the host suite never depends on cluster state. It applies the digest-pinned smoke manifest that
|
||||
``ops/ax/up.sh`` renders. Run it on purpose: ``OUSAST_AX_LIVE=1 pytest -m ax tests/test_plane_ax_live.py``.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
import time
|
||||
from pathlib import Path
|
||||
|
||||
@@ -14,11 +16,13 @@ import pytest
|
||||
from openultrasast.plane.reconciler import Ax, doctor
|
||||
|
||||
pytestmark = pytest.mark.ax
|
||||
SMOKE = Path("ops/ax/smoke-task.yaml")
|
||||
SMOKE = Path.home() / ".cache/ousast/ax-src/smoke-task.yaml"
|
||||
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def live_ax() -> Ax:
|
||||
if os.environ.get("OUSAST_AX_LIVE") != "1":
|
||||
pytest.skip("live ax test is opt-in: set OUSAST_AX_LIVE=1")
|
||||
checks = doctor()
|
||||
failing = [f"{name}: {text}" for name, ok, text in checks if not ok]
|
||||
if failing:
|
||||
|
||||
Reference in New Issue
Block a user