[Bug](CI) check_coverage_fe fails with wget exit code 4 downloading Maven from internal HK OSS endpoint

オープン 初心者向け
#70,013 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
shell
領域
ci-cd

調査の方向性

doris-teamcity-settings にあるカスタムスクリプト check_coverage_fe から始め、install_maven_cmd が Maven をどのようにダウンロードするかを調べてください。失敗している TeamCity ログを確認し、内部 URL を issue に記載された公開エンドポイントと比較してください。Maven のダウンロードが成功し、カバレッジパイプラインが bash build.sh --fe まで進めば完了です。

索引モデルが issue の本文から書いたものです。

説明

Search before asking
  • I had searched in the issues and found no similar issues.
Version

master branch (TeamCity build configuration Doris_Coverage_CheckCoverageFe)

What's Wrong?

In TeamCity CI, the check_coverage_fe (Coverage for Doris FE UT) pipeline (buildTypeId=Doris_Coverage_CheckCoverageFe, configured in doris-teamcity-settings) fails during the container bootstrap step with Process exited with code 4 (wget network failure) before running bash build.sh --fe:

[16:29:15]W:	 [Step 1/1] + docker run --rm -v /home/work/unlimit_teamcity/TeamCity/Agents/20261102142722agent_172.17.0.92_1/system/git/git-01C3C15E.git:/root/git -v /home/work/unlimit_teamcity/TeamCity/Agents/20261102142722agent_172.17.0.92_1/work/60183217f6ee2a9c:/root/doris -w /root/doris apache/doris:build-env-ldb-toolchain-latest bash -c 'cd /usr/local/ && wget -t3 -c -q https://doris-regression-hk.oss-cn-hongkong-internal.aliyuncs.com/tools/maven/apache-maven-3.9.12-bin.tar.gz && tar -zxf apache-maven-3.9.12-bin.tar.gz && export PATH=/usr/local/apache-maven-3.9.12/bin:$PATH && mvn --version && cd - && ...'
[16:29:35]W:	 [Step 1/1] Process exited with code 4
[16:29:35]E:	 [Step 1/1] Process exited with code 4 (Step: check_coverage_fe (Command Line))
[16:29:35]E:	 [Step 1/1] Step check_coverage_fe (Command Line) failed

Example failing builds on #69938:

  • http://43.132.222.7:8111/viewLog.html?buildId=1088718&buildTypeId=Doris_Coverage_CheckCoverageFe
  • http://43.132.222.7:8111/viewLog.html?buildId=1089151&buildTypeId=Doris_Coverage_CheckCoverageFe

Root Cause:
In the check_coverage_fe custom script:

  • Earlier steps on the agent use public OSS endpoints (https://qa-build-hk.oss-cn-hongkong.aliyuncs.com/tools/jacoco-0.8.13.zip and https://qa-build.oss-cn-beijing.aliyuncs.com/tools/latest/qacli), which succeed.
  • However, install_maven_cmd inside docker run uses the VPC-internal endpoint https://doris-regression-hk.oss-cn-hongkong-internal.aliyuncs.com/tools/maven/apache-maven-3.9.12-bin.tar.gz:
    install_maven_cmd="cd /usr/local/ && wget -t3 -c -q https://doris-regression-hk.oss-cn-hongkong-internal.aliyuncs.com/tools/maven/apache-maven-3.9.12-bin.tar.gz && tar -zxf apache-maven-3.9.12-bin.tar.gz && export PATH=/usr/local/apache-maven-3.9.12/bin:\$PATH && mvn --version && cd - &&"
    
    When the agent/container cannot route to the cn-hongkong-internal VPC endpoint, wget -q fails after 3 attempts (~20s) with exit code 4 (Network failure).
What You Expected?

Doris_Coverage_CheckCoverageFe should download apache-maven-3.9.12-bin.tar.gz from a reachable endpoint (e.g., https://doris-regression-hk.oss-cn-hongkong.aliyuncs.com/tools/maven/apache-maven-3.9.12-bin.tar.gz or falling back to the public endpoint when -internal is unreachable) so check_coverage_fe succeeds consistently.

How to Reproduce?

Trigger run buildall on a PR targeting master that touches FE files (e.g. #69938) and inspect the check_coverage_fe (Coverage for Doris FE UT) TeamCity build log after P0, External, NonConcurrent, and Cloud_P0 complete.

Anything Else?

Related to #60918 (where check_coverage_fe was previously updated in the internal TeamCity configuration) and #67785.

Are you willing to submit PR?
  • Yes I am willing to submit a PR!
Code of Conduct
主要言語
Java
スター
16.2k
フォーク
4k
平均マージ
1日 18時間
マージ済み PR(30日)
654

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/doris のほかの issue

apache/doris の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。