re-enable "Linux packages_autoroller" (#130088)

Fixes https://github.com/flutter/flutter/issues/129744

This change:

1. re-enables the Linux packages_autoroller
2. ensures we redact the token from appearing in any logs (in local testing I realized some failure logs might still expose the token)

What actually fixed authentication however was creating and uploading a new GitHub personal access token, not this change.

It's currently failing post-submit because being marked `bringup` it is running in the try pool, which does not have permissions to access the cloud KMS. However, I ran a LED build in the prod pool that succeeded:

3a8f128c35/+/build.proto
This commit is contained in:
Christopher Fujino
2023-07-10 12:32:56 -07:00
committed by GitHub
parent 613bc89006
commit b89bfd8e37
6 changed files with 63 additions and 31 deletions

View File

@@ -70,6 +70,7 @@ class VerboseStdio extends Stdio {
required this.stdout,
required this.stderr,
required this.stdin,
this.filter,
});
factory VerboseStdio.local() => VerboseStdio(
@@ -82,26 +83,50 @@ class VerboseStdio extends Stdio {
final io.Stdout stderr;
final io.Stdin stdin;
/// If provided, all messages will be passed through this function before being logged.
final String Function(String)? filter;
@override
void printError(String message) {
if (filter != null) {
message = filter!(message);
}
super.printError(message);
stderr.writeln(message);
}
@override
void printWarning(String message) {
if (filter != null) {
message = filter!(message);
}
super.printWarning(message);
stderr.writeln(message);
}
@override
void printStatus(String message) {
if (filter != null) {
message = filter!(message);
}
super.printStatus(message);
stdout.writeln(message);
}
@override
void printTrace(String message) {
if (filter != null) {
message = filter!(message);
}
super.printTrace(message);
stdout.writeln(message);
}
@override
void write(String message) {
if (filter != null) {
message = filter!(message);
}
super.write(message);
stdout.write(message);
}