@rizom/ops 0.2.0-alpha.305 → 0.2.0-alpha.306
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/brains-ops.js +595 -296
- package/dist/health-watchdog-smoke.d.ts +54 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +630 -331
- package/dist/run-command.d.ts +3 -0
- package/package.json +1 -1
- package/templates/rover-pilot/.github/workflows/health-watchdog-smoke.yml +95 -0
- package/templates/rover-pilot/docs/operator-playbook.md +9 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { FetchLike } from "@brains/deploy-support/origin-ca";
|
|
2
|
+
import { type StressCommandRunner } from "./stress-command";
|
|
3
|
+
export interface HealthWatchdogSmokeTarget {
|
|
4
|
+
handle: string;
|
|
5
|
+
domain: string;
|
|
6
|
+
confirmation: string;
|
|
7
|
+
runId: string;
|
|
8
|
+
}
|
|
9
|
+
export interface HealthWatchdogSmokeOptions {
|
|
10
|
+
rootDir: string;
|
|
11
|
+
handle: string;
|
|
12
|
+
confirmation: string;
|
|
13
|
+
runId: string;
|
|
14
|
+
artifactsDir?: string | undefined;
|
|
15
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
16
|
+
fetchImpl?: FetchLike | undefined;
|
|
17
|
+
commandRunner?: StressCommandRunner | undefined;
|
|
18
|
+
logger?: ((message: string) => void) | undefined;
|
|
19
|
+
}
|
|
20
|
+
export interface HealthWatchdogSmokeResult {
|
|
21
|
+
success: true;
|
|
22
|
+
runId: string;
|
|
23
|
+
artifactsDir: string;
|
|
24
|
+
target: {
|
|
25
|
+
handle: string;
|
|
26
|
+
domain: string;
|
|
27
|
+
serverIp: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface CleanupHealthWatchdogSmokeOptions {
|
|
31
|
+
rootDir: string;
|
|
32
|
+
handle: string;
|
|
33
|
+
confirmation: string;
|
|
34
|
+
runId: string;
|
|
35
|
+
artifactsDir?: string | undefined;
|
|
36
|
+
env?: NodeJS.ProcessEnv | undefined;
|
|
37
|
+
fetchImpl?: FetchLike | undefined;
|
|
38
|
+
commandRunner?: StressCommandRunner | undefined;
|
|
39
|
+
logger?: ((message: string) => void) | undefined;
|
|
40
|
+
}
|
|
41
|
+
export interface CleanupHealthWatchdogSmokeResult {
|
|
42
|
+
success: true;
|
|
43
|
+
runId: string;
|
|
44
|
+
artifactsDir: string;
|
|
45
|
+
target: {
|
|
46
|
+
handle: string;
|
|
47
|
+
domain: string;
|
|
48
|
+
serverIp: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export declare function assertHealthWatchdogSmokeTarget(target: HealthWatchdogSmokeTarget): void;
|
|
52
|
+
export declare function renderHealthWatchdogSmokeRemoteScript(): string;
|
|
53
|
+
export declare function runHealthWatchdogSmoke(options: HealthWatchdogSmokeOptions): Promise<HealthWatchdogSmokeResult>;
|
|
54
|
+
export declare function cleanupHealthWatchdogSmoke(options: CleanupHealthWatchdogSmokeOptions): Promise<CleanupHealthWatchdogSmokeResult>;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,5 +16,6 @@ export { pushPilotSecrets } from "./secrets-push";
|
|
|
16
16
|
export { verifyPilotUser } from "./verify-user";
|
|
17
17
|
export { assertDirectorySyncStressTarget, directorySyncStressPlanSchema, directorySyncStressProfileSchema, directorySyncStressReportSchema, resolveDirectorySyncStressPlan, runDirectorySyncStressPlan, sampleStressHealth, stressMetricsFailure, type DirectorySyncStressDriver, type DirectorySyncStressPhase, type DirectorySyncStressPlan, type DirectorySyncStressProfile, type DirectorySyncStressReport, } from "./directory-sync-stress";
|
|
18
18
|
export { cleanupDirectorySyncStress, runDeployedDirectorySyncStress, verifyDirectorySyncStressAccess, type CleanupDirectorySyncStressOptions, type CleanupDirectorySyncStressResult, type DeployedDirectorySyncStressOptions, type DeployedDirectorySyncStressResult, type VerifyDirectorySyncStressAccessOptions, type VerifyDirectorySyncStressAccessResult, } from "./directory-sync-stress-system";
|
|
19
|
+
export { assertHealthWatchdogSmokeTarget, cleanupHealthWatchdogSmoke, renderHealthWatchdogSmokeRemoteScript, runHealthWatchdogSmoke, type CleanupHealthWatchdogSmokeOptions, type CleanupHealthWatchdogSmokeResult, type HealthWatchdogSmokeOptions, type HealthWatchdogSmokeResult, type HealthWatchdogSmokeTarget, } from "./health-watchdog-smoke";
|
|
19
20
|
export { runCommand, type CommandResult } from "./run-command";
|
|
20
21
|
export { pilotSchema, cohortSchema, canonicalBundleIdSchema, type PilotConfig, type CohortConfig, } from "./schema";
|