github-actions[bot] commented on code in PR #66349:
URL: https://github.com/apache/doris/pull/66349#discussion_r3695340682


##########
.github/workflows/code-review-runner.yml:
##########
@@ -946,27 +949,61 @@ jobs:
           OSS_ENDPOINT: oss-cn-hongkong.aliyuncs.com
           OSS_CODEX_SESSION_PREFIX: oss://doris-community-ci/session
 
-      - name: Sync Codex auth back to OSS
-        if: ${{ always() }}
-        continue-on-error: true
+      - name: Sync refreshed Codex auth back to OSS
+        if: ${{ always() && steps.auth.outcome == 'success' }}
         timeout-minutes: 5
         run: |
-          if [ -z "$CODEX_AUTH_OSS_OBJECT" ]; then
-            echo "No selected Codex auth object found; skipping OSS auth sync."
-            exit 0
-          fi
-
-          if [ ! -s "$CODEX_HOME/auth.json" ]; then
-            echo "No Codex auth file found; skipping OSS auth sync."
-            exit 0
-          fi
+          retry_oss_copy() {
+            local source="$1"
+            local destination="$2"
+            local description="$3"
+            for attempt in 1 2 3; do

Review Comment:
   The native timeout flags fix the earlier multiplicative/unbounded behavior, 
but one follow-up remains in this retry-policy thread. In pinned `ossutil` 
v1.7.19, both `ossUploadFileRetry` and `ossDownloadFileRetry` start with `i = 
1` and return once `i >= retryTimes`, so `--retry-times=2` permits two total 
attempts, not an initial attempt plus two retries. That contradicts the new 
"after 3 attempts" diagnostics and the PR description. Please use 3 if three 
total attempts are intended, or align the policy text, diagnostics, and 
transfer-count test to two attempts.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to