Skip to content

Commit c6750f0

Browse files
committed
Fix RSS rergression CI action step failure. Upload object before client is shutdown.
1 parent 172d165 commit c6750f0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/RssRegression.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,16 @@ public static void main(String[] args) {
7373
rssRegression = newRss > (oldRss * 1.1);
7474
System.out.println("Regression: " + rssRegression);
7575

76+
System.out.println("Uploading new pmap file to storage: " + bucketFile + " from local: " + oldPmapFile);
77+
uploadObject(_cosClient, BUCKET_NAME, bucketFile, newPmapFile);
7678
}
79+
7780
_cosClient.shutdown();
7881

7982
if(rssRegression) {
8083
exit(1);
8184
}
8285
else {
83-
System.out.println("Uploading new pmap file to storage: " + bucketFile + " from local: " + oldPmapFile);
84-
uploadObject(_cosClient, BUCKET_NAME, bucketFile, newPmapFile);
8586
exit(0);
8687
}
8788
}

0 commit comments

Comments
 (0)