Skip to content
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

*: remove v0manifest #1078

Merged
merged 7 commits into from
Jan 20, 2021
Merged

Conversation

AstroProfundis
Copy link
Contributor

What problem does this PR solve?

Close #906

What is changed and how it works?

Remove v0manifest and legacy codes using it.

Check List

Tests

  • Unit test
  • Integration test
  • Manual test (add detailed scripts or steps below)

Code changes

  • Has exported function/method change
  • Has exported variable/fields change

Side effects

  • Breaking backward compatibility

Release notes:

Remove `v0manifest` as it is not longer been used.

@AstroProfundis AstroProfundis added the type/enhancement Categorizes issue or PR as related to an enhancement. label Jan 19, 2021
@AstroProfundis AstroProfundis self-assigned this Jan 19, 2021
@ti-chi-bot ti-chi-bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jan 19, 2021
@ti-chi-bot ti-chi-bot requested review from july2993 and nrc January 19, 2021 04:38
@codecov-io
Copy link

codecov-io commented Jan 19, 2021

Codecov Report

Merging #1078 (2179d34) into master (d9609b5) will decrease coverage by 2.93%.
The diff coverage is 57.14%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1078      +/-   ##
==========================================
- Coverage   51.90%   48.97%   -2.94%     
==========================================
  Files         282      278       -4     
  Lines       19936    19695     -241     
==========================================
- Hits        10348     9645     -703     
- Misses       7962     8524     +562     
+ Partials     1626     1526     -100     
Flag Coverage Δ
cluster 31.91% <20.00%> (-6.54%) ⬇️
dm 24.36% <20.00%> (+0.33%) ⬆️
integrate 42.48% <57.14%> (-3.63%) ⬇️
playground 20.91% <35.00%> (+0.62%) ⬆️
tiup 16.71% <57.14%> (+0.24%) ⬆️
unittest 22.41% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/exec/run.go 55.33% <ø> (+0.72%) ⬆️
pkg/localdata/profile.go 47.29% <ø> (+6.41%) ⬆️
pkg/environment/env.go 55.55% <55.00%> (+20.61%) ⬆️
cmd/help.go 73.03% <100.00%> (+7.03%) ⬆️
pkg/cluster/template/config/config.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/cluster/template/scripts/scripts.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/cluster/template/scripts/tiflash.go 0.00% <0.00%> (-79.60%) ⬇️
pkg/cluster/template/systemd/tispark.go 0.00% <0.00%> (-68.00%) ⬇️
pkg/cluster/template/scripts/tispark.go 0.00% <0.00%> (-65.00%) ⬇️
pkg/cluster/template/config/tispark.go 0.00% <0.00%> (-61.91%) ⬇️
... and 37 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d9609b5...2179d34. Read the comment docs.

@@ -368,28 +256,6 @@ func ParseCompVersion(spec string) (string, pkgver.Version) {

// IsSupportedComponent return true if support if platform support the component.
func (env *Environment) IsSupportedComponent(component string) bool {
Copy link
Member

Choose a reason for hiding this comment

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

Should we delete this function?

Copy link
Contributor

@nrc nrc left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -99,38 +96,19 @@ func InitEnv(options repository.Options) (*Environment, error) {
return nil, err
}

var repo *repository.Repository
var v1repo *repository.V1Repository
Copy link
Contributor

Choose a reason for hiding this comment

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

should we rename v1repo to repo? And likewise v1Repo and V1Repository

Copy link
Contributor

Choose a reason for hiding this comment

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

and V1Manifest, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it's OK, as we don't guarantee there won't be v2repo in the future. The only misleading thing might be that we still use v0.1.0 as spec_version in v1Manifest.

@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Jan 19, 2021
@lucklove
Copy link
Member

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: abc85da

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Jan 20, 2021
@ti-chi-bot
Copy link
Member

@AstroProfundis: Your PR has out-of-dated, I have automatically updated it for you.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository.

@ti-chi-bot ti-chi-bot merged commit 57e13bd into pingcap:master Jan 20, 2021
@AstroProfundis AstroProfundis deleted the remove-v0manifest branch January 20, 2021 10:40
mianhk pushed a commit to mianhk/tiup that referenced this pull request Jan 21, 2021
* remove v0manifest from repository & env

* remove redudant code in repository

* remove v0manifest from profile

* remove v0manifest

* remove more redudant code

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT1 Indicates that a PR has LGTM 1. type/enhancement Categorizes issue or PR as related to an enhancement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove v0manifest
5 participants