Revise action-aware pilot after token overload
This commit is contained in:
@@ -56,7 +56,10 @@ def configure(args: argparse.Namespace, manifest: Mapping[str, Any]) -> None:
|
||||
|
||||
|
||||
def validate_inputs(args: argparse.Namespace, manifest: Mapping[str, Any]) -> None:
|
||||
if manifest.get("schema") != "action-aware-constraint-pilot-manifest-v0":
|
||||
if manifest.get("schema") not in {
|
||||
"action-aware-constraint-pilot-manifest-v0",
|
||||
"action-aware-constraint-pilot-manifest-v1",
|
||||
}:
|
||||
raise RuntimeError("unexpected action-aware manifest schema")
|
||||
if manifest.get("status") != "PASS":
|
||||
raise RuntimeError("action-aware manifest did not pass preflight")
|
||||
@@ -455,7 +458,7 @@ def execute_session(
|
||||
first = manifest["repetitions"][str(config["repetition_order"][0])]
|
||||
session_state["status"] = "warmup"
|
||||
atomic_json(state_path, state)
|
||||
run_client(
|
||||
burnin_result = run_client(
|
||||
entry=entry,
|
||||
config=config,
|
||||
role="warmup",
|
||||
@@ -479,6 +482,19 @@ def execute_session(
|
||||
state=state,
|
||||
timeout_s=float(manifest["engine"]["client_timeout_s"]),
|
||||
)
|
||||
burnin_elapsed_s = float(burnin_result["interval"]["elapsed_s"])
|
||||
session_state["burnin"] = {
|
||||
"elapsed_s": burnin_elapsed_s,
|
||||
"pass_rate": float(burnin_result["pass_rate"]),
|
||||
"feasible": bool(burnin_result["feasible"]),
|
||||
}
|
||||
atomic_json(state_path, state)
|
||||
burnin_limit_s = float(manifest["engine"]["burnin_max_elapsed_s"])
|
||||
if burnin_elapsed_s > burnin_limit_s:
|
||||
raise RuntimeError(
|
||||
f"burnin throughput gate failed: {burnin_elapsed_s:.3f}s > "
|
||||
f"{burnin_limit_s:.3f}s"
|
||||
)
|
||||
session_state["status"] = "measured"
|
||||
atomic_json(state_path, state)
|
||||
for repetition in config["repetition_order"]:
|
||||
|
||||
Reference in New Issue
Block a user