Use bucket to check staging test instead of builder name (#88908)

This commit is contained in:
keyonghan
2021-08-25 20:36:02 -07:00
committed by GitHub
parent 0a5f06a4fa
commit d36f246dcc
3 changed files with 9 additions and 6 deletions

View File

@@ -353,14 +353,14 @@ void main() {
const String updateTaskJson = '{'
'"CommitBranch":"master",'
'"CommitSha":"$commitSha",'
'"BuilderName":"Linux_staging_test",'
'"BuilderName":"builderAbc",'
'"NewStatus":"Succeeded",'
'"ResultData":{"i":0.0,"j":0.0,"not_a_metric":"something"},'
'"BenchmarkScoreKeys":["i","j"]}';
fs.file(resultsPath).writeAsStringSync(updateTaskJson);
// This will fail if it decided to upload results
await cocoon.sendTaskStatus(resultsPath: resultsPath);
await cocoon.sendTaskStatus(resultsPath: resultsPath, builderBucket: 'staging');
});
});