chore(repo): 纳入云治理主站运行基线 #27

Merged
zheromiku merged 195 commits from integrate/cloud-main-baseline into main 2026-11-23 14:23:59 +08:00
Showing only changes of commit 22fb33aa75 - Show all commits
@@ -368,6 +368,7 @@ WHERE index_name=$1 AND document_id='chunk-target'`, fx.index).Scan(&row); err !
if code != http.StatusAccepted {
t.Fatalf("recover with a held dispatch boundary => %d %v", code, accepted)
}
save("17n-recover-accepted.json", map[string]any{"http": code, "body": accepted, "window_job_id": job.ID})
queueID, _ := accepted["job"].(map[string]any)["id"].(string)
if queueID == "" {
t.Fatalf("recover response has no queue job: %v", accepted)
@@ -490,6 +491,8 @@ WHERE index_name=$1 AND document_id='chunk-target'`, fx.index).Scan(&row); err !
if secondCode != http.StatusAccepted {
t.Fatalf("second recover via the normal API => %d %v", secondCode, secondAccepted)
}
save("17n2-second-recover-accepted.json", map[string]any{"http": secondCode, "body": secondAccepted,
"window_job_id": job.ID})
secondQueue, _ := secondAccepted["job"].(map[string]any)["id"].(string)
if secondQueue != governance.LibraryRecoveryQueueID(job.ID) {
t.Fatalf("second recover queue id = %q, want the window's own %q", secondQueue,