Commit Graph

93 Commits

Author SHA1 Message Date
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
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