Commit Graph

114 Commits

Author SHA1 Message Date
Alessio Treglia 86243f6a8c
fix docs build failure (#6633) 2020-07-07 19:56:01 +02:00
Marko 01b59db35e
ci: remove swagger check (#6123) 2020-05-02 22:22:49 +02:00
Marko 4b3eb0ea98
ci: migrate long sims (#6084)
Cancel ci if no .go files have been touched. There is no clean way of
doing this so i opted to `exit 1` on the diff job if no go files were
changed and have builds depend on diff passing

- migrate proto checks  to github actions.
- providing make commands to use buf within docker.
-  test-sim-multi-seed-long migration to github actions. Follows same
  logic and only runs on release branches.
-  add protobuf section to CONTRIBUTING.md.
2020-04-28 16:13:36 +02:00
Marko b26109c5dc
ci: upload artifacts on failure (#5987) 2020-04-16 12:41:22 +02:00
Marko Baricevic a495e7daee
revert proto changes 2020-03-27 16:04:55 +01:00
Marko Baricevic a4efd33488
move proto to github actions 2020-03-27 15:46:24 +01:00
Marko Baricevic bb0922d564
fix circle 2020-03-27 15:43:01 +01:00
Marko Baricevic 72ceb5cc6c
remove make from proto 2020-03-27 15:42:27 +01:00
Marko Baricevic 2be5378d2a
cleanup redundant ci 2020-03-27 15:38:55 +01:00
Marko Baricevic f7f8543dcb
add back multi seed long 2020-03-27 15:37:23 +01:00
Marko Baricevic 702c44ff6b
move some sims to github actions 2020-03-27 15:34:16 +01:00
Alessio Treglia fa7024d3e4
exclude generated code from code coverage statistics
.codecov.yml is not working. We should filter out all
generated code that we don't want to be included in
the coverage report.
2020-03-27 00:05:44 +01:00
Denis Fadeev b47e4096fc
Use docs-staging branch (#5797)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-03-18 17:27:01 +00:00
Alessio Treglia 66f8e35b90
Build with go1.14 (#5719) 2020-02-28 12:26:11 +00:00
Alexander Bezobchuk 26d6e49d6a
Merge PR #5491: Protobuf Introduction + Types 2020-01-24 10:32:00 -05: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 14c555ab57
Merge PR #4989: Go 1.13 Upgrade 2019-09-04 10:58:29 -04:00
Federico Kunze 45b25ceaae Merge PR #4838: Sim refactor 2 - Move GenesisState generators to modules 2019-08-28 10:58:25 -04:00
Federico Kunze eeb847c845 Merge #4209: NFT Module
* in sync with @okwme/cosmos-nft

* remove tmp tx

* structuring and minor changes

* supply and client files

* adding cli client

* complete cli/tx and rest.go

* cleanup and restructuring

* restructure rest folder

* minor updates on clients

* update querier

* encoding for clients and other changes

* genesis, invariants, and keeper updates

* update types

* make golangcibot happy

* renamed and removed bank keeper

* remove handlers for editmetadata, mint, burn, buy

* nft interface

* minor cleanup

* sort collections and nfts

* balance and find

* nft query and tx

* touch ups

* uint in place of int

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* little fixes:
- fix error to err to avoid collision
- error handling

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* module generalization changes

* fixes

* query with data

* minor updates and TODOs

* fix CLI tx

* golang bot fixes

* handlers and txs done

* update module generalization

* Added very basic tests which for some reason do not work

* fix test

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* fixed test, now we should fix implementation, seems to fail

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* fix test, create new struct instead of changing the old one

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* fix handler with new logic

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* let's make it compile

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* single failing test example, need to be fixed and extended

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* single failing test example, need to be fixed and extended

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* reverting work, still problems unmarshalling inside iterator from test

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* Setter in nft.go should return NFT instead of BaseNFT

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* remove TODOS

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* comment out broken tests, we want at least a green mark here

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* little fixes

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* hopefully no conflict

* minor changes for tests

* change nft id to string, refactors

* messy pause

* Changes Balances to OWners add all necessary functions, updated Keeper with UpdateNFT as as well as MintNFT and made sure they all update Owners

* pause dev to merge sdk master

* go.mod changes

* getting closer still need module.go

* builds!!!

* fix lint begin handler tests

* stableish

* re-order nft attributes, add back mint and burn msgs and handlers

* add errors to minting the same NFT and burning an NFT that doesnt exist

* first querier test

* add simulations for nft msgs

* handler tests check tags now (fixed a bug!)

* update simulation

* generic handler

* need to check if it compiles on another machine

* fix weird interface error

* add back cli

* wtfff

* codec error fixed, logs removed. still returning empty arrays of IDs

* Take empty input as yes answer

Closes: #4564

* Add pending log entry

* merged in master

* marshall errors

* build commands

* working!!!

* linting errors

* remove unused func

* pause

* fix burn error

* fix burn error

* tests for querier

* typo

* tests for NFT types

* module spec standard

* tests for Collection and Collections types

* merge w Fede

* tests for Owner Type

* added genesis tests and beefed up keeper, querier, handler & types tests

* linting errors deadcode

* DONT COVER test_common.go

* add msg type tests

* Update x/nft/internal/keeper/key.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/nft/genesis.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Update x/nft/client/cli/query.go

Co-Authored-By: Federico Kunze <31522760+fedekunze@users.noreply.github.com>

* Apply suggestions from code review

* typo

* cleanup events

* split events

* more cleanup

* remove restrictions from default handlers

* not sure where these go mod changes came from

* sim generated changes

* make format

* add mint and burn sims

* move NFT interface to nft/exported

* make format

* NFT spec

* Updates

* more updates

* update specs readme

* fix sims

* rest additions

* rest additions

* fix invariant

* minimal nft without name, description or image

* sim

* fix sim

* fix sim

* fix Update methods

* nothing

* simplify update and remove

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* remove test on memory location

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* TEST to get logs, need to be removed

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* fix simulator editMetadata Msg type

* owner not found start with empty collection

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* artifacts on errors in case of failure, else, no artifacts

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

* add more invariant checks to handler_tests

* never forget to overwrite

* merge and update spec

* colins feedback

* code coverage test

* code coverage test

* code coverage test

* spelling

* clean up client

* testing code coverage

* testing code coverage

* testing code coverage

* testing code coverage

* testing code coverage

* Update docs/spec/nft/README.md

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* Apply suggestions from code review

Co-Authored-By: frog power 4000 <rigel.rozanski@gmail.com>

* minor changes

* integration tests and fixes

* minor golangCI fixes

* Update simapp/app.go

Co-Authored-By: Bot from GolangCI <42910462+golangcibot@users.noreply.github.com>
2019-08-26 12:54:45 -04:00
mircea-c 450c8ced2c Merge PR #4787: Updated docs build process 2019-08-26 09:09:18 -04:00
Alexander Bezobchuk e26ab1d116
Merge PR #4825: Fix upload_coverage CI Job 2019-07-31 15:21:23 -04:00
Aditya 4d5d2f7f5d Merge PR #4801: Update tools dependency 2019-07-30 08:17:16 -07:00
mircea-c e8ed9302f7 CI configuration refactor (#4776)
* added back the tools targets
* removed ci target
2019-07-25 20:21:42 +02:00
Marko b2f8c58ec4 Merge PR #4608: More linters - Gosec, staticcheck 2019-06-26 13:30:36 -07:00
Karoly Albert Szabo c39fa755cb Merge PR #4413: Revert swagger removal 2019-05-28 09:46:26 -04:00
Alessio Treglia 3a2423d298
Remove reproducible_builds and macos_ci jobs from circleci config (#4386) 2019-05-21 14:33:39 +01: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
Alessio Treglia 4b7d295eca
reproducible builds CI integration (#4337)
Enable reproducible builds on master.

Overhaul build script, update docs accordingly.
2019-05-16 19:05:56 +01:00
Alessio Treglia f8fd50a0d8 Merge PR #4344: set runsim's default maxprocs to match system's GOMAXPROCS
* set maxprocs to match system's GOMAXPROCS

* Update circleci

* Cap maxprocs in CI to 4

* Try to fix failures
2019-05-16 01:54:07 -04:00
Alessio Treglia 805de8b9f5 Merge PR #4343: Update go to 1.12.5 2019-05-15 11:17:20 -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
Karoly Albert Szabo 2d3a251157 CircleCI: Fix insecure password via CLI (#4331)
- docker_tagged job failed for release 0.34.4
2019-05-13 15:14:54 +02:00
Alessio Treglia e5e6971558
Fix 'Using --password via the CLI is insecure' when building the docker image (#4282) 2019-05-08 01:47:11 +01:00
Alessio Treglia df362ff3e6
Upgrade Go to 1.12.4 (#4261) 2019-05-03 11:33:41 +01: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
Alessio Treglia 273c5253fd
Fix docker_image ci job (#4004)
- Always build regardless of the branch;
  push only from develop and master.
- Add curl to packages dependencies in Dockerfile
  to allow golangci-lint to be downloaded.

Closes: #3977
2019-03-29 18:31:55 +01: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
Karoly Albert Szabo 42718b5635 Merge PR #3849: Force setup_dependencies to run also for tags
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
2019-03-11 18:23:09 +01:00
mircea-c 6142f90612 Merge PR #3832: changed docs build docker image and job commands 2019-03-08 09:03:01 -08:00
Karoly Albert Szabo cc938b8ec7 Merge PR #3694: Tagged docker images 2019-02-25 07:53:26 -08:00
Karoly Albert Szabo 95710f1c37 Merge PR #3684: Add tags for every version in docker repo 2019-02-19 10:19:32 -08:00
Alessio Treglia e7e3c32204 Merge PR #3553: Code cleanup, take #1
* add a bunch of tests, add DONTCOVER text tag

- Also fix flaky test (closes: #3559). Don't test values
  returned by queries since there's no way to query a
  specific height via REST.

* GetTempDir -> NewTestCaseDir
2019-02-08 22:45:41 +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 cf238f709a Merge PR #3532: Don't overwrite package report files 2019-02-07 11:30:18 -08:00
Alessio Treglia f6f24d8761 Merge PR #3525: localnet does not require setup_dependencies 2019-02-06 15:25:47 -08:00
Alessio Treglia 15225e9333 Migration from circleci.io to build.snapcraft.io 2019-02-03 16:34:05 -08:00
Alessio Treglia 45d59b0792 Merge PR #3464: Upgrade to go 1.11.5 2019-02-01 02:20:58 +01:00