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

Release v0.34.0 (master) #4036

Merged
merged 111 commits into from
Apr 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
9ffe64d
failing test
sunnya97 Mar 7, 2019
55c0c0a
Release v0.33.0 to Develop
jackzampolin Mar 7, 2019
4816dbe
Merge PR #3823: v0.33.0 tag to develop
jackzampolin Mar 7, 2019
a24dee0
Merge PR #3808: Make cli tests use build files
jaekwon Mar 7, 2019
fbd79d0
Merge PR #3818: Introduce sdk.NewCoins
alessio Mar 8, 2019
714168f
Merge branch 'develop' into sunny/coins-AllGT-test
alessio Mar 8, 2019
71ca0e5
Port IsAllGT from safe-coins PR
Mar 8, 2019
862cc43
Fix tests
Mar 8, 2019
c57de3d
Merge PR #3827: Create delegator-guide-cli.md
shirleypyj Mar 8, 2019
e236607
Merge PR #3801: BaseApp Security Improvements
alexanderbez Mar 8, 2019
6f74095
Merge PR #3831: Move indent for json output to 2 spaces
jackzampolin Mar 8, 2019
6142f90
Merge PR #3832: changed docs build docker image and job commands
Mar 8, 2019
f37ab4a
Merge PR #3826: Port IsAllGT from safe-coins PR
jackzampolin Mar 8, 2019
38fde7d
Update PENDING.md
Mar 8, 2019
4e38c79
Merge PR #3840: Modify magic string "json" to OutputFormatJSON
yangyanqing Mar 9, 2019
4b765b6
Merge pull request #3844 from cosmos/master
jaekwon Mar 10, 2019
3049862
ContainsDenomsOf -> DenomsSubsetOf
Mar 11, 2019
42718b5
Merge PR #3849: Force setup_dependencies to run also for tags
sabau Mar 11, 2019
db421fc
Merge PR #3847: Fix typos, and update deprecated links
gin Mar 11, 2019
e200a2b
Fix comments
Mar 12, 2019
b316c47
Merge PR #3836: Fix WithdrawValidatorCommission
alexanderbez Mar 12, 2019
38796c1
Merge PR #3859: Add newline to echo of `gaiacli keys ...`
yangyanqing Mar 12, 2019
997aa61
Merge branch 'develop' into sunny/coins-AllGT-test
alessio Mar 12, 2019
f97e85e
Merge PR #3820: Make Coins.AllGT() more robust and consistent
cwgoes Mar 12, 2019
7af11ec
Merge PR #3864: Make IsAllGTE() more consistent
alessio Mar 12, 2019
5b62109
Merge PR #3838: Update Docs for mainnet
gamarin2 Mar 13, 2019
54ac1d2
Merge PR #3841: Add indent to JSON of `gaiacli key [add|show|list]`
yangyanqing Mar 13, 2019
648b432
Merge PR #3828: Add sdkch to maintain PENDING.md effectively and free…
alessio Mar 14, 2019
7e53da8
Merge PR #3884: steak to stake
yangyanqing Mar 14, 2019
48b6b38
Merge PR #3891: Fix link to genesis
sabau Mar 14, 2019
f0d1efa
Merge PR #3819: Simulation Refactor
rigelrozanski Mar 14, 2019
1bc7716
Merge PR #3879: Update Korean CLI delegator guide to mainnet spec
dogemos Mar 14, 2019
dd0378d
Merge PR #3902: docs: create blog-3-en.md
Chjango Mar 15, 2019
868d448
Merge PR #3904: Create Blastoff — The Cosmos Hub Mainnet is Live-CN
shirleypyj Mar 15, 2019
5081c93
Merge PR #3887: Add indent to prompt of `gaiacli tx send`
yangyanqing Mar 15, 2019
8d6d8ad
Merge PR #3899: Using `gaiacli config node` breaks ~/config/config.to…
yangyanqing Mar 15, 2019
465bb02
Merge PR #3779: Split Proposal Interface
mossid Mar 15, 2019
5115dd4
Merge PR #3912: Fix a bunch of typos while skimming through the docs
liamsi Mar 15, 2019
25408e7
Merge PR #3747: Implement initial simple denom convert utils
alexanderbez Mar 16, 2019
3d2886d
Remove Height Flag from CLI Queries #3883 (#3910)
yangyanqing Mar 16, 2019
5f92fef
Fix TruncateDecimal (#3913)
alexanderbez Mar 16, 2019
6ce4d5e
replace dep with go mod (#3907)
alessio Mar 18, 2019
ea9aecd
Merge PR #3894: Minting mechanism explanatory docs
rigelrozanski Mar 18, 2019
faefc80
Merge PR #3931: DOCS: Update validator-setup.md
cfl0ws Mar 18, 2019
cdf2b7a
gometalinter -> golangci-lint migration (#3933)
alessio Mar 19, 2019
8421008
Remove REST server's secure mode altogether
alessio Mar 19, 2019
236bc23
Add changelog pending entry
alessio Mar 19, 2019
b9837e3
Merge PR #3938: Remove REST server's secure mode altogether
cwgoes Mar 19, 2019
386116f
Merge PR: #3918 Allow Unrated Decreases to Validator Commission Rates
alexanderbez Mar 20, 2019
4b91909
generate: hide empty sections/stanzas if empty
alessio Mar 20, 2019
2832941
Remove -prune flag.
alessio Mar 20, 2019
ae215a2
Merge PR #3950: sdkch various changes
jackzampolin Mar 20, 2019
7438a65
Validate genesis before running gentx (#3927)
sabau Mar 20, 2019
424adf1
Merge PR #3953: Codespace should be lowercase
Mar 20, 2019
9b27901
Merge PR #3958: Fix lcd-testing 303030 bug continued
rigelrozanski Mar 21, 2019
160928b
Merge PR #3955: update docs chinese translation
wangjj9219 Mar 22, 2019
f9c290f
Merge PR #3957: Remove requirement that deposit period and voting per…
jackzampolin Mar 22, 2019
294ac8e
Merge PR #3965: Cherry pick docs update to develop
gamarin2 Mar 22, 2019
dd7de2a
Merge PR #3951: Remove ';' delimiting support from ParseDecCoins
alexanderbez Mar 25, 2019
8528ac7
Merge PR #3960: Disable Keybase for Generate Only in CLI
alexanderbez Mar 25, 2019
2ca86c8
Merge PR #3898: Circuit breaker high level explanation
rigelrozanski Mar 25, 2019
2788c22
Merge PR #3968: Documentation on how to sign Cosmos transactions
zmanian Mar 25, 2019
59765ce
Merge PR #3857: Remove Shares Concept from Unbond/Redelegate UX
alexanderbez Mar 25, 2019
5c2077c
Merge PR #3935: Modify stake to uatom in gaia's doc
Mar 25, 2019
2b43e25
Merge PR #3954: Tx Broadcasting Sync by Default
alexanderbez Mar 26, 2019
2dfba4e
Merge PR #3962: Upgrading ledger dependencies
jleni Mar 26, 2019
83f3d1e
Merge PR #3975: Missing `source ~/.bash_profile` when setting the go …
Mar 26, 2019
ea46da7
Merge PR #3970: Fix Tx Sign Offline Mode
alexanderbez Mar 26, 2019
9cf9e6f
Merge PR #3983: Fix Flag Typo
alexanderbez Mar 27, 2019
82d437f
Fix broken cosmos-sdk go module (#3982)
aaronc Mar 27, 2019
8550d14
Gaiad gentx optional flags (#3897)
sabau Mar 27, 2019
f635b1c
Fix Proposal Stringer (#3986)
alexanderbez Mar 27, 2019
38b7c07
Implement client functionality for the community pool (#3939)
jackzampolin Mar 28, 2019
e5897d8
Merge PR #3996: Update DOCS_README
Mar 28, 2019
5bb6090
Add route for querying signing_info for all validators (#3952)
sabau Mar 28, 2019
b9e6df3
Reintroduce cli_test built tag (#4002)
alessio Mar 28, 2019
df43941
Merge PR #3656: Broken-Invar Tx - aka. Crisis module
rigelrozanski Mar 28, 2019
b85f528
Merge PR #3971: disable non-deterministic lcd test
rigelrozanski Mar 29, 2019
9556393
Merge PR #4005: Increase crypto coverage
alessio Mar 29, 2019
92f653b
Merge PR #4001: Upgrade Tendermint to v0.31.1
alexanderbez Mar 29, 2019
273c525
Fix docker_image ci job (#4004)
alessio Mar 29, 2019
120e08f
Merge PR #3851: Enable Transfers
alexanderbez Apr 1, 2019
b95ade9
Merge PR #4011: Mint/Inflation Querier, LCD and CLI
alexanderbez Apr 1, 2019
3e26ea7
Merge PR #4015: Fix Documentation Inconsistency
Apr 1, 2019
3b9a1f7
Handle build correctly (#4016)
alessio Apr 2, 2019
ecd2bfa
Merge PR #4014: Update Swagger Config
sabau Apr 2, 2019
bc8d2d4
R4R: Rename validator.GetJailed() to validator.IsJailed() #3245 (#4017)
Apr 2, 2019
5b87966
Merge PR #4022: Link to latest IBC spec
cwgoes Apr 2, 2019
e2928d5
Merge PR ##4007: Add Block Time in Txs Responses
alexanderbez Apr 3, 2019
bf17e1b
Merge PR #4029: Update Tendermint to v0.31.3
alexanderbez Apr 3, 2019
fd957f2
Update CHANGELOG
alexanderbez Apr 3, 2019
d8833d7
Remove pending files
alexanderbez Apr 3, 2019
ecba8a1
Merge PR #4037: Fix doc conflicts
gamarin2 Apr 3, 2019
0e55b6e
Merge PR #4028: Hex Encode Data in Tx Responses
alexanderbez Apr 3, 2019
1024562
Fix pending log entry
alexanderbez Apr 3, 2019
fbc3fcb
Merge branch 'master' into release/v0.34.0
alexanderbez Apr 3, 2019
51f2507
Merge branch 'master' into release/v0.34.0
alexanderbez Apr 3, 2019
2c48238
crisis manual
rigelrozanski Apr 3, 2019
7f1b46e
Merge PR #4041: Manual for the Crisis Module
jackzampolin Apr 3, 2019
cbc9ab0
Merge branch 'master' into release/v0.34.0
alexanderbez Apr 3, 2019
3361871
Merge PR #4047: Fix queryDelegationRewards
alexanderbez Apr 4, 2019
1a8ab1c
Merge PR #4019: Update Docs from Staging
gamarin2 Apr 5, 2019
576eb51
Merge PR #4058: Fix DecCoins Bugs
alexanderbez Apr 5, 2019
bec4689
Merge PR #4023: Genesis port script v0.33.x to v0.34.0
fedekunze Apr 8, 2019
c255764
Add back IOTA time in consensus params
alexanderbez Apr 8, 2019
ace9910
Update change log
alexanderbez Apr 10, 2019
38e3fdf
Merge PR #4094: Account for Rounding Errors in Distribution Calculations
rigelrozanski Apr 10, 2019
f8b9a60
Fix docs config
alexanderbez Apr 10, 2019
de72066
Remove panic on zero input during MulDecTruncate
alexanderbez Apr 11, 2019
927f76f
Update Tendermint to v0.31.4
jackzampolin Apr 12, 2019
0f7877c
Merge pull request #4107 from cosmos/jack/tm-update
jackzampolin Apr 12, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 77 additions & 27 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
defaults: &linux_defaults
working_directory: /go/src/github.com/cosmos/cosmos-sdk
docker:
- image: circleci/golang:1.11.5
- image: circleci/golang:1.12.1
environment:
GOBIN: /tmp/workspace/bin

Expand All @@ -17,7 +17,7 @@ macos_config: &macos_defaults
xcode: "10.1.0"
working_directory: /Users/distiller/project/src/github.com/cosmos/cosmos-sdk
environment:
GO_VERSION: "1.11.5"
GO_VERSION: "1.12.1"

set_macos_env: &macos_env
run:
Expand All @@ -27,6 +27,7 @@ set_macos_env: &macos_env
echo 'export GOPATH=$HOME/project' >> $BASH_ENV
echo 'export GOBIN=$GOPATH/bin' >> $BASH_ENV
echo 'export PATH=$PATH:$HOME/go/bin:$GOBIN' >> $BASH_ENV
echo 'export GO111MODULE=on'

############
#
Expand All @@ -35,7 +36,7 @@ set_macos_env: &macos_env
docs_update: &docs_deploy
working_directory: ~/repo
docker:
- image: tendermint/docs_deployment
- image: tendermintdev/jq_curl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

environment:
AWS_REGION: us-east-1

Expand All @@ -44,7 +45,6 @@ deps: &dependencies
name: dependencies
command: |
export PATH="$GOBIN:$PATH"
make vendor-deps

jobs:
setup_dependencies:
Expand All @@ -53,6 +53,9 @@ jobs:
- run: mkdir -p /tmp/workspace/bin
- run: mkdir -p /tmp/workspace/profiles
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: tools
command: |
Expand All @@ -63,7 +66,12 @@ jobs:
name: binaries
command: |
export PATH="$GOBIN:$PATH"
make go-mod-cache
make install
- save_cache:
key: go-mod-v1-{{ checksum "go.sum" }}
paths:
- "/go/pkg/mod"
- persist_to_workspace:
root: /tmp/workspace
paths:
Expand All @@ -78,17 +86,14 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- run:
name: Get metalinter
command: |
export PATH="$GOBIN:$PATH"
make devtools-clean
make devtools
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Lint source
command: |
export PATH="$GOBIN:$PATH"
make test_lint
make ci-lint

integration_tests:
<<: *linux_defaults
Expand All @@ -98,6 +103,9 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test cli
command: |
Expand All @@ -112,6 +120,9 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test individual module simulations
command: |
Expand All @@ -126,6 +137,9 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test full Gaia simulation
command: |
Expand All @@ -140,6 +154,9 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test Gaia import/export simulation
command: |
Expand All @@ -154,6 +171,9 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test Gaia import/export simulation
command: |
Expand All @@ -168,10 +188,14 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test multi-seed Gaia simulation long
command: |
export PATH="$GOBIN:$PATH"
export GO111MODULE=on
scripts/multisim.sh 500 50 TestFullGaiaSimulation

test_sim_gaia_multi_seed:
Expand All @@ -182,10 +206,14 @@ jobs:
at: /tmp/workspace
- checkout
- *dependencies
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Test multi-seed Gaia simulation short
command: |
export PATH="$GOBIN:$PATH"
export GO111MODULE=on
scripts/multisim.sh 50 10 TestFullGaiaSimulation

test_cover:
Expand All @@ -197,14 +225,18 @@ jobs:
- checkout
- *dependencies
- run: mkdir -p /tmp/logs
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Run tests
command: |
export PATH="$GOBIN:$PATH"
export VERSION="$(git describe --tags --long | sed 's/v\(.*\)/\1/')"
export GO111MODULE=on
for pkg in $(go list ./... | grep -v github.com/cosmos/cosmos-sdk/cmd/gaia/cli_test | grep -v '/simulation' | circleci tests split --split-by=timings); do
id=$(echo "$pkg" | sed 's|[/.]|_|g')
GOCACHE=off go test -timeout 8m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic -tags='ledger test_ledger_mock' "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
go test -mod=readonly -timeout 8m -race -coverprofile=/tmp/workspace/profiles/$id.out -covermode=atomic -tags='ledger test_ledger_mock' "$pkg" | tee "/tmp/logs/$id-$RANDOM.log"
done
- persist_to_workspace:
root: /tmp/workspace
Expand Down Expand Up @@ -253,7 +285,7 @@ jobs:
GOPATH: /home/circleci/.go_workspace/
GOOS: linux
GOARCH: amd64
GO_VERSION: "1.11.5"
GO_VERSION: "1.12.1"
parallelism: 1
steps:
- checkout
Expand All @@ -268,7 +300,6 @@ jobs:
popd
set -x
make tools
make vendor-deps
make build-linux
make localnet-start
./scripts/localnet-blocks-test.sh 40 5 10 localhost
Expand All @@ -280,7 +311,22 @@ jobs:
- run:
name: Trigger website build
command: |
chamber exec cosmos-sdk -- start_website_build
curl --silent \
--show-error \
-X POST \
--header "Content-Type: application/json" \
-d "{\"branch\": \"$CIRCLE_BRANCH\"}" \
"https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$WEBSITE_REPO_NAME/build?circle-token=$TENDERBOT_API_TOKEN" > response.json

RESULT=`jq -r '.status' response.json`
MESSAGE=`jq -r '.message' response.json`

if [[ ${RESULT} == "null" ]] || [[ ${RESULT} -ne "200" ]]; then
echo "CircleCI API call failed: $MESSAGE"
exit 1
else
echo "Website build started"
fi

macos_ci:
<<: *macos_defaults
Expand All @@ -300,7 +346,6 @@ jobs:
command: |
source $BASH_ENV
make tools
make vendor-deps
make install
- run:
name: Integration tests
Expand All @@ -322,14 +367,19 @@ jobs:
- setup_remote_docker:
docker_layer_caching: true
- run: |
if [ "${CIRCLE_BRANCH}" == "master" ]; then
GAIAD_VERSION=''
if [ "${CIRCLE_BRANCH}" = "master" ]; then
GAIAD_VERSION="stable"
elif [ "${CIRCLE_BRANCH}" == "develop" ]; then
elif [ "${CIRCLE_BRANCH}" = "develop" ]; then
GAIAD_VERSION="develop"
fi
docker build -t tendermint/gaia:$GAIAD_VERSION .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push tendermint/gaia:$GAIAD_VERSION
if [ -z "${GAIAD_VERSION}" ]; then
docker build .
else
docker build -t tendermint/gaia:$GAIAD_VERSION .
docker login -u $DOCKER_USER -p $DOCKER_PASS
docker push tendermint/gaia:$GAIAD_VERSION
fi

docker_tagged:
<<: *linux_defaults
Expand All @@ -349,11 +399,6 @@ workflows:
test-suite:
jobs:
- docker_image:
filters:
branches:
only:
- master
- develop
requires:
- setup_dependencies
- docker_tagged:
Expand All @@ -378,7 +423,12 @@ workflows:
only:
- master
- develop
- setup_dependencies
- setup_dependencies:
# filters here are needed to enable this job also for tags
filters:
tags:
only:
- /^v.*/
- lint:
requires:
- setup_dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ v If a checkbox is n/a - please still include it but + a little note why
- [ ] Linked to github-issue with discussion and accepted design OR link to spec that describes this work.
- [ ] Wrote tests
- [ ] Updated relevant documentation (`docs/`)
- [ ] Added entries in `PENDING.md` with issue #
- [ ] Added a relevant changelog entry: `sdkch add [section] [stanza] [message]`
- [ ] rereviewed `Files changed` in the github PR explorer

______
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,17 @@
*.swn
.vscode
.idea
*.pyc

# Build
vendor
vendor-deps
.vendor-new
build
tools/bin/*
examples/build/*
docs/_build
docs/tutorial
dist
devtools-stamp
tools-stamp

# Data - ideally these don't exist
baseapp/data/*
Expand Down
17 changes: 17 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
linters:
disable-all: true
enable:
- errcheck
- golint
- ineffassign
- unconvert
- misspell
linters-settings:
gocyclo:
min-complexity: 11
errcheck:
ignore: fmt:.*,io/ioutil:^Read.*,github.com/spf13/cobra:MarkFlagRequired,github.com/spf13/viper:BindPFlag
golint:
min-confidence: 1.1
run:
tests: false
Loading