pingcap / tiup

A component manager for TiDB
https://tiup.io
Apache License 2.0
417 stars 310 forks source link

mirror: return err if specified latest not found when clone mirror #2311

Closed nexustar closed 10 months ago

nexustar commented 10 months ago

What problem does this PR solve?

What is changed and how it works?

Check List

Tests

Code changes

Side effects

Related changes

Release notes:

NONE
codecov-commenter commented 10 months ago

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (3199925) 55.54% compared to head (4ffba5e) 55.36%.

:exclamation: Current head 4ffba5e differs from pull request most recent head 1ec62a4. Consider uploading reports for the commit 1ec62a4 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2311 +/- ## ========================================== - Coverage 55.54% 55.36% -0.18% ========================================== Files 325 325 Lines 34726 34725 -1 ========================================== - Hits 19288 19225 -63 - Misses 13139 13202 +63 + Partials 2299 2298 -1 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2311/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [cluster](https://app.codecov.io/gh/pingcap/tiup/pull/2311/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `44.67% <0.00%> (-0.22%)` | :arrow_down: | | [dm](https://app.codecov.io/gh/pingcap/tiup/pull/2311/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `25.46% <0.00%> (-0.05%)` | :arrow_down: | | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2311/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.25% <0.00%> (-0.02%)` | :arrow_down: | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2311/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `33.48% <0.00%> (+<0.01%)` | :arrow_up: | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2311/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `22.37% <0.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/pingcap/tiup/pull/2311?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [pkg/repository/clone\_mirror.go](https://app.codecov.io/gh/pingcap/tiup/pull/2311?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#diff-cGtnL3JlcG9zaXRvcnkvY2xvbmVfbWlycm9yLmdv) | `0.00% <0.00%> (ø)` | | ... and [9 files with indirect coverage changes](https://app.codecov.io/gh/pingcap/tiup/pull/2311/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

kaaaaaaang commented 10 months ago

/lgtm

ti-chi-bot[bot] commented 10 months ago

[LGTM Timeline notifier]

Timeline:

kaaaaaaang commented 10 months ago

/approve

ti-chi-bot[bot] commented 10 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaaaaaaang

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: - ~~[OWNERS](https://github.com/pingcap/tiup/blob/master/OWNERS)~~ [kaaaaaaang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment