Skip to content

Commit 8aaec3a

Browse files
Conductor output updates (flutter#160054)
Update some outdated, obsolete text output from the conductor.
1 parent 275153c commit 8aaec3a

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

dev/conductor/bin/conductor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ REPO_DIR="$BIN_DIR/../../.."
3838
DART_BIN="$REPO_DIR/bin/dart"
3939

4040
# Ensure pub get has been run in the repo before running the conductor
41-
(cd "$REPO_DIR/dev/conductor/core"; "$DART_BIN" pub get 1>&2)
41+
(cd "$REPO_DIR/dev/conductor/core"; "$DART_BIN" pub get >/dev/null)
4242

4343
exec "$DART_BIN" --enable-asserts "$REPO_DIR/dev/conductor/core/bin/cli.dart" "$@"

dev/conductor/core/lib/src/next.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class NextContext extends Context {
141141
if (!autoAccept) {
142142
final bool response = await prompt(
143143
'Has CI passed for the engine PR?\n\n'
144-
'${state_import.luciConsoleLink(state.releaseChannel, 'engine')}'
144+
'${state_import.luciConsoleLink(state.engine.candidateBranch, 'engine')}'
145145
);
146146
if (!response) {
147147
stdio.printError('Aborting command.');

dev/conductor/core/lib/src/state.dart

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,19 @@ const String stablePostReleaseMsg = """
4747
// * `String presentState(pb.ConductorState state)` - pretty print the state file.
4848
// This is a little easier to read than the raw JSON.
4949

50-
String luciConsoleLink(String channel, String groupName) {
50+
String luciConsoleLink(String candidateBranch, String repoName) {
5151
assert(
52-
globals.kReleaseChannels.contains(channel),
53-
'channel "$channel" not recognized',
52+
globals.releaseCandidateBranchRegex.hasMatch(candidateBranch),
53+
'Malformed candidateBranch argument passed: "$candidateBranch"',
5454
);
5555
assert(
56-
<String>['flutter', 'engine', 'packaging'].contains(groupName),
57-
'group named $groupName not recognized',
56+
<String>['flutter', 'engine', 'packaging'].contains(repoName),
57+
'group named $repoName not recognized',
5858
);
59-
final String consoleName =
60-
channel == 'master' ? groupName : '${channel}_$groupName';
61-
if (groupName == 'packaging') {
59+
if (repoName == 'packaging') {
6260
return 'https://luci-milo.appspot.com/p/dart-internal/g/flutter_packaging/console';
6361
}
64-
return 'https://ci.chromium.org/p/flutter/g/$consoleName/console';
62+
return 'https://flutter-dashboard.appspot.com/#/build?repo=$repoName&branch=$candidateBranch';
6563
}
6664

6765
String defaultStateFilePath(Platform platform) {
@@ -93,7 +91,7 @@ String presentState(pb.ConductorState state) {
9391
buffer.writeln('\tCurrent git HEAD: ${state.engine.currentGitHead}');
9492
buffer.writeln('\tPath to checkout: ${state.engine.checkoutPath}');
9593
buffer.writeln(
96-
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.releaseChannel, 'engine')}');
94+
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.engine.candidateBranch, 'engine')}');
9795
if (state.engine.cherrypicks.isNotEmpty) {
9896
buffer.writeln('${state.engine.cherrypicks.length} Engine Cherrypicks:');
9997
for (final pb.Cherrypick cherrypick in state.engine.cherrypicks) {
@@ -111,7 +109,7 @@ String presentState(pb.ConductorState state) {
111109
buffer.writeln('\tCurrent git HEAD: ${state.framework.currentGitHead}');
112110
buffer.writeln('\tPath to checkout: ${state.framework.checkoutPath}');
113111
buffer.writeln(
114-
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.releaseChannel, 'flutter')}');
112+
'\tPost-submit LUCI dashboard: ${luciConsoleLink(state.framework.candidateBranch, 'flutter')}');
115113
if (state.framework.cherrypicks.isNotEmpty) {
116114
buffer.writeln(
117115
'${state.framework.cherrypicks.length} Framework Cherrypicks:');
@@ -180,7 +178,7 @@ String phaseInstructions(pb.ConductorState state) {
180178
case ReleasePhase.VERIFY_ENGINE_CI:
181179
if (!requiresEnginePR(state)) {
182180
return 'You must verify engine CI has passed: '
183-
'${luciConsoleLink(state.releaseChannel, 'engine')}';
181+
'${luciConsoleLink(state.engine.candidateBranch, 'engine')}';
184182
}
185183
// User's working branch was pushed to their mirror, but a PR needs to be
186184
// opened on GitHub.
@@ -189,11 +187,12 @@ String phaseInstructions(pb.ConductorState state) {
189187
repoName: 'engine',
190188
state: state,
191189
);
190+
final String consoleLink = luciConsoleLink(state.engine.candidateBranch, 'engine');
192191
return <String>[
193192
'Your working branch ${state.engine.workingBranch} was pushed to your mirror.',
194193
'You must now open a pull request at $newPrLink, verify pre-submit CI',
195194
'builds on your engine pull request are successful, merge your pull request,',
196-
'validate post-submit CI, and then codesign the binaries on the merge commit.',
195+
'validate post-submit CI at $consoleLink.',
197196
].join('\n');
198197
case ReleasePhase.APPLY_FRAMEWORK_CHERRYPICKS:
199198
final List<pb.Cherrypick> outstandingCherrypicks =
@@ -232,7 +231,7 @@ String phaseInstructions(pb.ConductorState state) {
232231
'pull request, validate post-submit CI.',
233232
].join('\n');
234233
case ReleasePhase.VERIFY_RELEASE:
235-
return 'Release archive packages must be verified on cloud storage: ${luciConsoleLink(state.releaseChannel, 'packaging')}';
234+
return 'Release archive packages must be verified on cloud storage: ${luciConsoleLink(state.framework.candidateBranch, 'packaging')}';
236235
case ReleasePhase.RELEASE_COMPLETED:
237236
if (state.releaseChannel == 'beta') {
238237
return <String>[

dev/conductor/core/test/next_test.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ void main() {
239239
..trunkRevision = 'abc123'
240240
..state = pb.CherrypickState.PENDING
241241
)
242+
..candidateBranch = 'flutter-1.0-candidate.0'
242243
)
243244
..currentPhase = ReleasePhase.VERIFY_ENGINE_CI
244245
);

0 commit comments

Comments
 (0)