-
Notifications
You must be signed in to change notification settings - Fork 110
refactor(pipelines/pingcap/tidb): download componentsfrom OCI artifacts #4077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
process to use OCI artifacts Use OCI tags for PD and TiKV downloads with retry logic Containerize the download process in utils container
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary of ChangesHello @wuhuizuo, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly refactors the TiDB component download mechanism within the Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request refactors the pipeline to download TiDB components (PD and TiKV) from OCI artifacts instead of a file server. This is achieved by replacing a Groovy function call with a new shell script executed within a utils container. The change aligns with the PR's goal, including adding retry logic and containerizing the download process. However, I've found a critical issue with the path to the newly introduced shell script, which will likely cause the pipeline to fail.
| script { | ||
| retry(2) { | ||
| sh label: "download tidb components", script: """ | ||
| ${WORKSPACE}/scripts/artifacts/download_pingcap_oci_artifact.sh --pd=${OCI_TAG_PD} --tikv=${OCI_TAG_TIKV} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The path to the download_pingcap_oci_artifact.sh script is incorrect. The repository is checked out into the ${REFS.repo} subdirectory within the workspace, but the script path "${WORKSPACE}/scripts/..." omits this subdirectory. This will cause a "file not found" error. Please correct the path to include the repository subdirectory.
${WORKSPACE}/${REFS.repo}/scripts/artifacts/download_pingcap_oci_artifact.sh --pd=${OCI_TAG_PD} --tikv=${OCI_TAG_TIKV}
Switch from file server to OCI registry for component binaries Add caching for tidb-server build Update test execution paths Remove redundant artifact verification Fix globalkilltest PD/TIKV environment variables Remove fingerprinting from artifact archiving
b74e5d7 to
a95d56c
Compare
Use OCI tags for PD and TiKV downloads with retry logic Containerize the
download process in utils container