fix: disable automatic sentinel quick verify cadence
This commit is contained in:
@@ -1102,6 +1102,8 @@ function sentinelCadenceCronJobPlan(
|
||||
imageRef: string,
|
||||
sentinelEnv: readonly Record<string, unknown>[],
|
||||
): Record<string, unknown> | null {
|
||||
const cadenceSchedulerEnabled = booleanAtNullable(cicd, "targetValidation.cadenceScheduler.enabled") === true;
|
||||
if (!cadenceSchedulerEnabled) return null;
|
||||
const scenarioId = stringAtNullable(cicd, "targetValidation.scenarioId");
|
||||
if (scenarioId === null) return null;
|
||||
const scenario = scenarioRows(scenarios).find((item) => item.id === scenarioId && item.enabled !== false) ?? null;
|
||||
@@ -3440,6 +3442,11 @@ export function numberAtNullable(value: unknown, path: string): number | null {
|
||||
return typeof found === "number" && Number.isFinite(found) ? found : null;
|
||||
}
|
||||
|
||||
function booleanAtNullable(value: unknown, path: string): boolean | null {
|
||||
const found = valueAtPath(value, path);
|
||||
return typeof found === "boolean" ? found : null;
|
||||
}
|
||||
|
||||
export function displayPath(pathValue: string): string {
|
||||
if (pathValue.startsWith(`${repoRoot}/`)) return pathValue.slice(repoRoot.length + 1);
|
||||
const marker = "/.worktree/";
|
||||
|
||||
Reference in New Issue
Block a user