fix: wire sentinel sync helpers

This commit is contained in:
Codex
2026-07-03 05:32:13 +00:00
parent 89cde4fb80
commit 8945adec1b
3 changed files with 19 additions and 9 deletions
+6 -4
View File
@@ -56,6 +56,7 @@ import {
secretSourcePaths,
sentinelCliSuffix,
sentinelPipelineRunName,
sentinelProgressEvent,
sentinelSourceSnapshotRef,
sentinelSourceSnapshotStageRefPrefix,
sha256,
@@ -83,12 +84,17 @@ import {
} from "./hwlab-node-web-sentinel-cicd-shared";
import {
controlPlaneWaitWarningSeconds,
createK8sJobScript,
probeK8sJobScript,
publishSatisfiedByObservedWarnings,
runSentinelPublishJob,
runSentinelSourceMirrorSyncJob,
sentinelBlockedRemoteResult,
sentinelCicdElapsedWarnings,
sentinelGitMirrorCacheVolumeFromTarget,
sentinelPayloadFromLogs,
sentinelRemoteJobTimeoutWarnings,
sentinelSourceMirrorSyncShellFromConfig,
sentinelSourceMirrorAlreadyPresentResult,
sourceMirrorAlreadyReadyWarnings,
} from "./hwlab-node-web-sentinel-cicd-jobs";
@@ -2212,10 +2218,6 @@ export function withWarnings(payload: Record<string, unknown>, warnings: readonl
return merged.length === 0 ? payload : { ...payload, warnings: merged, valuesRedacted: true };
}
function sentinelProgressEvent(event: string, payload: Record<string, unknown>): void {
console.error(JSON.stringify({ event, at: new Date().toISOString(), ...payload, valuesRedacted: true }));
}
function installSentinelPublishInterruptHandler(state: SentinelCicdState, context: Record<string, unknown>): () => void {
let handled = false;
const handler = (signal: string) => {