mirror of
https://github.com/Strategic-Automation/violin.git
synced 2026-08-14 12:33:37 +02:00
Harden plugin release checks and CI
This commit is contained in:
@@ -10,6 +10,7 @@ Write-Host "Violin smoke test (PowerShell)"
|
||||
Write-Host "Repo: $RepoRoot"
|
||||
|
||||
python scripts/violin_guard.py check-release
|
||||
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
||||
|
||||
if ($NoHermes) {
|
||||
Write-Host "Skipping Hermes install smoke because -NoHermes was supplied."
|
||||
@@ -25,9 +26,13 @@ if (-not $Hermes) {
|
||||
$ProfileName = "violin-smoke-$([int][double]::Parse((Get-Date -UFormat %s)))"
|
||||
try {
|
||||
hermes profile install . --name $ProfileName -y
|
||||
if ($LASTEXITCODE -ne 0) { throw "Hermes profile install failed." }
|
||||
hermes profile show $ProfileName
|
||||
if ($LASTEXITCODE -ne 0) { throw "Hermes profile show failed." }
|
||||
hermes -p $ProfileName tools --summary
|
||||
if ($LASTEXITCODE -ne 0) { throw "Hermes tool listing failed." }
|
||||
hermes -p $ProfileName chat -q "Smoke test: reply with Violin profile loaded" -Q
|
||||
if ($LASTEXITCODE -ne 0) { throw "Hermes chat smoke test failed." }
|
||||
}
|
||||
finally {
|
||||
hermes profile delete $ProfileName -y 2>$null
|
||||
|
||||
@@ -657,11 +657,11 @@ s4 = st(tools.handle_exec, **base2)
|
||||
assert s4 == "approved", f"step4 expected approved, got {s4}"
|
||||
print(" ok: violin_exec after sync -> approved")
|
||||
|
||||
# Step 5: hypothesis recording via plugin routes to hypothesis_guard.py
|
||||
# Step 5: hypothesis recording through the plugin core service.
|
||||
s5 = st(tools.handle_record_hypothesis, eng_dir=eng_dir, service="SMB",
|
||||
port="445", title="anon access", status="researching")
|
||||
assert s5 == "ok", f"step5 expected ok, got {s5}"
|
||||
print(" ok: violin_record_hypothesis -> ok (routed to hypothesis_guard.py)")
|
||||
print(" ok: violin_record_hypothesis -> ok")
|
||||
print("GATES_OK")
|
||||
PY
|
||||
gates_exit=$?
|
||||
|
||||
Reference in New Issue
Block a user