Skip to content

Commit 8a53126

Browse files
committed
change skip-ci to await-ci throughout
1 parent b912fa6 commit 8a53126

File tree

3 files changed

+15
-18
lines changed

3 files changed

+15
-18
lines changed

keybot/darwinbot.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (d *darwinbot) Run(bot *slackbot.Bot, channel string, args []string) (strin
3131
buildDarwinClientCommit := buildDarwin.Flag("client-commit", "Build a specific client commit").String()
3232
buildDarwinKbfsCommit := buildDarwin.Flag("kbfs-commit", "Build a specific kbfs commit").String()
3333
buildDarwinNoPull := buildDarwin.Flag("skip-pull", "Don't pull before building the app").Bool()
34-
buildDarwinSkipCI := buildDarwin.Flag("skip-ci", "Whether to skip CI").Bool()
34+
buildDarwinAwaitCI := buildDarwin.Flag("await-ci", "Whether to check CI").Bool()
3535
buildDarwinSmoke := buildDarwin.Flag("smoke", "Whether to make a pair of builds for smoketesting when on a branch").Bool()
3636
buildDarwinNoS3 := buildDarwin.Flag("skip-s3", "Don't push to S3 after building the app").Bool()
3737
buildDarwinNoNotarize := buildDarwin.Flag("skip-notarize", "Don't notarize the app").Bool()
@@ -67,7 +67,7 @@ func (d *darwinbot) Run(bot *slackbot.Bot, channel string, args []string) (strin
6767

6868
case buildDarwin.FullCommand():
6969
smokeTest := true
70-
skipCI := *buildDarwinSkipCI
70+
awaitCI := *buildDarwinAwaitCI
7171
testBuild := *buildDarwinTest
7272
// If it's a custom build, make it a test build unless --smoke is passed.
7373
if *buildDarwinClientCommit != "" || *buildDarwinKbfsCommit != "" {
@@ -91,15 +91,12 @@ func (d *darwinbot) Run(bot *slackbot.Bot, channel string, args []string) (strin
9191
{Key: "CLIENT_COMMIT", Value: *buildDarwinClientCommit},
9292
{Key: "KBFS_COMMIT", Value: *buildDarwinKbfsCommit},
9393
{Key: "ARCH", Value: arch},
94-
// TODO: Rename to SKIP_CI in packaging scripts
95-
{Key: "NOWAIT", Value: boolToEnvString(skipCI)},
94+
{Key: "NOWAIT", Value: boolToEnvString(!awaitCI)},
9695
{Key: "NOPULL", Value: boolToEnvString(*buildDarwinNoPull)},
9796
{Key: "NOS3", Value: boolToEnvString(*buildDarwinNoS3)},
9897
{Key: "NONOTARIZE", Value: boolToEnvString(*buildDarwinNoNotarize)},
9998
},
10099
}
101-
// msg := fmt.Sprintf("I'll run the build as job `%s` (skip-ci=%s smoke=%s test=%s).", script.Label, boolToString(skipCI), boolToString(smokeTest), boolToString(testBuild))
102-
// bot.SendMessage(msg, channel)
103100

104101
return runScript(bot, channel, env, script)
105102
case dumplogCmd.FullCommand():

keybot/keybot.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
3131
cancelLabel := cancel.Arg("label", "Launchd job label").String()
3232

3333
buildMobile := build.Command("mobile", "Start an iOS and Android build")
34-
buildMobileSkipCI := buildMobile.Flag("skip-ci", "Whether to skip CI").Bool()
34+
buildMobileAwaitCI := buildMobile.Flag("await-ci", "Whether to check CI").Bool()
3535
buildMobileAutomated := buildMobile.Flag("automated", "Whether this is a timed build").Bool()
3636
buildMobileCientCommit := buildMobile.Flag("client-commit", "Build a specific client commit hash").String()
3737

3838
buildAndroid := build.Command("android", "Start an android build")
39-
buildAndroidSkipCI := buildAndroid.Flag("skip-ci", "Whether to skip CI").Bool()
39+
buildAndroidAwaitCI := buildAndroid.Flag("await-ci", "Whether to check CI").Bool()
4040
buildAndroidAutomated := buildAndroid.Flag("automated", "Whether this is a timed build").Bool()
4141
buildAndroidCientCommit := buildAndroid.Flag("client-commit", "Build a specific client commit hash").String()
4242
buildIOS := build.Command("ios", "Start an ios build")
4343
buildIOSClean := buildIOS.Flag("clean", "Whether to clean first").Bool()
44-
buildIOSSkipCI := buildIOS.Flag("skip-ci", "Whether to skip CI").Bool()
44+
buildIOSSkipCI := buildIOS.Flag("await-ci", "Whether to skip CI").Bool()
4545
buildIOSAutomated := buildIOS.Flag("automated", "Whether this is a timed build").Bool()
4646
buildIOSCientCommit := buildIOS.Flag("client-commit", "Build a specific client commit hash").String()
4747

@@ -92,7 +92,7 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
9292
return launchd.Stop(*cancelLabel)
9393

9494
case buildMobile.FullCommand():
95-
skipCI := *buildMobileSkipCI
95+
awaitCI := *buildMobileAwaitCI
9696
automated := *buildMobileAutomated
9797
script := launchd.Script{
9898
Label: "keybase.build.mobile",
@@ -106,15 +106,15 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
106106
{Key: "NDK_HOME", Value: NDKPath},
107107
{Key: "ANDROID_NDK", Value: NDKPath},
108108
{Key: "CLIENT_COMMIT", Value: *buildMobileCientCommit},
109-
{Key: "CHECK_CI", Value: boolToEnvString(!skipCI)},
109+
{Key: "CHECK_CI", Value: boolToEnvString(awaitCI)},
110110
{Key: "AUTOMATED_BUILD", Value: boolToEnvString(automated)},
111111
},
112112
}
113113
env.GoPath = env.PathFromHome("go-ios")
114114
return runScript(bot, channel, env, script)
115115

116116
case buildAndroid.FullCommand():
117-
skipCI := *buildAndroidSkipCI
117+
awaitCI := *buildAndroidAwaitCI
118118
automated := *buildAndroidAutomated
119119
script := launchd.Script{
120120
Label: "keybase.build.android",
@@ -125,15 +125,15 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
125125
{Key: "ANDROID_NDK_HOME", Value: NDKPath},
126126
{Key: "ANDROID_NDK", Value: NDKPath},
127127
{Key: "CLIENT_COMMIT", Value: *buildAndroidCientCommit},
128-
{Key: "CHECK_CI", Value: boolToEnvString(!skipCI)},
128+
{Key: "CHECK_CI", Value: boolToEnvString(awaitCI)},
129129
{Key: "AUTOMATED_BUILD", Value: boolToEnvString(automated)},
130130
},
131131
}
132132
env.GoPath = env.PathFromHome("go-android") // Custom go path for Android so we don't conflict
133133
return runScript(bot, channel, env, script)
134134

