fix(kvb-org-operator): a failed run keeps its output with the operator and add refuses rows the runner cannot judge
run no longer keeps or offers to share the last stderr lines of a failed command, since they can hold a credential; failed rows and the call name where the output stays instead (failed.where): the terminal of run, or for the hub the console of its job. add refuses a command that holds queue.py hold, which parks the one-job hub runner in a queue wait, and a pipe into tee without pipefail, whose exit code is tee's. 🎯 Fix: 95 % 💥 Break: 4 % 💸 Tokens: – ⏱️ Velocity: – 🛡️ Security: ~100 % 🏆 Score: 91 🚦 Gate: ✅ 90/5, tokens and velocity <= 100, security 100 % Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ca4ce68029
commit
7d1926e3de
5 files changed
+107
-94
No files matched your search
@@ -118,8 +118,9 @@ class Jobs:
|
||||
Returns:
|
||||
The operator.py runs that report the end of an operator command
|
||||
job on its row: `ran` on exit 0, with --check-failed unless
|
||||
checked, so the row stays open; `failed` on any other exit; none
|
||||
for a refused job or a task or gate change.
|
||||
checked, so the row stays open; `failed` with where the output
|
||||
stays, the job's console, never the output itself, on any other
|
||||
exit; none for a refused job or a task or gate change.
|
||||
"""
|
||||
if job.get("kind") in CHANGES or status not in ("done", "failed"):
|
||||
return []
|
||||
@@ -127,5 +128,6 @@ class Jobs:
|
||||
shown = [slug, f"--command={job['command']}", f"--dir={job['directory']}"]
|
||||
if status == "failed":
|
||||
why = f"killed by signal {-code}" if code < 0 else f"exit {code}"
|
||||
return [self.scripts.run(OPERATOR_SCRIPT, ["failed", *shown, "--why", why])]
|
||||
where = f"the console of hub job {job['id']} under the row in Waits on Operator"
|
||||
return [self.scripts.run(OPERATOR_SCRIPT, ["failed", *shown, "--why", why, f"--where={where}"])]
|
||||
return [self.scripts.run(OPERATOR_SCRIPT, ["ran", *shown] if checked else ["ran", *shown, "--check-failed"])]
|
||||
Reference in new issue
Block a user