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

hello-stephen 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 4f8ac0954ac [fix](ci) rm some infos (#63228)
4f8ac0954ac is described below

commit 4f8ac0954acb485512afb108b5e4ca386cf03227
Author: Dongyang Li <[email protected]>
AuthorDate: Mon Jun 8 16:43:23 2026 +0800

    [fix](ci) rm some infos (#63228)
    
    ### What problem does this PR solve?
    
    Issue Number: close #xxx
    
    Related PR: #xxx
    
    Problem Summary:
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test <!-- At least one of them must be included. -->
        - [ ] Regression test
        - [ ] Unit Test
        - [ ] Manual test (add detailed scripts or steps below)
        - [ ] No need to test or manual test. Explain why:
    - [ ] This is a refactor/code format and no logic has been changed.
            - [ ] Previous test can cover this change.
            - [ ] No code files have been changed.
            - [ ] Other reason <!-- Add your reason?  -->
    
    - Behavior changed:
        - [ ] No.
        - [ ] Yes. <!-- Explain the behavior change -->
    
    - Does this need documentation?
        - [ ] No.
    - [ ] Yes. <!-- Add document PR link here. eg:
    https://github.com/apache/doris-website/pull/1214 -->
    
    ### Check List (For Reviewer who merge this PR)
    
    - [ ] Confirm the release note
    - [ ] Confirm test cases
    - [ ] Confirm document
    - [ ] Add branch pick label <!-- Add branch pick label that this PR
    should merge into -->
    
    ---------
    
    Co-authored-by: Claude Sonnet 4.6 <[email protected]>
---
 regression-test/pipeline/common/doris-utils.sh | 17 +++++++++++++++--
 1 file changed, 15 insertions(+), 2 deletions(-)

diff --git a/regression-test/pipeline/common/doris-utils.sh 
b/regression-test/pipeline/common/doris-utils.sh
index 80361abac38..cbc27ee6999 100644
--- a/regression-test/pipeline/common/doris-utils.sh
+++ b/regression-test/pipeline/common/doris-utils.sh
@@ -662,6 +662,17 @@ _monitor_regression_log() {
 
 }
 
+_redact_creds() {
+    local expr="" v escaped
+    for v in "${hwYunAk:-}" "${hwYunSk:-}" "${s3SourceAk:-}" "${s3SourceSk:-}" 
"${txYunAk:-}" "${txYunSk:-}"; do
+        if [[ -n "${v}" ]]; then
+            escaped=$(printf '%s' "${v}" | sed 's/[]\/$*.^[]/\\&/g')
+            expr+="s/${escaped}//g;"
+        fi
+    done
+    [[ -n "${expr}" ]] && sed -i "${expr}" "$@" &>/dev/null || true
+}
+
 archive_doris_logs() {
     if [[ ! -d "${DORIS_HOME:-}" ]]; then return 1; fi
     local archive_name="$1"
@@ -674,17 +685,19 @@ archive_doris_logs() {
     (
         cd "${DORIS_HOME}" || return 1
         cp --parents -rf "fe/conf" "${archive_dir}"/
+        _redact_creds fe/log/*
         cp --parents -rf "fe/log" "${archive_dir}"/
         cp --parents -rf "be/conf" "${archive_dir}"/
+        _redact_creds be/log/*
         cp --parents -rf "be/log" "${archive_dir}"/
         if [[ -d "${DORIS_HOME}"/regression-test/log ]]; then
             # try to hide ak and sk
-            if sed -i "s/${cos_ak:-}//g;s/${cos_sk:-}//g" 
regression-test/log/* &>/dev/null; then :; fi
+            _redact_creds regression-test/log/*
             cp --parents -rf "regression-test/log" "${archive_dir}"/
         fi
         if [[ -d "${DORIS_HOME}"/../regression-test/conf ]]; then
             # try to hide ak and sk
-            if sed -i "s/${cos_ak:-}//g;s/${cos_sk:-}//g" 
../regression-test/conf/* &>/dev/null; then :; fi
+            _redact_creds ../regression-test/conf/*
             mkdir -p "${archive_dir}"/regression-test/conf
             cp -rf ../regression-test/conf/* 
"${archive_dir}"/regression-test/conf/
         fi


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

Reply via email to