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

Server/simd: Viper Removal #6599

Merged
merged 23 commits into from
Jul 5, 2020
Merged

Server/simd: Viper Removal #6599

merged 23 commits into from
Jul 5, 2020

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Jul 3, 2020

Description

  • Cherry-pick Ethanfrey/fix trace flag #6551
  • Remove global Viper usage from the server pkg and simd CLI pkg
    • Use a local-scope Viper literal instead of direct global viper.Get* outside of command handlers
    • Use cmd.Flags() directly inside command handlers

ref: #6571


Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer
  • Review Codecov Report in the comment section below once CI passes

@alexanderbez alexanderbez mentioned this pull request Jul 3, 2020
27 tasks
@codecov
Copy link

codecov bot commented Jul 3, 2020

Codecov Report

Merging #6599 into master will decrease coverage by 0.21%.
The diff coverage is 20.45%.

@@            Coverage Diff             @@
##           master    #6599      +/-   ##
==========================================
- Coverage   57.11%   56.89%   -0.22%     
==========================================
  Files         484      485       +1     
  Lines       29148    29166      +18     
==========================================
- Hits        16647    16594      -53     
- Misses      11313    11384      +71     
  Partials     1188     1188              

@alexanderbez alexanderbez changed the title Server/simd: Viper Removal Server/simd: *Global* Viper Removal Jul 3, 2020
@alexanderbez alexanderbez changed the title Server/simd: *Global* Viper Removal Server/simd: Viper Removal Jul 3, 2020
@alexanderbez alexanderbez added this to the v0.40 [Stargate] milestone Jul 3, 2020
@alexanderbez alexanderbez added the A:automerge Automatically merge PR once all prerequisites pass. label Jul 4, 2020
@alexanderbez alexanderbez self-assigned this Jul 4, 2020
server/constructors.go Outdated Show resolved Hide resolved
types/errors/abci.go Outdated Show resolved Hide resolved
@mergify mergify bot merged commit 9ebda4e into master Jul 5, 2020
@mergify mergify bot deleted the bez/cherry-pick-12ffeee branch July 5, 2020 16:56
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
* init commit

* remove viper from tm cmds

* updates

* Undo x/bank/client/cli/tx.go

* Fix unit tests

* lint++

* rename var

* Fix genutil test

* fix test

* prefer cmd.Flags() over direct viper usage

* update

* fix ABCI error tests

* fix integration tests

* Add viper to context

* fix build

* fix unit test

* Implement and use AppOptions

* Revert Redact godoc

Co-authored-by: Alessio Treglia <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. C:CLI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants