mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-01 00:27:20 -05:00
refactor: refuse unsandboxed campaign runs
Without a working bubblewrap the pass is refused and nothing third-party runs, probes require the sandbox and builds are refused, unless --allow-unsandboxed is given. A job report holding an alert raises an autorun alert.
This commit is contained in:
1 parent
e440073562
commit
fd449fdae3
5 files changed
+93
-6
No files matched your search
@@ -1006,6 +1006,11 @@ def run_job(ctx: Context, name: str) -> tuple[str, str]:
|
||||
else previous.get("consecutive_failures", 0) + 1,
|
||||
}
|
||||
state["jobs"][name] = record
|
||||
# A job's report can raise an alert of its own: campaign.py refusing to
|
||||
# run third-party code outside its sandbox.
|
||||
alert = runner.report.get("alert") if isinstance(runner.report, dict) else None
|
||||
if result != DEFERRED:
|
||||
set_alert(state, f"job:{name}", bool(alert), str(alert or ""), now_iso())
|
||||
prune_logs(ctx.home / "logs")
|
||||
save_state(ctx.state_path, state)
|
||||
return result, detail
|
||||
|
||||
Reference in new issue
Block a user