mirror of
https://github.com/norandom/OpenUltraSAST.git
synced 2026-10-18 04:29:27 +00:00
ax: verify and probe tasks carry the search-verify/search-probe name prefixes [skip ci]
The kind default "pin" had produced ousast-engine-pin-search-verify-* names, which the operator per-host egress rules do not match. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
aebc834667
commit
b1024b8daa
@@ -30,12 +30,12 @@ def validate_result(data: bytes, output: Path) -> None:
|
|||||||
|
|
||||||
def probe_workload(image: str, deadline: float = 900) -> Workload:
|
def probe_workload(image: str, deadline: float = 900) -> Workload:
|
||||||
validate_image(image)
|
validate_image(image)
|
||||||
return Workload(image, frozenset({"RESULT_URL"}), deadline, validate_result)
|
return Workload(image, frozenset({"RESULT_URL"}), deadline, validate_result, kind="search-probe")
|
||||||
|
|
||||||
|
|
||||||
def probe_item(image: str) -> Item:
|
def probe_item(image: str) -> Item:
|
||||||
return Item(
|
return Item(
|
||||||
"search-probe",
|
"v1",
|
||||||
{},
|
{},
|
||||||
"result.json",
|
"result.json",
|
||||||
("python3", "-m", "openultrasast.search.probe"),
|
("python3", "-m", "openultrasast.search.probe"),
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ class AXSideDispatcher:
|
|||||||
raise ValueError("verification accepts checkout and declarative inputs only")
|
raise ValueError("verification accepts checkout and declarative inputs only")
|
||||||
# The trusted host selects an executor for this side. Build/package work
|
# The trusted host selects an executor for this side. Build/package work
|
||||||
# finishes there before any verifier worker slot is acquired.
|
# finishes there before any verifier worker slot is acquired.
|
||||||
workload = Workload(self.image, frozenset({"VERIFY_INPUT_URL", "RESULT_URL"}), timeout_seconds * 6 + 60, validate_result)
|
workload = Workload(self.image, frozenset({"VERIFY_INPUT_URL", "RESULT_URL"}), timeout_seconds * 6 + 60, validate_result, kind="search-verify")
|
||||||
lane = self.lane or AXLane(self.args, workload)
|
lane = self.lane or AXLane(self.args, workload)
|
||||||
spec = {"demo": demo, "family": family, "timeout_seconds": timeout_seconds}
|
spec = {"demo": demo, "family": family, "timeout_seconds": timeout_seconds}
|
||||||
try:
|
try:
|
||||||
@@ -79,7 +79,7 @@ class AXSideDispatcher:
|
|||||||
return SideRecord("could_not_build", (), 0, str(exc), isolation_mode="task-boundary")
|
return SideRecord("could_not_build", (), 0, str(exc), isolation_mode="task-boundary")
|
||||||
records = []
|
records = []
|
||||||
for _ in range(3):
|
for _ in range(3):
|
||||||
identity = "search-verify-" + uuid.uuid4().hex
|
identity = uuid.uuid4().hex
|
||||||
item = Item(
|
item = Item(
|
||||||
identity,
|
identity,
|
||||||
{"VERIFY_INPUT_URL": archive},
|
{"VERIFY_INPUT_URL": archive},
|
||||||
|
|||||||
@@ -501,7 +501,7 @@ def main(argv=None):
|
|||||||
try:
|
try:
|
||||||
store = open_store(args.board_memory) if args.board_memory else FileStore(root / "boards")
|
store = open_store(args.board_memory) if args.board_memory else FileStore(root / "boards")
|
||||||
if not args.dry_run:
|
if not args.dry_run:
|
||||||
lane = AXLane(args, Workload(args.image, frozenset({"VERIFY_INPUT_URL", "RESULT_URL"}), 900, validate_result))
|
lane = AXLane(args, Workload(args.image, frozenset({"VERIFY_INPUT_URL", "RESULT_URL"}), 900, validate_result, kind="search-verify"))
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
aborted_reason = exception_reason(exc)
|
aborted_reason = exception_reason(exc)
|
||||||
for index in indices if aborted_reason is None else []:
|
for index in indices if aborted_reason is None else []:
|
||||||
|
|||||||
Reference in New Issue
Block a user