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
@@ -120,13 +120,14 @@ class TestHubConsole(HubCase):
|
||||
(200, "done", 1), (200, "done", 1), (200, "done", 1), (200, "failed", 1), (200, "failed", 1), (200, "failed", 1), (200, "refused", 0), (200, "failed", 0),
|
||||
])
|
||||
shown = ["greet", f"--command={COMMAND}", f"--dir={self.outside}"]
|
||||
where = [f"--where=the console of hub job {job['id']} under the row in Waits on Operator" for job in jobs[3:6]]
|
||||
self.assertEqual(self.scripts.calls, [
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["ran", *shown]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["ran", *shown, "--check-failed"]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["ran", *shown, "--check-failed"]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["failed", *shown, "--why", "exit 3"]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["failed", *shown, "--why", "killed by signal 9"]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["failed", *shown, "--why", "exit 130"]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["failed", *shown, "--why", "exit 3", where[0]]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["failed", *shown, "--why", "killed by signal 9", where[1]]),
|
||||
(skill_scripts.OPERATOR_SCRIPT, ["failed", *shown, "--why", "exit 130", where[2]]),
|
||||
])
|
||||
self.assertNotIn("token-42", json.dumps(self.scripts.calls))
|
||||
|
||||
|
||||
Reference in new issue
Block a user