Commit Graph

77 Commits

Author SHA1 Message Date
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
Alessio Treglia 0e1f61949e Autobuild snap (#3455) 2019-01-31 09:59:19 -08:00
Christopher Goes d2b453e420
Merge PR #3440: Fix long multi-seed simulation 2019-01-30 05:59:19 +01:00
Alessio Treglia 26ee435a61 Upgrade gometalinter (#3439) 2019-01-29 16:02:39 -08:00
Jack Zampolin 0043912548 Merge PR #3338: Remove unused code and examples 2019-01-24 11:18:45 +01:00
Alessio Treglia bf59291a79 Merge PR #3343: Enrich version command's output 2019-01-22 21:16:29 +01:00
mircea-c baac2bc340 Build gaia docker images during CI (#3282) 2019-01-14 11:04:28 -08:00
mircea-c b8de70add8 Merge PR #3220: Extended running time for multi-sim test
* Added dependencies block anchor to simplify
* Increased blocks to 1000 and removed cache restore
* Made the period a parameter in the script
* Renamed the jobs because git is confused
* Specify period on long sim
2019-01-04 16:40:39 +01:00
mircea-c 131ad378e0 fixed makefile target in macos build job (#3185) 2018-12-20 11:46:37 -08:00
Alessio Treglia 0c0bff7ea0 Fix Makefile's all target (#3085)
- Rename get_dev_tools to devtools
- tools and devtools now create a stamp after execution so
  that they are not executed twice on the same pipeline
- Add clean target to remove stamps
2018-12-20 10:03:59 -08:00
Zach c9ef680f67 Fix $GOVERSION in Mac tests (#3173) 2018-12-19 14:00:56 -08:00
Zach 5241c3c7c1 go one.eleven.four (#3169) 2018-12-19 11:41:59 -08:00
mircea-c c02043ec62 Added macos integration tests (#3152) 2018-12-19 09:02:56 -08:00
Zach 26fc5163e3 Update go version in docs (#3123) 2018-12-18 12:48:30 -08:00
Christopher Goes e54e0465e2
Merge PR #3080: Run fewer blocks on CI multi-seed simulation 2018-12-11 15:49:19 +01:00
mircea-c a55f4490f9 changed docs deployment to trigger on every push to master/develop (#2962)
* changed docs deployment to trigger on every push to master/develop

* updated PENDING.md
2018-11-30 07:15:04 -08:00
Christopher Goes b2b026b5e0
Merge PR #2930: Simulation spring cleaning
* Update PENDING.md
* Add simple period for expensive invariants
* Remove individual module simulations
* Simulate a few more blocks
* Add README explaining reason for shell scripts
* Deduplicate scripts, log exact replication command on failure
* Refactor invariants to take sdk.Context instead of baseapp.BaseApp
* Reference all issues in PENDING.md entry
* Remove no longer used simulation.RandSetup
* Bug fixes
* Address @rigelrozanski comments
* Fix typo
2018-11-29 16:17:10 +01:00
Christopher Goes ad121f1498 Add a flag to export for zero-height start (#2827)
Closes #2812

This PR adds the flag --for-zero-height to gaiad export, which runs several alterations to the application state to prepare for restarting a new chain in a consistent fashion.

It also:

* Moves Gaia's export code to cmd/gaia/app/export.go for cleaner separation.
* Fixes an inconsistency where we treated the initChainer as happening at height -1 - it should now happen at height 0, since the first header sent by Tendermint has height 1.
* Runs the runtime invariant checks on start (in initChainer)
* Adds a few auxiliary functions to clear slashing periods
* Removes the Height field from Delegation objects in x/stake, which was not used anywhere
2018-11-26 04:21:23 -08:00
mircea-c 45b0e3a7ac Build docs in CircleCI (#2810)
* error checking the API call
* added docs build trigger to circleci job
2018-11-14 13:11:34 -08:00
Christopher Goes 94f45311a0 Fix state export/import, add to CI (#2690)
* Update slashing import/export
* More slashing.WriteGenesis
* Add test import/export to CI
* Store equality comparison.
* Fix validator bond intra-tx counter
* Set timeslices for unbonding validators
* WriteGenesis => ExportGenesis
* Delete validators from unbonding queue when re-bonded
* Hook for validator deletion, fix staking genesis tests
2018-11-08 16:28:28 -08:00
ValarDragon 176ea763c4 Fix circle ci 2018-10-10 23:34:00 -07:00
Christopher Goes fa3b459314 Actually run multi-seed simulation 2018-10-05 14:41:12 +02:00
Christopher Goes fdc7b4d7a5 Add default CI multi-seed sim 2018-10-05 14:33:46 +02:00
Christopher Goes f6e3e61e07
Merge PR #2440: Fix CircleCI 2018-10-04 15:59:04 +02:00
HaoyangLiu 9f67e8af20 Merge PR #2215: Add swagger-ui for gaiacli lite-server 2018-10-04 13:00:24 +02:00
Alessio Treglia 10b916eb28 Merge PR #2318: Simplify version handling, rely on git describe 2018-09-20 00:03:04 +08:00
Alessio Treglia ceb33ca464
Rename test_cli to integration_tests
Move `make test_examples` into integraton_tests.
2018-08-23 08:55:05 +01:00
Alessio Treglia 56a98cb047
Simple integration tests for {base,demo}coind
Closes: #1632
2018-08-22 18:17:15 +01:00
Jack Zampolin 937bc8ade0 Fix issue with branches and circle 2018-08-21 14:01:17 -07:00
Christopher Goes b8cfc1e19f
Merge PR #2068: Minor simulation changes 2018-08-17 16:19:33 +02:00
Jack Zampolin 45bd414fc2 Run localnet on every commit ensure network reaches at least 10 blocks (#2067) 2018-08-16 20:23:57 +02:00
Christopher Goes 3d50567034
Merge PR #1783: Slashing, validator set, and governance simulation 2018-08-16 17:36:15 +02:00
ValarDragon f04deea358 CI: Reduce log output
This commit makes it such that circle CI only shows the module whose
tests it is currently running in the log, unless a test fails. For each
failing test, it will display all of the log output. This is done to make
our log output far more scrollable. We lose no information in debugging.
2018-07-29 14:12:38 -07:00
rigelrozanski 423d0c4a18 Merge remote-tracking branch 'origin/develop' into cwgoes/a-random-walk-down-proof-of-stake 2018-07-19 01:56:42 -04:00
Dev Ojha 6cfef64382 Merge PR #1732: tools: add make {get, update, check}_dev_tools
This is so that validators can have a more minimal install, but we
can still install linters for developers. (And any other future dev
tools)
2018-07-18 10:20:24 +02:00
Christopher Goes 05ceff5212 Deterministic 'make test_sim' on CircleCI; bank test fix 2018-07-18 09:37:14 +02:00
Christopher Goes 405bb538fc Merge branch 'master' into cwgoes/a-random-walk-down-proof-of-stake 2018-07-14 02:09:41 +02:00
Rigel 3231daa4d8 remove global shares (#1644)
* wip removing pool shares

* remove PoolShares/Tokens entirely

* worked through stake/type compile error

* work through a bunch of keeper errors

* worked through compile errors

* debugging tests

* resolve compilation error

* resolved types errors

* ...

* move inflation to pool type

* ...

* stumped problem

* Calculate newly issued shares, remove unnecessary pool arg from exchange rate calculation

* Rounding changed

* Update x/slashing tests for sdk.Rat BondedTokens

* testing fixes

* resolved test fixes

* cwgoes comments, changelog, lint

* cli bugfixes

* ..

* cli fixed

* spec update

* 'make format'

* cwgoes comments

* Increase test_cover parallelism
2018-07-13 21:46:14 +01:00