You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given that people still try to do 「bisectable: somecodehere」, it is time to
allow it.
Note that 「bisectable: bisect: somecodehere」 is still not valid. If you do
that, it will run fine because “bisect:” will be treated as a Perl 6 label,
but that's still misuse.
return"$message->{who}: cannot find such “good” revision"unlessdefined$good;
90
-
return"$message->{who}: no build for such “good” revision"if ! -e"$builds/$good/bin/perl6";
98
+
return"${answer_start}cannot find such “good” revision"unlessdefined$good;
99
+
return"${answer_start}no build for such “good” revision"if ! -e"$builds/$good/bin/perl6";
91
100
chdir($rakudo);
92
101
$bad = to_commit($bad);
93
102
chdir($oldDir);
94
-
return"$message->{who}: cannot find such “bad” revision"unlessdefined$bad;
103
+
return"${answer_start}cannot find such “bad” revision"unlessdefined$bad;
95
104
if (! -e"$builds/$bad/bin/perl6"and-e$build_lock) {
96
105
# TODO fix the problem when it is building new commits
97
-
return"$message->{who}: no build for such “bad” revision. Right now the build process is in action, please try again later or specify some older “bad” commit (e.g. bad=HEAD~40)";
106
+
return"${answer_start}no build for such “bad” revision. Right now the build process is in action, please try again later or specify some older “bad” commit (e.g. bad=HEAD~40)";
98
107
}
99
-
return"$message->{who}: no build for such “bad” revision"if ! -e"$builds/$bad/bin/perl6";
108
+
return"${answer_start}no build for such “bad” revision"if ! -e"$builds/$bad/bin/perl6";
100
109
101
110
my ($out_good, $exit_good) = get_output("$builds/$good/bin/perl6", $filename);
102
111
my ($out_bad, $exit_bad) = get_output("$builds/$bad/bin/perl6", $filename);
103
112
if ($exit_good == $exit_badand$out_goodeq$out_bad) {
104
-
return"$message->{who}: on both starting points the exit code is $exit_bad and the output is identical as well";
113
+
return"${answer_start}on both starting points the exit code is $exit_bad and the output is identical as well";
105
114
}
106
115
my$output_file = '';
107
116
if ($exit_good == $exit_bad) {
108
117
$self->say(
109
118
channel=>$message->{channel},
110
-
body=>"$message->{who}: exit code is $exit_bad on both starting points, bisecting by using the output",
119
+
body=>"${answer_start}exit code is $exit_bad on both starting points, bisecting by using the output",
111
120
);
112
121
(my$fh, $output_file) = tempfile(UNLINK=> 1);
113
122
print$fh$out_good;
@@ -116,7 +125,7 @@ sub said {
116
125
if ($exit_good != $exit_badand$exit_good != 0) {
117
126
$self->say(
118
127
channel=>$message->{channel},
119
-
body=>"$message->{who}: exit code on a “good” revision is $exit_good (which is bad), bisecting with inverted logic",
128
+
body=>"${answer_start}exit code on a “good” revision is $exit_good (which is bad), bisecting with inverted logic",
120
129
);
121
130
}
122
131
@@ -139,14 +148,11 @@ sub said {
139
148
}
140
149
if ($bisect_status != 0) {
141
150
chdir($oldDir);
142
-
return"$message->{who}: “bisect run” failure";
151
+
return"${answer_start}“bisect run” failure";
143
152
}
144
153
my ($result) = get_output('git', 'show', '--quiet', '--date=short', "--pretty=(%cd) $link/%h", 'bisect/bad');
0 commit comments