Skip to content

modify gitee to github - #17245

Closed
myf-bee wants to merge 1 commit into
infiniflow:mainfrom
myf-bee:fix-ci-gitee-temp
Closed

myf-bee wants to merge 1 commit into
infiniflow:mainfrom
myf-bee:fix-ci-gitee-temp

Conversation

@myf-bee

@myf-bee myf-bee commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

modify gitee to github

@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Nightly Infinity and Elasticsearch Docker builds now enable mirror mode. The Dockerfile’s mirror-mode resource download clones infiniflow/resource from GitHub instead of Gitee.

Changes

Nightly mirror update

Layer / File(s) Summary
Enable mirror-mode resource fetching
.github/workflows/sep-tests.yml, Dockerfile
Nightly Infinity and Elasticsearch builds pass NEED_MIRROR=1, and the Dockerfile clones the resource repository from GitHub in the enabled branch.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

Suggested reviewers: yuzhichang, wangq8, jinhai-cn

Poem

I’m a rabbit with a GitHub cart,
Carrying resources from the start.
Nightly builds now mirror bright,
Infinity and Elasticsearch take flight.
Hop, hop—Docker’s path is clear!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description has the required Summary section but lacks the background context requested by the template. Expand the Summary with the reason for the mirror switch and any relevant context or impact for reviewers.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly matches the main change: switching references from Gitee to GitHub.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wangq8 wangq8 added the ci Continue Integration label Jul 22, 2026
@wangq8
wangq8 requested a review from asiroliu July 22, 2026 08:43

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
Dockerfile (1)

55-56: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Remove 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_MIRROR only 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

📥 Commits

Reviewing files that changed from the base of the PR and between 21e5f00 and 2dede41.

📒 Files selected for processing (2)
  • .github/workflows/sep-tests.yml
  • Dockerfile

@coderabbitai coderabbitai Bot mentioned this pull request Jul 22, 2026
@myf-bee myf-bee closed this Jul 22, 2026
@myf-bee
myf-bee deleted the fix-ci-gitee-temp branch August 5, 2026 05:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants