This is an automated email from the ASF dual-hosted git repository.

shuke987 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new ece478f6740 [fix](ci) Discover AI review auth objects (#66464)
ece478f6740 is described below

commit ece478f67409381027e4ff14b43126cc3d70c911
Author: Ze_ <[email protected]>
AuthorDate: Tue Aug 18 14:54:17 2026 +0800

    [fix](ci) Discover AI review auth objects (#66464)
    
    - Discover numbered AI review auth objects from OSS at runtime.
    - Keep the existing random selection and usage-limit context handling
    while removing the fixed account list.
---
 .github/workflows/code-review-runner.yml | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/code-review-runner.yml 
b/.github/workflows/code-review-runner.yml
index 1f45d56fc5c..0abe816e497 100644
--- a/.github/workflows/code-review-runner.yml
+++ b/.github/workflows/code-review-runner.yml
@@ -219,6 +219,25 @@ jobs:
           install -m 700 -d "$RUNNER_TEMP/codex-home"
           printf 'CODEX_HOME=%s\n' "$RUNNER_TEMP/codex-home" >> "$GITHUB_ENV"
 
+          auth_prefix='oss://doris-community-ci/codex/auth.json.'
+          auth_listing="$(mktemp "$RUNNER_TEMP/codex-auth-objects.XXXXXX")"
+          if ! ossutil -i "$OSS_AK" -k "$OSS_SK" -e "$OSS_ENDPOINT" ls 
"$auth_prefix" -s > "$auth_listing"; then
+            auth_failure_reason="Failed to list Codex review auth objects from 
OSS."
+            echo "failure_reason=$auth_failure_reason" >> "$GITHUB_OUTPUT"
+            echo "::error::$auth_failure_reason"
+            exit 1
+          fi
+
+          auth_candidates="$(mktemp 
"$RUNNER_TEMP/codex-auth-candidates.XXXXXX")"
+          awk '$0 ~ /^oss:\/\/doris-community-ci\/codex\/auth\.json\.[0-9]+$/ 
{ print }' \
+            "$auth_listing" > "$auth_candidates"
+          if [ ! -s "$auth_candidates" ]; then
+            auth_failure_reason="No numbered Codex review auth objects were 
found in OSS."
+            echo "failure_reason=$auth_failure_reason" >> "$GITHUB_OUTPUT"
+            echo "::error::$auth_failure_reason"
+            exit 1
+          fi
+
           auth_object=""
           earliest_retry_after_epoch=""
           now_epoch="$(date +%s)"
@@ -252,13 +271,7 @@ jobs:
 
             auth_object="$candidate"
             break
-          done < <(printf '%s\n' \
-            'oss://doris-community-ci/codex/auth.json.1' \
-            'oss://doris-community-ci/codex/auth.json.2' \
-            'oss://doris-community-ci/codex/auth.json.3' \
-            'oss://doris-community-ci/codex/auth.json.4' \
-            'oss://doris-community-ci/codex/auth.json.5' \
-            | shuf)
+          done < <(shuf "$auth_candidates")
 
           if [ -z "$auth_object" ]; then
             retry_at="$(date -u -d "@$earliest_retry_after_epoch" 
+%Y-%m-%dT%H:%M:%SZ)"


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

Reply via email to