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 9e598d38789 [fix](ci) Use bundled ripgrep for automated reviews
(#70484)
9e598d38789 is described below
commit 9e598d38789571a7fc30652aa054f035bd4f1184
Author: shuke <[email protected]>
AuthorDate: Wed Nov 11 23:52:23 2026 +0800
[fix](ci) Use bundled ripgrep for automated reviews (#70484)
### What problem does this PR solve?
The automated review can fail before Codex starts when the GitHub runner
cannot resolve the Ubuntu package mirrors. This happened in [run
43034998609](https://github.com/apache/doris/actions/runs/43034998609/job/130571405043).
The pinned Codex archive already ships `codex-path/rg` and verifies its
checksum. Expose that directory through `GITHUB_PATH`, verify the
resolved binary, and remove the separate apt installation.
### Release note
None.
### Check List (For Author)
- Test: Checked workflow YAML and the changed shell steps. Ran the
release package's ripgrep 15.2.0 in a network-disabled Linux container,
verified its path, searched file contents, and listed files.
- Behavior changed: Yes. Review jobs use the packaged ripgrep without
contacting Ubuntu mirrors.
- Does this need documentation: No.
---
.github/workflows/code-review-runner.yml | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/code-review-runner.yml
b/.github/workflows/code-review-runner.yml
index 97188ade043..439f9c94edb 100644
--- a/.github/workflows/code-review-runner.yml
+++ b/.github/workflows/code-review-runner.yml
@@ -348,12 +348,6 @@ jobs:
ref: ${{ steps.review_inputs.outputs.head_sha }}
fetch-depth: 0
- - name: Install ripgrep
- timeout-minutes: 5
- run: |
- sudo apt-get update
- sudo apt-get install -y ripgrep
-
- name: Install ossutil
timeout-minutes: 5
run: |
@@ -377,6 +371,7 @@ jobs:
(cd "$package" && sha256sum --check SHA256SUMS)
test "$(jq -r .version "$package/codex-package.json")" = 0.166.0
echo "$package/bin" >> "$GITHUB_PATH"
+ echo "$package/codex-path" >> "$GITHUB_PATH"
env:
OSS_AK: ${{ secrets.OSS_AK }}
OSS_SK: ${{ secrets.OSS_SK }}
@@ -387,6 +382,8 @@ jobs:
timeout-minutes: 2
run: |
set -euo pipefail
+ test "$(command -v rg)" =
"$RUNNER_TEMP/codex-exec-goal/codex-path/rg"
+ rg --version
codex_cmd="$(command -v codex)"
test "$(readlink -f "$codex_cmd")" =
"$RUNNER_TEMP/codex-exec-goal/bin/codex"
echo
"9346ee98398cb7240702e45eed4cbe38c7fb990d9e031dba4e7525383c415deb $codex_cmd"
| sha256sum --check
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]