blob: 06d2f4761aa3cf638c668f321761fbfdcc699820 [file] [log] [blame]
import {
Config,
CommitMsgConfig_BuiltIn,
GerritConfig_Config,
NotifierConfig_LogLevel,
NotifierConfig_MsgType,
} from '../config';
export function GetFakeConfig(): Config {
return {
rollerName: "skia-skiabot-test-autoroll",
childDisplayName: "Skia",
parentDisplayName: "Skiabot Test",
parentWaterfall: "https://status-staging.skia.org/repo/skiabot-test",
ownerPrimary: "borenet",
ownerSecondary: "rmistry",
contacts: ["borenet@google.com"],
serviceAccount: "skia-autoroll@skia-public.iam.gserviceaccount.com",
isInternal: false,
reviewer: ["borenet@google.com"],
rollCooldown: "",
timeWindow: "",
supportsManualRolls: true,
commitMsg: {
bugProject: "",
childLogUrlTmpl: "https://skia.googlesource.com/skia.git/+log/{{.RollingFrom}}..{{.RollingTo}}",
cqDoNotCancelTrybots: false,
cqExtraTrybots: undefined,
includeLog: true,
includeRevisionCount: true,
includeTbrLine: true,
includeTests: true,
builtIn: CommitMsgConfig_BuiltIn.DEFAULT,
custom: "",
},
gerrit: {
url: "https://skia-review.googlesource.com",
project: "skiabot-test",
config: GerritConfig_Config.CHROMIUM,
},
kubernetes: {
cpu: "1",
memory: "2Gi",
readinessFailureThreshold: 10,
readinessInitialDelaySeconds: 30,
readinessPeriodSeconds: 30,
disk: "",
},
parentChildRepoManager: {
gitilesParent: {
gitiles: {
branch: "master",
repoUrl: "https://skia.googlesource.com/skiabot-test.git",
},
dep: {
primary: {
id: "https://skia.googlesource.com/skia.git",
path: "DEPS",
},
},
gerrit: {
url: "https://skia-review.googlesource.com",
project: "skiabot-test",
config: GerritConfig_Config.CHROMIUM,
},
},
gitilesChild: {
gitiles: {
branch: "master",
repoUrl: "https://skia.googlesource.com/skia.git",
},
path: "",
},
},
notifiers: [{
msgType: [NotifierConfig_MsgType.LAST_N_FAILED],
monorail: {
project: "skia",
owner: "borenet",
cc: ["rmistry@google.com"],
components: ["AutoRoll"],
},
subject: "",
logLevel: NotifierConfig_LogLevel.SILENT,
}],
};
}