Repository navigation
modify gitee to github - #17245
modify gitee to github#17245myf-bee wants to merge 1 commit into
Conversation
📝 WalkthroughWalkthroughNightly Infinity and Elasticsearch Docker builds now enable mirror mode. The Dockerfile’s mirror-mode resource download clones ChangesNightly mirror update
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
Dockerfile (1)
55-56: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winRemove the stale command and redundant clone branches.
Both branches clone the same GitHub repository, while the commented Gitee command is dead code. Collapse this into one unconditional clone and retain
NEED_MIRRORonly for settings that still differ by mirror mode.As per coding guidelines: “Remove dead tests, commented-out code, stale documentation” and “remove deprecated, legacy, compatibility-only, duplicate, stale, or unnecessarily exported code.”
Proposed simplification
RUN mkdir -p /usr/share/infinity/resource && \ - if [ "$NEED_MIRROR" == "1" ]; then \ - `#git` clone --depth 1 --single-branch https://gitee.com/infiniflow/resource /tmp/resource; \ - git clone --depth 1 --single-branch https://github.com/infiniflow/resource.git /tmp/resource; \ - else \ - git clone --depth 1 --single-branch https://github.com/infiniflow/resource.git /tmp/resource; \ - fi && \ + git clone --depth 1 --single-branch https://github.com/infiniflow/resource.git /tmp/resource && \🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@Dockerfile` around lines 55 - 56, Update the Dockerfile clone setup to remove the commented-out Gitee command and any duplicate conditional clone branches, leaving one unconditional clone of the GitHub resource repository. Retain NEED_MIRROR only for configuration values that genuinely differ between mirror modes.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@Dockerfile`:
- Around line 55-56: Update the Dockerfile clone setup to remove the
commented-out Gitee command and any duplicate conditional clone branches,
leaving one unconditional clone of the GitHub resource repository. Retain
NEED_MIRROR only for configuration values that genuinely differ between mirror
modes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: df83f19e-4a1d-432c-9f2b-d99a3445efe7
📒 Files selected for processing (2)
.github/workflows/sep-tests.ymlDockerfile
Summary
modify gitee to github