135135
case buildIOS.FullCommand():
136-
skipCI := *buildIOSSkipCI
136+
awaitCI := *buildIOSSkipCI
137137
iosClean := *buildIOSClean
138138
automated := *buildIOSAutomated
139139
script := launchd.Script{
@@ -143,7 +143,7 @@ func (k *keybot) Run(bot *slackbot.Bot, channel string, args []string) (string,
143143
EnvVars: []launchd.EnvVar{
144144
{Key: "CLIENT_COMMIT", Value: *buildIOSCientCommit},
145145
{Key: "CLEAN", Value: boolToEnvString(iosClean)},
146-
{Key: "CHECK_CI", Value: boolToEnvString(!skipCI)},
146+
{Key: "CHECK_CI", Value: boolToEnvString(awaitCI)},
147147
{Key: "AUTOMATED_BUILD", Value: boolToEnvString(automated)},
148148
},
149149
}

keybot/winbot.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (d *winbot) Run(bot *slackbot.Bot, channel string, args []string) (string,
4242
buildWindowsCientCommit := buildWindows.Flag("client-commit", "Build a specific client commit").String()
4343
buildWindowsKbfsCommit := buildWindows.Flag("kbfs-commit", "Build a specific kbfs commit").String()
4444
buildWindowsUpdaterCommit := buildWindows.Flag("updater-commit", "Build a specific updater commit").String()
45-
buildWindowsSkipCI := buildWindows.Flag("skip-ci", "Whether to skip CI").Bool()
45+
buildWindowsAwaitCI := buildWindows.Flag("await-ci", "Whether to check CI").Bool()
4646
buildWindowsSmoke := buildWindows.Flag("smoke", "Build a smoke pair").Bool()
4747
buildWindowsDevCert := buildWindows.Flag("dev-cert", "Build using devel code signing cert").Bool()
4848
buildWindowsAuto := buildWindows.Flag("automated", "Specify build was triggered automatically").Hidden().Bool()
@@ -104,7 +104,7 @@ func (d *winbot) Run(bot *slackbot.Bot, channel string, args []string) (string,
104104

105105
case buildWindows.FullCommand():
106106
smokeTest := *buildWindowsSmoke
107-
skipCI := *buildWindowsSkipCI
107+
awaitCI := *buildWindowsAwaitCI
108108
skipTestChannel := *buildWindowsTest
109109
devCert := 0
110110
if *buildWindowsDevCert {
@@ -133,7 +133,7 @@ func (d *winbot) Run(bot *slackbot.Bot, channel string, args []string) (string,
133133
updateChannel = "None"
134134
} else if smokeTest {
135135
updateChannel = "Smoke"
136-
if !skipCI {
136+
if awaitCI {
137137
updateChannel = "SmokeCI"
138138
}
139139
}

0 commit comments

Comments
 (0)