Skip to content

Commit

Permalink
Merge pull request #90 from neutron-org/upd/neutron-upd-0.41
Browse files Browse the repository at this point in the history
Upd: Neutron upd 0.41
  • Loading branch information
pr0n00gler authored Aug 29, 2023
2 parents 863b0ad + 8607d74 commit c8d2154
Show file tree
Hide file tree
Showing 221 changed files with 22,479 additions and 10,558 deletions.
71 changes: 63 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
version: 2.1
orbs:
gh: circleci/[email protected]

executors:
golang:
docker:
- image: cimg/go:1.19
- image: cimg/go:1.20

commands:
make:
Expand Down Expand Up @@ -61,7 +63,7 @@ jobs:

lint:
docker:
- image: golangci/golangci-lint:v1.50.1
- image: golangci/golangci-lint:v1.52.2
steps:
- checkout
- run:
Expand Down Expand Up @@ -95,6 +97,21 @@ jobs:
- "profiles/*"
- store_artifacts:
path: /tmp/logs

test-system:
executor: golang
parallelism: 1
resource_class: large
steps:
- attach_workspace:
at: /tmp/workspace
- checkout
- restore_cache:
keys:
- go-mod-v1-{{ checksum "go.sum" }}
- run:
name: Build and run system tests
command: make test-system

benchmark:
executor: golang
Expand Down Expand Up @@ -124,7 +141,7 @@ jobs:
- run:
name: Run simulations
command: |
make test-sim-multi-seed-short
make test-sim-deterministic test-sim-multi-seed-short test-sim-import-export
- store_artifacts:
path: /tmp

Expand Down Expand Up @@ -156,8 +173,7 @@ jobs:
at: /tmp/workspace
- checkout
- setup_remote_docker:
# >= v20.10 https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
version: 20.10.11
docker_layer_caching: true
- run:
name: Build Docker artifact
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_SHA1}" .
Expand Down Expand Up @@ -191,8 +207,7 @@ jobs:
at: /tmp/workspace
- checkout
- setup_remote_docker:
# >= v20.10 https://wiki.alpinelinux.org/wiki/Release_Notes_for_Alpine_3.14.0#faccessat2
version: 20.10.11
docker_layer_caching: true
- run:
name: Build Docker artifact
command: docker build --pull -t "cosmwasm/wasmd:${CIRCLE_TAG}" .
Expand All @@ -203,8 +218,35 @@ jobs:
docker push "cosmwasm/wasmd:${CIRCLE_TAG}"
docker logout
release-tagged:
executor: golang
environment:
BUILD_DIR: /tmp/workspace
steps:
- attach_workspace:
at: /tmp/workspace
- checkout
- setup_remote_docker:
docker_layer_caching: true
- run:
name: Fetch static artifact
command: docker create --name wasmd_temp "cosmwasm/wasmd:${CIRCLE_TAG}"; docker cp wasmd_temp:/usr/bin/wasmd ${BUILD_DIR}; docker rm -f wasmd_temp
- run:
name: gzip
command: tar -zcvf ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz -C ${BUILD_DIR} wasmd
- gh/setup:
token: GITHUB_CREDS
- run:
name: Create release
command: |
gh release create ${CIRCLE_TAG} ${BUILD_DIR}/wasmd-${CIRCLE_TAG}-linux-amd64.tar.gz \
--title "$CIRCLE_TAG" \
--draft \
--notes "# Wasmd ${CIRCLE_TAG} Release
See the [CHANGELOG](https://github.com/CosmWasm/wasmd/blob/${CIRCLE_TAG}/CHANGELOG.md) for details on the changes in this version.
"
workflows:
version: 2
test-suite:
jobs:
- docker-image:
Expand Down Expand Up @@ -235,9 +277,22 @@ workflows:
- upload-coverage:
requires:
- test-cover
- test-system:
requires:
- test-cover
- benchmark:
requires:
- test-cover
- simulations:
requires:
- setup-dependencies
- release-tagged:
requires:
- docker-tagged
filters:
tags:
only:
- /^v.*/
branches:
ignore:
- /.*/
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3.3.0
uses: actions/checkout@v3.5.3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/proto-buf-publisher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.3.0
- uses: bufbuild/buf-setup-action@v1.15.1
- uses: actions/checkout@v3.5.3
- uses: bufbuild/buf-setup-action@v1.25.0

# lint checks
- uses: bufbuild/buf-lint-action@v1
Expand Down
58 changes: 28 additions & 30 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,32 @@
run:
tests: false
tests: true
# timeout for analysis, e.g. 30s, 5m, default is 1m
timeout: 5m

linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- exportloopref
- goconst
- gocritic
- gofmt
- goimports
- revive
- gofumpt
- gosec
- gosimple
- govet
- ineffassign
- misspell
- nakedret
- prealloc
- exportloopref
- nolintlint
- revive
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- unparam
- unused
- varcheck

issues:
exclude-rules:
Expand All @@ -38,26 +36,26 @@ issues:
- text: "ST1003:"
linters:
- stylecheck
# FIXME: Disabled until golangci-lint updates stylecheck with this fix:
# https://github.com/dominikh/go-tools/issues/389
- text: "ST1016:"
linters:
- stylecheck
- path: "migrations"
text: "SA1019:"
linters:
- staticcheck

max-issues-per-linter: 10000
max-same-issues: 10000

linters-settings:
dogsled:
max-blank-identifiers: 3
errcheck:
# report about assignment of errors to blank identifier: `num, _ := strconv.Atoi(numStr)`;
# default is false: such cases aren't reported by default.
check-blank: true
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0
prealloc:
# XXX: we don't recommend using this linter before doing performance profiling.
# For most programs usage of prealloc will be a premature optimization.
revive:
# When set to false, ignores files with "GENERATED" header, similar to golint
ignore-generated-header: true

# Report preallocation suggestions only on simple loops that have no returns/breaks/continues/gotos in them.
# True by default.
simple: false
range-loops: true # Report preallocation suggestions on range loops, true by default
for-loops: true # Report preallocation suggestions on for loops, false by default
nolintlint:
allow-unused: false
allow-leading-space: true
require-explanation: false
require-specific: false
22 changes: 19 additions & 3 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,27 @@ queue_rules:
- "#approved-reviews-by>0"

pull_request_rules:
- name: backport patches to sdk47 feature branch
- name: backport patches to main branch
conditions:
- base=releases/v0.40.x
- label=backport/main
actions:
backport:
branches:
- main
- name: backport patches to sdk45 release branch
conditions:
- base=main
- label=backport/v0.3x
actions:
backport:
branches:
- releases/v0.3x
- name: backport patches to v0.40.x release branch
conditions:
- base=main
- label=backport/sdk47-dev
- label=backport/v0.40.x
actions:
backport:
branches:
- develop_sdk47
- releases/v0.40.x
Loading

0 comments on commit c8d2154

Please sign in to comment.