Skip to content

Commit

Permalink
NOISSUE: release/1.11-> release/1.12 (#87)
Browse files Browse the repository at this point in the history
* MN-574-2 (#74)

* MN-581: create method deposit.transferToDeposit

* MN-581: create method deposit.transferToDeposit

* MN-591: add `deposit.createFund` method (#39)

* PENV-346: add hash to full pulse

* MN-591: add `deposit.createFund` method

* MN-591: refactor method names and remove redundant constructor parameter

* MN-591: switch to master

* MN-591: cleanup after rebase

Co-authored-by: Maria Zubareva <[email protected]>

* MN-581: create method deposit.transferToDeposit

* resolve conflict

* resolve conflict

* MN-636: add method `account.transferToDeposit` (#42)

* MN-636: add method `account.transferToDeposit`

* MN-636: rename `TransferToDeposit` to `ReallocateToDeposit`

* MN-636: add balance checks to functest

* MN-584: add linear vesting type (#47)

* MN-583: add method `deposit.create` (#53)

* MN-651: split spec files (#46)

* MN-651: split spec files

* MN-651: return temporary admin methods in api-exported.yaml

* MN-651: reset api-exported.yaml to v1.1.1 (#48)

* MN-662: fix TestMigrationDaemonTransferDeposit

* MN-662: fix TransferDeposit tests

* MN-583: add method `deposit.create`

* MN-583: revert fund_test.go

* MN-583: fix typo in daemon_confirm.go name

* MN-583: comply note about error text checking

* MN-583: fix parameters order for compatibility with observer

* MN-583: fix note about error type assertion

Co-authored-by: Mikhail Popov <[email protected]>

* MN-583: add double deposit creation check (#57)

* NOISSUE: clarify deposit.Confirm (#58)

* NOISSUE: clarify deposit.Confirm

* NOISSUE: remove unnecessary confusing test

* NOISSUE: fix note about toAmounts method

* MN-588: update migration procedure (#65)

* MN-588: update migration procedure

* MN-588: skip TestDepositCreate

* Update application/functest/test_utils.go

Co-authored-by: Zubareva Maria <[email protected]>

Co-authored-by: Zubareva Maria <[email protected]>

* MN-652: calculate available amount for additional deposit (#70)

* MN-589: utility app

* MN-751: fill linear vesting params from default vesting params config (#73)

Co-authored-by: Andrey Pavlushev <[email protected]>
Co-authored-by: Maria Zubareva <[email protected]>
Co-authored-by: Andrey Pavlushev <[email protected]>
Co-authored-by: Mikhail Popov <[email protected]>
Co-authored-by: Andrey Zolin <[email protected]>

* MN-740: add insolar v1.8.0 with an exporter API rate limiter

* MN-761: use TransferToDeposit request reference as txID (#76)

* MN-740: add fixed insolar v1.8.1

* Revert "MN-761: use TransferToDeposit request reference as txID (#76)" (#77)

This reverts commit 90a2e08.

* Revert "MN-574-2 (#74)" (#78)

This reverts commit dbc9e6c.

* MN-771: add the insolar v1.8.2 with an optional rate-limiting

* OPS-354 run e2e tests on pull requests (#82)

* OPS-354 e2e

* OPS-354 move overlay to gotops

* OPS-354 debug

* OPS-354: add private registry secret to pull go-autotest image

* OPS-354: fix private registry secret

* OPS-354 download go-test-parser.zip

* OPS-354 fix execute binary

* OPS-354 fix execute binary

* OPS-354 tmp

* OPS-354 fix execute binary

* OPS-354 tmp

* OPS-354 Download go-test-parser and execute

* OPS-354 provide BUILD_VERSION to fix the autotest

* OPS-354 fix quote

* empty commit

* OPS-354 proper path to autotests

* OPS-354 update gitops branch to REL-57

* OPS-354 rename package to 'autotests-pod'

* OPS-354 update go-autotests branch to master

* OPS-354 go-test-parser v1.0.4 check

* OPS-354 go-test-parser v1.0.4 check

* OPS-354 revert step condition

Co-authored-by: Sergei Mironov <[email protected]>

Co-authored-by: Alexey Zhunin <[email protected]>
Co-authored-by: Maria Zubareva <[email protected]>
Co-authored-by: Mikhail Popov <[email protected]>
Co-authored-by: Andrey Zolin <[email protected]>
Co-authored-by: Mikhail Popov <[email protected]>
Co-authored-by: Pavel Moskovkin <[email protected]>
Co-authored-by: Sergei Mironov <[email protected]>
Co-authored-by: Tsovak Sahakyan <[email protected]>
  • Loading branch information
9 people authored Oct 16, 2020
1 parent cb4b7f8 commit f3aa5ba
Show file tree
Hide file tree
Showing 520 changed files with 78,349 additions and 112,994 deletions.
107 changes: 107 additions & 0 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: e2e
on:
pull_request:
push:
branches:
- master
env:
KUBECONFIG: k3s.yaml
jobs:
test:
name: test
runs-on: ubuntu-latest
strategy:
max-parallel: 2
matrix:
target: [ci_all]
steps:
- name: Set up go
uses: actions/setup-go@v2
with:
go-version: '1.12'
- name: checkout code
uses: actions/checkout@master
- name: build mainnet image
run: docker build -t localhost/mainnet:local --build-arg "BUILD_VERSION=autotests" .
- name: spin up k3s
uses: insolar/[email protected]
with:
kubectl_version: "v1.18.2"
k3s_tag: "v1.17.4-k3s1"
custom_registry: true
registries_yaml_path: "deploy/registries.yaml"
- name: set PAT for github http auth
run: |
git config --global url."https://${{secrets.INS_SERVICE_PAT}}@github.com/".insteadOf "https://github.com/"
kubectl create ns insolar && kubectl -n insolar create secret generic ins-service-pat --from-literal=INS_SERVICE_PAT=${{secrets.INS_SERVICE_PAT}}
- name: set up local registry
run: kubectl apply -k https://github.com/insolar/gitops/k3s-registry
- name: wait for registry to be up and running
run: kubectl -n registry rollout status deploy/registry --timeout=80s
- name: push mainnet image to local registry
run: docker push localhost/mainnet:local
- name: deploy insolar-mainnet
run: kubectl apply -k deploy/mainnet
- name: wait for bootstrap completion
run: |
echo "waiting for bootstrap completion…"
for attempt in {1..120}; do
STATUS=$(kubectl -n insolar get po bootstrap -o jsonpath='{.status.phase}')
[[ "${STATUS}" == "Succeeded" ]] && exit 0 || sleep 1
done
exit 1
- name: wait for insolar network initialization
run: |
echo "waiting for insolar network initialization…"
for try in {0..180}; do
if kubectl -n insolar exec -i deploy/pulsewatcher -- bash -c 'pulsewatcher -c /etc/pulsewatcher/pulsewatcher.yaml -s' | grep 'READY' | grep -v 'NOT'; then
exit 0
else
sleep 1
fi
done
exit 1
- name: wait for observer-replicator pod to be up and running
run: kubectl -n insolar rollout status sts/observer-replicator -w --timeout=60s
- name: spawn autotests pod
run: |
# create secret
kubectl -n insolar create secret docker-registry ins-registry \
--docker-server=${{ secrets.INS_REGISTRY_URL }} \
--docker-username=${{ secrets.INS_REGISTRY_USERNAME }} \
--docker-password=${{ secrets.INS_REGISTRY_PASSWORD }}
# patch sa
kubectl -n insolar patch sa default -p '{"imagePullSecrets":[{"name":"ins-registry"}]}'
kubectl -n insolar apply -k deploy/autotests-pod
- name: wait for pod initialization
run: |
for attempt in {1..10}; do
STATUS=$(kubectl -n insolar get po go-autotests -o jsonpath='{.status.phase}')
[[ "${STATUS}" == "Running" ]] && exit 0 || sleep $attempt
done
- name: run autotests
run: |
kubectl -n insolar get po
kubectl -n insolar exec go-autotests -- /bin/sh -c 'git config --global url."https://${INS_SERVICE_PAT}@github.com".insteadOf "https://github.com"'
kubectl -n insolar exec go-autotests -- make ${{matrix.target}} > logs.log
- name: display logs
if: always()
run: cat logs.log
- name: Download go-test-parser
if: failure()
run: |
mkdir -p $GITHUB_WORKSPACE/bin
curl -L -s "https://github.com/Tsovak/go-test-parser/releases/download/v1.0.4/go-test-parser_v1.0.4_Linux_x86_64.tar.gz" -o go-test-parser.tar.gz
tar -xf go-test-parser.tar.gz -C $GITHUB_WORKSPACE/bin/
chmod +x bin/go-test-parser
echo "::add-path::$GITHUB_WORKSPACE/bin"
- name: Create tests report
if: failure()
run: |
go-test-parser logs.log -o report
- name: Upload report to artifacts
if: failure()
uses: actions/upload-artifact@v2
with:
name: ${{matrix.target}}
path: "report"
10 changes: 10 additions & 0 deletions deploy/autotests-pod/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
namespace: insolar
bases:
- https://github.com/insolar/go-autotests/deploy/autotests-pod
images:
- name: localhost/go-autotests
newName: registry.insolar.io/insolar/go-autotests
newTag: latest
generatorOptions:
disableNameSuffixHash: true
10 changes: 10 additions & 0 deletions deploy/mainnet/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
namespace: insolar
bases:
- https://github.com/insolar/gitops/mainnet/overlays/autotests?ref=REL-57
images:
- name: insolar/mainnet
newName: localhost/mainnet
newTag: local
generatorOptions:
disableNameSuffixHash: true
7 changes: 2 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ go 1.12

require (
github.com/google/gops v0.3.6
github.com/insolar/insolar v1.7.2
github.com/insolar/insolar v1.8.2
github.com/insolar/x-crypto v0.0.0-20191031140942-75fab8a325f6
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v0.0.5
github.com/spf13/jwalterweatherman v1.1.0
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.6.2
github.com/stretchr/testify v1.4.0
github.com/tylerb/is v2.1.4+incompatible // indirect
golang.org/x/tools v0.0.0-20191108193012-7d206e10da11
gopkg.in/yaml.v2 v2.2.8
gopkg.in/yaml.v2 v2.3.0
)

replace github.com/insolar/mainnet => ./

replace github.com/ugorji/go v1.1.4 => github.com/ugorji/go/codec v0.0.0-20190204201341-e444a5086c43
Loading

0 comments on commit f3aa5ba

Please sign in to comment.