PingCAP-QE / ci

Continue intergration tests
Apache License 2.0
19 stars 97 forks source link

fix(pingcap/*docs*): fix pip3 install issue #2961

Closed wuhuizuo closed 1 month ago

wuhuizuo commented 1 month ago

Maybe company firewall has forbidden the hosts.

Ref: https://jhooq.com/pip-install-connection-error/#1-root-cause-of-the-problem

Signed-off-by: wuhuizuo wuhuizuo@126.com

ti-chi-bot[bot] commented 1 month ago

I have already done a preliminary review for you, and I hope to help you do a better job.

Based on the pull request title and description, the key change in this pull request is fixing the pip3 install issue in the CI pipeline for the PingCAP documentation project. Specifically, the fix involves adding --trusted-host flags to the pip3 install command to bypass any potential firewall issues.

One potential problem with this fix is that it is not clear what the underlying cause of the pip3 install issue is. If it is indeed caused by a company firewall, then adding the --trusted-host flags should be sufficient. However, if there are other underlying issues, then this fix may not be effective or may only be a temporary solution.

Another potential problem is that the use of sudo in the pip3 install command may cause permission issues, depending on the environment in which the pipeline is running.

To address these potential problems, it may be worth investigating further to identify the root cause of the pip3 install issue. Additionally, it may be worth considering alternative solutions that do not involve using sudo or bypassing the firewall.

One possible alternative solution is to use a Docker image that already has the necessary Python packages pre-installed, rather than relying on the pip3 install command in the pipeline. Another possible solution is to use a local Python virtual environment within the pipeline, which would not require sudo permissions and would not be affected by company firewalls.

Overall, while the fix in this pull request may be effective in the short term, it is important to consider the potential problems and explore alternative solutions to ensure a robust and sustainable CI pipeline for the PingCAP documentation project.

ti-chi-bot[bot] commented 1 month ago

@Oreoxmt: changing LGTM is restricted to collaborators

In response to [this](https://github.com/PingCAP-QE/ci/pull/2961#pullrequestreview-2051086850): > Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
wuhuizuo commented 1 month ago

/approve

ti-chi-bot[bot] commented 1 month ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Oreoxmt, wuhuizuo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[pipelines/OWNERS](https://github.com/PingCAP-QE/ci/blob/main/pipelines/OWNERS)~~ [wuhuizuo] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment