Commit Graph

258 Commits

Author SHA1 Message Date
Erik Grinaker 05e40d3ff3
Merge PR #5612: Makefile: remove golangci-lint installation 2020-02-04 13:43:48 -05:00
Alexander Bezobchuk 26d6e49d6a
Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05:00
Alessio Treglia 394860068d
keyring's encrypted file backend integration (#5355)
Client commands accept a new `--keyring-backend` option through which users can specify which backend should be used by the new key store:
- os: use OS default credentials storage (default).
- file: use encrypted file-based store.
- test: use password-less key store (highly insecure).
2019-12-11 09:45:26 +00:00
Alessio Treglia 9428615c49 Run tests with passwordless keyring (#5332) 2019-11-20 10:42:02 +01:00
Mircea Colonescu 1285782ef6 add docs staging build (#5306) 2019-11-13 12:06:05 +01:00
Alessio Treglia 849e2fb638 Merge PR #5025: Standardize and clean up Makefile
* Attempt to standardise Makefile's conventions

Use check- prefix for test- targets to adhere to
Make's standard naming convention [1].

Snake-case names are abandoned in favor of
kebab-case naming convention.

[1] https://www.gnu.org/prep/standards/html_node/Standard-Targets.html

* Replace check- with test-

* Remove goimports from tools

* Update circleci config

* Update workflow steps names to match Makefile

* Fix circleci config

* s/check_statik/update-swagger-docs/
2019-09-11 08:13:11 -07:00
Alexander Bezobchuk 47ffaa2504
Merge PR #5018: Fix test_sim_multi_seed_long make target 2019-09-09 13:40:33 -04:00
Alexander Bezobchuk 2c4faf983b
Merge PR #5015: Update Makefile runsim targets 2019-09-09 09:54:01 -04:00
Federico Kunze e3e49fc72c Merge PR #5009: remove redundant invariant simapp check 2019-09-06 14:23:40 -04:00
Federico Kunze 45b25ceaae Merge PR #4838: Sim refactor 2 - Move GenesisState generators to modules 2019-08-28 10:58:25 -04:00
mircea-c 450c8ced2c Merge PR #4787: Updated docs build process 2019-08-26 09:09:18 -04:00
Alexander Bezobchuk 42c54f8d0c
Merge PR #4861: Simulation Fixes 2019-08-07 12:54:13 -04:00
Alexander Bezobchuk 451535bd79
Merge PR #4837: Cleanup node_info Endpoint 2019-08-02 11:52:55 -04:00
mircea-c e8ed9302f7 CI configuration refactor (#4776)
* added back the tools targets
* removed ci target
2019-07-25 20:21:42 +02:00
Federico Kunze 8af2230ee4 Merge PR #4731: Save sim params and export app state to file 2019-07-19 18:59:04 +02:00
Alessio Treglia 01d4425658
Remove tools from the repository (#4683) 2019-07-04 15:54:06 +01:00
Alessio Treglia a57915600c
Update golangci-lint (#4636)
Update golangci-lint to latest version.

Remove ci-lint, no longer used.

Remove golangci-lint from tools target to prevent CI builds
from downloading automatically (and unnecessarily).
Developers can still run make golangci-lint to download
it locally for development and testing purposes.
2019-06-28 15:11:26 +01:00
Alessio Treglia 908c5cf4be
R4R: added slack notification to runsim (#4547) 2019-06-26 08:11:42 +01:00
Alessio Treglia 1eb7706c28
Separate account getters from client/context (#4579)
Account getters are removed from client context. x/auth has the
queriers necessary for retrieving account information.
These functions should be removed since they are currently
redundant and don't provide any extra value.

Closes: #4543
2019-06-19 14:24:11 +02:00
Alexander Bezobchuk 5cae008fbe
Merge #4434: Remove draw_deps target 2019-05-29 10:58:28 -04:00
Karoly Albert Szabo c39fa755cb Merge PR #4413: Revert swagger removal 2019-05-28 09:46:26 -04:00
Alexander Bezobchuk 4b872d2eb4
Merge PR #4377: Remove statik/Swagger UI 2019-05-20 11:19:53 -04:00
Alessio Treglia 71d71f2206
Remove gaia (#4347)
Gaia is removed from cosmos-sdk repository.

Few changes were required to make sure no packages depend on gaia subpackages.

CI config is amended accordingly.

Unnecessary targets are removed from Makefile.

Simulations run through a lightweight version of gaia renamed to simapp.

Closes: #4104
2019-05-18 10:42:24 +02:00
frog power 4000 3fe5869148
Merge PR #4159: Module/Genesis Generalization
* first commit

* gaia cleanup

* ...

* staking multihooks

* missing module function return args

* bank module name constant

* working, module interface for x/

* got this thing compiling

* make test compiles and passes

* remove expanded simulation invariants

* genesis issue

* continued

* continued

* register crisis routes thought mm

* begin blocker to mm

* end blocker to mm

* empty routes not initialized

* move gaia initChainer sanity check to baseapp

* remove codecs from module manager

* reorging genesis stuff

* module manager passed by reference/bugfixes from working last commit

int

int

* move invariant checks from gaia to crisis

* typo

* basic refactors cmd/gaia/init

* working

* MultiStakingHooks from types to x/staking/types

int

* default module manager order of operations from input modules

* working

* typo

* add AppModuleBasic

* moduleBasicManager / non-test code compiles

* working attempting to get tests passing

* make test passes

* sim random genesis fix

* export bug

* ...

* genutil module

* genutil working

* refactored - happy with non-testing code in cmd/

* ...

* lint fixes

* comment improvement

* cli test fix

* compile housing

* working through compile errors

* working gettin' compilin'

* non-test code compiles

* move testnet to its own module

* reworking tests

int

* bez staging PR 1 comments

* concise module function-of names

* moved all tests from genesis_test.go to other genutil tests

* genaccounts package, add genutil and genaccounts to app.go

* docs for genutil genaccounts

* genaccounts iterate fn

* non-test code with genaccounts/ now compiles

* working test compiling

* debugging tests

* resolved all make test compile errors

* test debuggin

* resolved all unit tests, introduced param module

* cli-test compile fixes

* staking initialization bug

* code comment improvements, changelog entries

* BasicGaiaApp -> ModuleBasics

* highlevel explanation in types/module.go

* @alexanderbez comment revisions

* @fedekunze PR comments

* @alexanderbez PR comments (x2)

* @cwgoes comments (minor updates)

* @fedekunze suggestions

* panic on init with multiple validator updates from different modules

* initchain panic makes validate genesis fail

int

* AppModuleGenesis seperation

int

* test

* remove init panic logic in validate genesis replaced with TODO

* set maxprocs to match system's GOMAXPROCS

* Update circleci

* Cap maxprocs in CI to 4

* @alexanderbez recent comments addressed

* less blocks in twouble sims

int

* runsim error output flag

* -e on import_export as well

* error out

int

* Try to fix failures

* runsim
2019-05-16 11:25:32 -04:00
Alessio Treglia c0486aa532
R4R: Infrastructure for reproducible builds (#4262)
This change set introduces support for building gaia with gitian
on the following GOOS/GOARCH pairs:

- darwin/386
- darwin/amd64
- linux/386
- linux/amd64
- linux/arm
- linux/arm64
- windows/386
- windows/amd64

cmd/gaia/contrib/gitian-descriptors/ contains gitian descriptor files.

cmd/gaia/contrib/gitian-keys/ contains:
- a keys.txt file that is meant to list core developers and gitian
  builders PGP keys. 
- README.me to provide instructions on how to import the keys
  into one's personal GPG keyring.

The gosum utility is removed, so is the go.sum hashsum bit from
gaiacli/gaiad version string. It was meant to be a provisional
mitigation to the lack of a reproducible build process.

GOBIN is removed from all Makefiles. When GOBIN is set, go
refuses to cross-compiles binaries for foreign architectures.
export GOBIN=$GOPATH/bin is unnecessary anyway as by
default go install places built binaries in $GOPATH/bin.
Developers are required to update their enviornment files and
replace $GOBIN with $GOPATH/bin in PATH.

circleci configuration file is amended accordingly.

Closes: #4027
Closes: #4280
2019-05-14 00:33:34 +02:00
Alessio Treglia 06f7b2198a
Replace vet with golangci lint govet (#4277)
Drop go vet in favor of golangci-lint govet check.

Fix golangci-lint warnings.

Upgrade golangci-lint.
2019-05-06 17:50:05 +01:00
Alessio Treglia 5060187d3d
Merge gaiareplay into gaiad to reduce number of binaries (#4272) 2019-05-06 17:43:37 +01:00
Alessio Treglia 38f93128eb
Remove baseapp dependency on the version package (#4250)
The version package is meant to be a convenience utility
that provides SDK consumers with a ready-to-use version
command that produces app's versioning information from
flags passed at compile time.
It will not make sense anymore for the baseapp package
to depend on the version package once gaia will have been
migrated away from the SDK main repository as we neither
want to make assumptions nor set expectations on downstream
apps buildsystems. Thus BaseApp now provides SetAppVersion()
and AppVersion() to to allow SDK consumers to set BaseApp's
version information string once the struct is initialised.
2019-05-02 20:37:44 +01:00
Alessio Treglia 60a6a8dcef
Remove tools from go.sum deps (#4251)
The go.sum target does not need to depend on tools to run successfully.
2019-05-02 17:30:29 +01:00
Alessio Treglia 4e70a37c6b Merge PR #4228: gaiakeyutil -> gaiacli keys parse 2019-05-02 09:34:02 -04:00
Alessio Treglia 4bf9d2b3ec Merge PR #4161: New experimental simulation runner 2019-04-23 09:01:59 -04:00
Alessio Treglia 74ea92a990
New Makefile for gaia (#4110)
Amend targets naming convention as per [1]:
- Switch from underscore '_' separated naming scheme to dash '-'
  separated naming scheme.
- Replace test with check.

Simulations now live in their own Make module.

[1] https://www.gnu.org/prep/standards/html_node/Standard-Targets.html
2019-04-15 14:00:28 +01:00
Alexander Bezobchuk 722d122da7
Merge PR #4079: Implement Invariant Benchmarks 2019-04-12 18:52:16 -04:00
Alessio Treglia 1505c2b2e6
Move tools to contrib (#4073)
Also rename sdkch to clog
2019-04-09 10:41:00 +01:00
Frank Yang 9e7440a92c Merge PR #4064: Remove dep/vendor from documentation and version cmd
* Remove `dep` and `vendor` from documentation
* Replace vendor with go.sum hash in version command
2019-04-08 11:00:17 -04:00
Alessio Treglia 3b9a1f7c29
Handle build correctly (#4016)
Remove build from .PHONY, add it to clean
2019-04-02 03:01:12 +02:00
Alessio Treglia cdf2b7a7c5
gometalinter -> golangci-lint migration (#3933)
{,scripts/}Makefile:
- Remove gometalinter, install golangci-lint.
- Remove distinction between tools and devtools.
  Just tools is enough.
- test_lint -> lint
  Migrating away from underscore separated names.
- Remove unnecessary targets.
- Drop tendermint/lint. Incompatbile with golangci-lint
  and no longer necessary anyway.
- Fix misleading message in go-mod-cache.
- New ci-target to avoid download tools twice.
- Run tests with -mod=readonly.

Port tools/gometalinter.json to .golangci.yml
Update CircleCI config accordingly.

Closes: #3896
2019-03-19 17:52:43 +01:00
Alessio Treglia 6ce4d5efd1
replace dep with go mod (#3907)
Replace sha1sum with jack's gosum and get rid of
vendor-deps.
Also don't compute hash on vendor/ contents.
Instead hash go.sum.

Disable unconvert lint check. It does not
work very well with go mod.

Remove update_vendor_deps once and for all.

Upgrade to go 1.12

Closes: #3919 #3630
2019-03-18 13:45:25 +01:00
Alessio Treglia 648b43288b Merge PR #3828: Add sdkch to maintain PENDING.md effectively and free of file conflicts
Closes: #2380
2019-03-14 14:24:53 +01:00
Jae Kwon a24dee0155 Merge PR #3808: Make cli tests use build files
* Make cli tests use build files

* Update PENDING.md

Add PR number.
2019-03-07 11:51:14 -08:00
Alessio Treglia 3e82a8bbb8 Merge PR #3792: Use DBBackend set at compile time
* use DBBackend set at compile time

Closes: #3719

* Refresh changelog

* Tweak Makefile
2019-03-04 21:31:55 +01:00
Juan Leni 787f46546d Merge PR #3620: Indicate build flags in version 2019-02-13 09:53:16 -08:00
Juan Leni 4282c6a351 Merge PR #3582: Fix for make test_unit
* Fix for make test_unit
* adding entry in pending.md
2019-02-11 11:28:52 +01:00
Juan Leni b5fdb83830 Merge PR #3517: Increasing test coverage in keys/client package 2019-02-08 12:45:23 -08:00
Alessio Treglia b63b6254c8 Merge PR #3522: get rid of double negatives: IsNotNegative -> IsAnyNegative 2019-02-06 14:45:15 -08:00
Juan Leni 174ec0c809 Merge PR #3431: PrivKeyLedgerSecp256k1: lost connection 2019-02-05 10:21:04 -08:00
Alessio Treglia 59727516ee Remove build-snap-edge, keep snapcraft-local.yaml for local builds 2019-02-03 16:35:13 -08:00
Alessio Treglia 24876aa47b Merge PR #3441: Small fixes for Makefile
- Remove --long from git describe. Appending commit info on tagged
  revisions is redundant.
- $(subst v,,$(shell git describe --tags --long)) was removing any
  occurrence of 'v'. Rather we want to remove only the 'v' prefix
  from tags.
2019-01-30 06:00:06 +01:00
Alessio Treglia 26ee435a61 Upgrade gometalinter (#3439) 2019-01-29 16:02:39 -08:00
Christopher Goes 9320dbb2da
Merge PR #3428: Simulate from a genesis file 2019-01-29 23:53:42 +01:00