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.17.0 #1530

Merged
merged 268 commits into from
Nov 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
268 commits
Select commit Hold shift + click to select a range
bb8bb6a
Add more check + fix lint
krhubert Oct 29, 2019
74385bc
Add test service
krhubert Oct 28, 2019
a29556b
Add e2e service test
krhubert Oct 28, 2019
ef03ce4
Fix service load path
krhubert Oct 29, 2019
c42b7c4
Add credential data
krhubert Oct 29, 2019
6e57d65
Add e2e ownership test
krhubert Oct 28, 2019
a578ed0
Add e2e instance test
krhubert Oct 28, 2019
e29ae10
Add more check and test to instance api
krhubert Oct 29, 2019
c379775
Add test instance hash
krhubert Oct 29, 2019
1be2d7d
Fix instance hash name
krhubert Oct 29, 2019
f4ec9c0
Add e2e event test
krhubert Oct 28, 2019
cf38c7a
Add check for event data
krhubert Oct 29, 2019
cbc8115
Run gofmt
krhubert Oct 29, 2019
8b3c965
Merge pull request #1439 from mesg-foundation/feature/e2e-account-test
Oct 29, 2019
b99927b
Merge branch 'dev' into feature/e2e-service-test
Oct 29, 2019
b99aded
Merge pull request #1440 from mesg-foundation/feature/e2e-service-test
antho1404 Oct 30, 2019
5361491
Merge branch 'dev' into feature/e2e-ownership-test
antho1404 Oct 30, 2019
61c7166
Merge pull request #1441 from mesg-foundation/feature/e2e-ownership-test
antho1404 Oct 30, 2019
9d41e9a
Merge branch 'dev' into feature/e2e-instance-test
antho1404 Oct 30, 2019
452044a
Merge pull request #1442 from mesg-foundation/feature/e2e-instance-test
antho1404 Oct 30, 2019
1788933
Merge branch 'dev' into feature/e2e-event-test
antho1404 Oct 30, 2019
a405ad5
Merge pull request #1443 from mesg-foundation/feature/e2e-event-test
antho1404 Oct 30, 2019
928609d
Add e2e execution test
krhubert Oct 28, 2019
fb5e598
Merge pull request #1444 from mesg-foundation/feature/e2e-execution-test
antho1404 Oct 30, 2019
69dc285
Pass MESG_INSTANCE_HASH to service
krhubert Oct 30, 2019
43514a9
Add config.log.format validation
krhubert Oct 30, 2019
0117f2d
Validate service nested object params
krhubert Oct 30, 2019
1fd7f35
Add EnvHash to instance and calculate the hash based on it
krhubert Oct 30, 2019
fd7b718
Merge pull request #1448 from mesg-foundation/feature/env-injection
Oct 31, 2019
74e767d
Remove double check for config.log.format
krhubert Oct 31, 2019
58c1d95
Use stable sort when joining env slices
krhubert Oct 31, 2019
d90fddc
Add error log for failed transaction
krhubert Oct 31, 2019
70a0d69
Update validation for service configuration.env
krhubert Oct 31, 2019
db46925
Use merge env slices with stable sort
krhubert Oct 31, 2019
32a4fab
Add e2e tests for instance enviroment hash calculation
krhubert Oct 31, 2019
f9ebe82
Merge pull request #1449 from mesg-foundation/feature/format-validation
Oct 31, 2019
35cee55
Merge xos.Env* functions into one
krhubert Oct 31, 2019
4c06b3f
Fix e2e instance hash check
krhubert Oct 31, 2019
9360a4b
Merge branch 'dev' into feature/instance-env-hash
antho1404 Oct 31, 2019
2386f10
Merge pull request #1452 from mesg-foundation/feature/instance-env-hash
antho1404 Oct 31, 2019
75fa8c6
Add more explicit error on service create
krhubert Oct 30, 2019
12204f9
Merge branch 'dev' into fix/service-tx-exists
krhubert Oct 31, 2019
13542a6
Merge pull request #1450 from mesg-foundation/fix/service-tx-exists
krhubert Oct 31, 2019
99581e0
Merge branch 'dev' into fix/service-validator
antho1404 Nov 1, 2019
1e4d7ba
Merge pull request #1451 from mesg-foundation/fix/service-validator
antho1404 Nov 1, 2019
938d773
Add exist function to keybase with tests
NicolasMahe Nov 4, 2019
6780811
Add Account to Config. Generate account independently from genesis.
NicolasMahe Nov 4, 2019
b853036
Use config's account in API instead of the credentials' account.
NicolasMahe Nov 4, 2019
b70e3a3
Fix lint
NicolasMahe Nov 4, 2019
724a2c8
Refactor instance sdk helper function to container.go file
NicolasMahe Nov 4, 2019
4cbda9a
Add ipfsEndpoint config to instance sdk
NicolasMahe Nov 4, 2019
e495d22
fix test
NicolasMahe Nov 4, 2019
17dfc0a
Merge pull request #1461 from mesg-foundation/refactor/instance-helpers
antho1404 Nov 5, 2019
4373f38
Merge branch 'dev' into feature/single-account
Nov 5, 2019
c1153c7
Update Instance SDK to work with Cosmos
NicolasMahe Nov 5, 2019
f1c77d9
Add runner SDK
NicolasMahe Nov 5, 2019
1dc95a4
Rename ownership db test filename
NicolasMahe Nov 5, 2019
b905f4d
Remove public error from runner sdk
NicolasMahe Nov 5, 2019
7578cff
Add runner list filter
NicolasMahe Nov 5, 2019
d3abce9
fix e2e test
NicolasMahe Nov 5, 2019
3b97c55
Remove public error AlreadyExistsError from SDKs
NicolasMahe Nov 5, 2019
7fddbe1
Remove useless servicesdk interface
NicolasMahe Nov 5, 2019
6369945
Remove interfacer from golangci
NicolasMahe Nov 5, 2019
8d05c31
Use grpc interceptor to inject the credential
NicolasMahe Nov 5, 2019
523c10c
fix lint
NicolasMahe Nov 5, 2019
da7e2e2
Merge pull request #1468 from mesg-foundation/remove/public-error
antho1404 Nov 5, 2019
d160b32
Merge branch 'dev' into remove/servicesdk-interface
antho1404 Nov 5, 2019
caeaa28
Merge pull request #1469 from mesg-foundation/remove/servicesdk-inter…
antho1404 Nov 5, 2019
5063e33
Merge branch 'dev' into feature/single-account
Nov 5, 2019
e985304
Output generated account in main
NicolasMahe Nov 5, 2019
e6654f6
Merge 'dev' into feature/runners
NicolasMahe Nov 5, 2019
0848ac9
Merge commit 'feature/single-account' into feature/runners
NicolasMahe Nov 5, 2019
e9cf6b7
fix lint on proto
NicolasMahe Nov 5, 2019
95e2548
Remove credential hardcoding from runner api
NicolasMahe Nov 5, 2019
a09e07d
Use filter in list instace api
krhubert Nov 5, 2019
69037b2
Increase sequence number on every transaction
krhubert Nov 4, 2019
3ee1eeb
Use auth.NewAccountRetriever to get acc number and sequence
krhubert Nov 5, 2019
ca6d64c
Update golangci-lint to 1.21.0
krhubert Nov 5, 2019
f6e2605
Merge pull request #1473 from mesg-foundation/fix/instance-list-filter
Nov 6, 2019
a8bc7a1
Use a dedicated filter in runner sdk
NicolasMahe Nov 6, 2019
66ad32f
Merge pull request #1459 from mesg-foundation/feature/single-account
Nov 6, 2019
98cecae
Merge 'dev' into feature/runners
NicolasMahe Nov 6, 2019
e4fcc29
Nullable instance filter
krhubert Nov 6, 2019
44c16c6
fix e2e account test
NicolasMahe Nov 6, 2019
6d4ec3e
Merge branch 'dev' into fix/instance-filter
Nov 6, 2019
58ed2c4
Merge pull request #1477 from mesg-foundation/fix/instance-filter
Nov 6, 2019
7fd32fc
Merge branch 'dev' into feature/runners
Nov 6, 2019
9089da4
Merge branch 'dev' into feature/update-golangci
antho1404 Nov 6, 2019
32487c5
Merge pull request #1474 from mesg-foundation/feature/update-golangci
antho1404 Nov 6, 2019
abd59e9
Merge branch 'dev' into feature/runners
antho1404 Nov 6, 2019
1d33ebe
Merge pull request #1456 from mesg-foundation/feature/runners
antho1404 Nov 6, 2019
337690c
Return proper error code on e2e fail
krhubert Nov 6, 2019
0a786af
Merge branch 'dev' into fix/makefile-e2e
Nov 6, 2019
417d53c
Merge pull request #1479 from mesg-foundation/fix/makefile-e2e
Nov 6, 2019
0c98e8e
Merge branch 'dev' into fix/atomic-acc-seq
antho1404 Nov 6, 2019
5004d8f
remove useless variables
antho1404 Nov 6, 2019
12974aa
simplify signature of BuildAndBroadcastMsg
antho1404 Nov 6, 2019
411294f
user GetAccountNumberSequence function
antho1404 Nov 6, 2019
346d428
export MESG_PATH for e2e tests
krhubert Nov 6, 2019
10c92af
Optimize e2e test run
krhubert Nov 6, 2019
0b52d2d
Force e2e test dir removal
krhubert Nov 6, 2019
3cff06a
account number to 0 if account doesn't exists yet
antho1404 Nov 7, 2019
58db9b6
initialize codec per module
antho1404 Nov 6, 2019
0378d32
add ante handler
antho1404 Nov 6, 2019
d570455
remove unnecessary error check
antho1404 Nov 6, 2019
8160741
fix ownership codec
antho1404 Nov 6, 2019
58cf150
fix runner codec
antho1404 Nov 6, 2019
702b12c
Merge pull request #1481 from mesg-foundation/fix/e2e-mesg-path-var
Nov 7, 2019
1c8011e
make codec global
antho1404 Nov 7, 2019
7a13344
disable account test, it messes with the accounds
antho1404 Nov 7, 2019
01340a7
Merge branch 'dev' into fix/codec-ante-handler
antho1404 Nov 7, 2019
42ce565
use global codec for database
antho1404 Nov 7, 2019
f575fcb
Merge branch 'fix/codec-ante-handler' of https://github.com/mesg-foun…
antho1404 Nov 7, 2019
4924b78
Merge branch 'dev' into fix/atomic-acc-seq
Nov 7, 2019
44775b5
update gomod
antho1404 Nov 7, 2019
ec7dbf8
Merge pull request #1462 from mesg-foundation/fix/atomic-acc-seq
Nov 7, 2019
ac39866
Merge branch 'dev' into fix/codec-ante-handler
antho1404 Nov 7, 2019
0c65107
goimport
antho1404 Nov 7, 2019
81d1cb9
Use directly the cosmos kvstore instead of the runner db.
NicolasMahe Nov 7, 2019
aaa89c2
Remove unused runner db
NicolasMahe Nov 7, 2019
05279de
fix binary bare codec
antho1404 Nov 7, 2019
8108a64
Fix ptr and error in runner sdk
NicolasMahe Nov 7, 2019
ce9b49a
Disable go test cache for e2e test
NicolasMahe Nov 7, 2019
56724a8
remove gochecknoinits lint
antho1404 Nov 7, 2019
33749de
Merge pull request #1483 from mesg-foundation/feature/e2e-no-cache
antho1404 Nov 7, 2019
21d4f39
Update sdk/runner/backend.go
Nov 7, 2019
bdbb032
Merge branch 'dev' into feature/no-db-pkg-runner-sdk
antho1404 Nov 7, 2019
0946c44
Merge pull request #1482 from mesg-foundation/feature/no-db-pkg-runne…
antho1404 Nov 7, 2019
253adc1
Merge branch 'dev' into fix/codec-ante-handler
antho1404 Nov 7, 2019
26270c2
fix codecs
antho1404 Nov 7, 2019
490918d
Remove service db in favor of cosmos store
krhubert Nov 7, 2019
0a13de8
Remove instance db in favor of cosmos store
krhubert Nov 7, 2019
02b8782
Remove ownership db in favor of cosmos store
krhubert Nov 7, 2019
efff85c
Comment sdk execution test
krhubert Nov 7, 2019
66ebbc2
Add account.mnemonic in config
krhubert Nov 7, 2019
4badb52
Merge pull request #1488 from mesg-foundation/refactor/database
Nov 8, 2019
5aa8278
Merge branch 'dev' into fix/codec-ante-handler
NicolasMahe Nov 8, 2019
68aba4d
Remove the use of codec.MustMarshal when not needed
NicolasMahe Nov 8, 2019
19434d5
increase the gas limit used in the tx builder to 1,000,000
NicolasMahe Nov 7, 2019
f5cb24d
Fix 3 errors output
NicolasMahe Nov 8, 2019
38a66f0
Add log when config mnemonic is present
Nov 8, 2019
c260499
Merge pull request #1489 from mesg-foundation/feature/config-acc-mnem…
Nov 8, 2019
50af997
Merge branch 'dev' into fix/codec-ante-handler
antho1404 Nov 8, 2019
938526f
Merge pull request #1480 from mesg-foundation/fix/codec-ante-handler
Nov 8, 2019
6a95cc0
Merge branch 'dev' into feature/increase-gas-tx
Nov 8, 2019
6fb0468
Merge branch 'dev' into fix/error-string
antho1404 Nov 8, 2019
cfc7ae7
Merge pull request #1486 from mesg-foundation/fix/error-string
antho1404 Nov 8, 2019
40236fd
Merge branch 'dev' into feature/increase-gas-tx
antho1404 Nov 8, 2019
940abda
Merge pull request #1485 from mesg-foundation/feature/increase-gas-tx
antho1404 Nov 8, 2019
bedd3e0
Filter instances on backend side
krhubert Nov 8, 2019
bb78e5f
Delete all bin directory
NicolasMahe Nov 11, 2019
a961fa2
Force build mesg/engine:local if image doesn't exist
NicolasMahe Nov 11, 2019
91d3b36
Merge multiple query function in cosmos.client
NicolasMahe Nov 11, 2019
d223608
Encode data in JSON in servicesdk.hash function
NicolasMahe Nov 11, 2019
022203a
Remove sleep in test e2e init function
NicolasMahe Nov 11, 2019
5368d8d
Ignore cache in pre-test in e2e
NicolasMahe Nov 11, 2019
ddabd15
Simplify instance list filter cond
krhubert Nov 12, 2019
bb2def6
Use Binary format in cosmos module quierier
krhubert Nov 12, 2019
a536e8e
Remove unnecessary RegisterConcrete
krhubert Nov 13, 2019
c844f60
Fix panic when filter is nil
krhubert Nov 14, 2019
2d336dd
Add more test for list instances
krhubert Nov 14, 2019
fc58b1a
Merge pull request #1491 from mesg-foundation/feature/filter-instance
Nov 14, 2019
402dc05
Add equal option for proto service
krhubert Nov 14, 2019
3e754f8
Create test complex service
krhubert Nov 14, 2019
c0ab023
Move initializeService to api package
krhubert Nov 14, 2019
f2dc42c
Add tests for complex service
krhubert Nov 14, 2019
0cb5c8a
Add amino encoding functionality to proto Struct
NicolasMahe Nov 15, 2019
8fbd972
Apply suggestion from krhubert
NicolasMahe Nov 15, 2019
6e2eb19
add test to make sure hashstruct is sorting the map and struct keys
NicolasMahe Nov 15, 2019
6092ba3
Merge pull request #1502 from mesg-foundation/feature/struct-amino
antho1404 Nov 15, 2019
54e6e24
Merge branch 'dev' into test/hashstruct-key-order
antho1404 Nov 15, 2019
f5902ec
Merge pull request #1503 from mesg-foundation/test/hashstruct-key-order
antho1404 Nov 15, 2019
ac8a394
Do not read service create request from json
krhubert Nov 15, 2019
f4839ed
Check the length of hash in Marshal and Unmarshal and return always t…
NicolasMahe Nov 15, 2019
4ea418a
Merge pull request #1504 from mesg-foundation/fix/hash-len
krhubert Nov 18, 2019
3a0c7f8
Do not calc hash in pb.TransformCreateReqToService + remove it from test
krhubert Nov 18, 2019
0bd659e
More verbose test for complex service
krhubert Nov 18, 2019
6aba629
Fix misspell
krhubert Nov 18, 2019
6e38b81
Rmove deprecated database files
krhubert Nov 18, 2019
485c1e7
Merge branch 'dev' into refactor/depcreated-db
krhubert Nov 18, 2019
2732626
Merge branch 'dev' into test/e2e-complex-service
krhubert Nov 18, 2019
f73c774
Merge pull request #1508 from mesg-foundation/refactor/depcreated-db
Nov 19, 2019
4249445
Change import path name of cosmos-sdk/types in cosmos/module.go
NicolasMahe Nov 19, 2019
04c9251
Add cosmos handler wrapper that requires a hash to be returned. It em…
NicolasMahe Nov 19, 2019
444dfe8
add stream function to cosmos client
NicolasMahe Nov 19, 2019
f376f83
Return not found error in backend get functions when resource doesn't…
NicolasMahe Nov 19, 2019
fa6c351
Fix bug when Value_NullValue is not taking into account
NicolasMahe Nov 19, 2019
abab6e2
Inject runner hash in docker services
NicolasMahe Nov 19, 2019
e997a1d
Make e2e test service read env runner hash
NicolasMahe Nov 19, 2019
07f949f
compile e2e test service
NicolasMahe Nov 19, 2019
08b1042
Remove service env MESG_TOKEN until a real auth system is put in place.
NicolasMahe Nov 19, 2019
0b000a8
Remove service env MESG_TOKEN until a real auth system is put in place.
NicolasMahe Nov 19, 2019
66a602c
Remove service env MESG_TOKEN until a real auth system is put in place.
NicolasMahe Nov 19, 2019
7bd27f7
Merge branch 'feature/cosmos-event'
NicolasMahe Nov 19, 2019
499b03b
Merge branch 'feature/container-runner'
NicolasMahe Nov 19, 2019
62265cc
Update hall of fame on README
Nov 19, 2019
f79f52b
Call onError in sdk runner create function
NicolasMahe Nov 19, 2019
a66a51d
Merge branch 'dev' into feature/remove-mesg-token-2
Nov 19, 2019
dfa8717
update e2e test service
NicolasMahe Nov 19, 2019
054baf3
Add executorHash to execution
NicolasMahe Nov 19, 2019
64b0e79
Merge branch 'dev' into feature/null-parameter-value
antho1404 Nov 19, 2019
7fb58e4
Move execution sdk to cosmos sdk
NicolasMahe Nov 19, 2019
262b870
Update codebase to reflect modification of previous commit
NicolasMahe Nov 19, 2019
3216db2
Remove useless files from database package
NicolasMahe Nov 19, 2019
02e26b8
Update e2e test service
NicolasMahe Nov 19, 2019
630d01a
Merge pull request #1511 from mesg-foundation/feature/null-parameter-…
Nov 19, 2019
9cb36dd
Remove database/store package
NicolasMahe Nov 19, 2019
e84c58b
Merge branch 'dev' into feature/store
Nov 19, 2019
6794af4
Merge branch 'dev' into feature/execution-store
Nov 19, 2019
1bb0966
Merge pull request #1516 from mesg-foundation/feature/store
krhubert Nov 19, 2019
a54e690
Merge branch 'dev' into feature/execution-store
krhubert Nov 19, 2019
2aa5a22
Merge branch 'dev' into feature/not-found-errors
antho1404 Nov 19, 2019
2b06617
Merge pull request #1510 from mesg-foundation/feature/not-found-errors
antho1404 Nov 19, 2019
bb459aa
Remove defer call before return
krhubert Nov 19, 2019
1da0b08
Refactor exeuction
krhubert Nov 19, 2019
def5192
Merge branch 'dev' into feature/container-runner
antho1404 Nov 20, 2019
6df2444
Merge pull request #1512 from mesg-foundation/feature/container-runner
antho1404 Nov 20, 2019
158e204
Select context done in execution stream
krhubert Nov 20, 2019
2b9f090
Remove context metadata from e2e tests
NicolasMahe Nov 20, 2019
b04912e
Add more test to e2e service complex
NicolasMahe Nov 20, 2019
ea6e7c2
skip test delete service complex as it make the test timeout..
NicolasMahe Nov 20, 2019
e3c0223
Merge commit '6df2444c43929f697e5a41105a3d4cd404a2a2b2' into test/e2e…
NicolasMahe Nov 20, 2019
0d6dde4
Revert commit c0ab02333d0b9870c272a6d45fde1c9f7d408d01
NicolasMahe Nov 20, 2019
7f806ea
Merge branch dev
NicolasMahe Nov 20, 2019
237e85d
remove instanceHash from CreateExecutionRequest
NicolasMahe Nov 20, 2019
e78699b
Refactor
krhubert Nov 20, 2019
8168750
Remove commented code + fix linter
krhubert Nov 21, 2019
f6b13d0
Fix filter on runner list
NicolasMahe Nov 21, 2019
5c8686f
Check if runner already exists in runner create
NicolasMahe Nov 21, 2019
1336511
Fix typo. Add todo. Output orchestrator log as orchestrator module.
NicolasMahe Nov 21, 2019
e6ae30f
Merge pull request #1521 from mesg-foundation/fix/runner-sdk
antho1404 Nov 22, 2019
543d66e
Merge branch 'dev' into feature/misc
antho1404 Nov 22, 2019
758d1ca
Merge pull request #1522 from mesg-foundation/feature/misc
antho1404 Nov 22, 2019
1669360
Merge branch 'dev' into feature/remove-mesg-token-2
NicolasMahe Nov 22, 2019
8d32f6e
Merge pull request #1514 from mesg-foundation/feature/remove-mesg-tok…
antho1404 Nov 22, 2019
ff8ccc5
Add comment for lint
Nov 22, 2019
4376a1c
Merge branch 'dev' into test/e2e-complex-service
Nov 22, 2019
c0f9435
update source code ipfs hash e2e services
NicolasMahe Nov 22, 2019
0d1427f
Merge pull request #1500 from mesg-foundation/test/e2e-complex-service
Nov 22, 2019
40e42a8
remove ErrTxInCache in execution sdk
NicolasMahe Nov 22, 2019
a16664f
Remove check on process in execution because process is not on cosmos…
NicolasMahe Nov 22, 2019
6d37b56
fix hash returned on error in runner backend handler function
NicolasMahe Nov 22, 2019
713b7a1
check for existing runner in runner sdk create
NicolasMahe Nov 22, 2019
a552e89
check for existing execution in execution sdk backend create function
NicolasMahe Nov 22, 2019
f17d871
Merge branch 'dev' into feature/execution-store
antho1404 Nov 22, 2019
adf0b71
fix lint
antho1404 Nov 22, 2019
bebd574
Merge pull request #1463 from mesg-foundation/feature/execution-store
antho1404 Nov 22, 2019
80ebbe4
Add changelog of v0.17.0
NicolasMahe Nov 26, 2019
547cd87
Merge pull request #1529 from mesg-foundation/changelog/v0.17.0
Nov 26, 2019
380fe3e
Merge branch 'master' into dev
Nov 26, 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
66 changes: 48 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,24 @@ version: 2
run_on_machine: &run_on_machine
machine:
docker_layer_caching: false
image: ubuntu-1604:201903-01

run_on_docker: &run_on_docker
docker:
- image: circleci/golang:1.13.0

restore_go_mod_cache: &restore_go_mod_cache
go_path: &go_path /tmp/go/path

restore_go_path: &restore_go_path
- restore_cache:
keys:
- go-mod-cache-{{ checksum "go.sum" }}
- go-path-{{ checksum "go.sum" }}

save_go_mod_cache: &save_go_mod_cache
save_go_path: &save_go_path
- save_cache:
key: go-mod-cache-{{ checksum "go.sum" }}
key: go-path-{{ checksum "go.sum" }}
paths:
- /go/pkg/mod
- *go_path

go_cache_dir: &go_cache_dir /tmp/go/cache

Expand All @@ -38,26 +41,44 @@ jobs:
"test":
<<: *run_on_docker
environment:
- GOPATH : *go_path
- GOCACHE: *go_cache_dir
steps:
- checkout
- setup_remote_docker
- run: docker swarm init
- <<: *restore_go_cache
- <<: *restore_go_mod_cache
- <<: *restore_go_path
- run: make test
- <<: *save_go_mod_cache
- <<: *save_go_path
- <<: *save_go_cache
- run: bash <(curl -s https://codecov.io/bash)

"lint":
docker:
- image: golangci/golangci-lint:v1.18
"test_e2e":
<<: *run_on_machine
environment:
- GOPATH : *go_path
- GOCACHE: *go_cache_dir
steps:
- checkout
- <<: *restore_go_mod_cache
- run:
name: "Install Go"
command: |
sudo rm -rf /usr/local/go
curl -sSL "https://dl.google.com/go/go1.13.linux-amd64.tar.gz" | sudo tar -xz -C /usr/local/
echo "export PATH=$PATH:/usr/local/go/bin" >> $BASH_ENV
- run: docker swarm init
- <<: *restore_go_cache
- <<: *restore_go_path
- run: make e2e
- <<: *save_go_path
- <<: *save_go_cache

"lint":
docker:
- image: golangci/golangci-lint:v1.21
steps:
- checkout
- run: make lint

"publish_docker_dev":
Expand Down Expand Up @@ -95,6 +116,10 @@ workflows:
ignore:
- "dev"
- "master"
- "test_e2e":
requires:
- "test"
- "lint"

release_dev:
jobs:
Expand All @@ -110,10 +135,13 @@ workflows:
ignore: /.*/
branches:
only: dev
- "publish_docker_dev":
- "test_e2e":
requires:
- "test"
- "lint"
- "publish_docker_dev":
requires:
- "test_e2e"

test_prod:
jobs:
Expand All @@ -129,6 +157,10 @@ workflows:
ignore: /.*/
branches:
only: master
- "test_e2e":
requires:
- "test"
- "lint"

release_prod:
jobs:
Expand All @@ -144,12 +176,10 @@ workflows:
only: /^v.*/
branches:
ignore: /.*/
- "publish_docker_prod":
- "test_e2e":
requires:
- "test"
- "lint"
filters:
tags:
only: /^v.*/
branches:
ignore: /.*/
- "publish_docker_prod":
requires:
- "test_e2e"
8 changes: 7 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,15 @@ linters:
- depguard
- dupl
- errcheck
- funlen
- gochecknoglobals
- gocognit
- goconst
- godox
- gosec
- interfacer
- lll
- prealloc
- funlen
- stylecheck
- wsl
- gochecknoinits
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# Changelog

## [v0.17.0](https://github.com/mesg-foundation/engine/releases/tag/v0.17.0)

#### Breaking Changes

- ([#1456](https://github.com/mesg-foundation/engine/pull/1456)) Update Instance SDK and create Runner SDK.
- ([#1459](https://github.com/mesg-foundation/engine/pull/1459)) Single cosmos account.
- ([#1463](https://github.com/mesg-foundation/engine/pull/1463)) Execution SDK on Cosmos.
- ([#1473](https://github.com/mesg-foundation/engine/pull/1473)) Use filter in list instance api.
- ([#1499](https://github.com/mesg-foundation/engine/pull/1499)) Improve use of proto Value and remove one of on UpdateExecutionRequest.
- ([#1513](https://github.com/mesg-foundation/engine/pull/1513)) Remove service env MESG_TOKEN.
- ([#1514](https://github.com/mesg-foundation/engine/pull/1514)) Remove service env MESG_TOKEN.

#### Added

- ([#1435](https://github.com/mesg-foundation/engine/pull/1435)) Prepare setup for running e2e tests.
- ([#1439](https://github.com/mesg-foundation/engine/pull/1439)) Setup up account test in E2E.
- ([#1448](https://github.com/mesg-foundation/engine/pull/1448)) Inject env MESG_INSTANCE_HASH in services.
- ([#1449](https://github.com/mesg-foundation/engine/pull/1449)) Add config log format validation.
- ([#1450](https://github.com/mesg-foundation/engine/pull/1450)) Add more explicit error on service create.
- ([#1451](https://github.com/mesg-foundation/engine/pull/1451)) Validate service nested object params.
- ([#1489](https://github.com/mesg-foundation/engine/pull/1489)) Add account mnemonic in config.
- ([#1500](https://github.com/mesg-foundation/engine/pull/1500)) Add e2e tests of a complex service.
- ([#1502](https://github.com/mesg-foundation/engine/pull/1502)) Add amino encoding functionality to proto Struct.
- ([#1503](https://github.com/mesg-foundation/engine/pull/1503)) Add small test to make sure hashstruct is sorting the map and struct keys.
- ([#1512](https://github.com/mesg-foundation/engine/pull/1512)) Inject runner hash in docker services.

#### Changed

- ([#1432](https://github.com/mesg-foundation/engine/pull/1432)) Bump gopkg.in/yaml.v2 from 2.2.2 to 2.2.4.
- ([#1437](https://github.com/mesg-foundation/engine/pull/1437)) Remove dep from lint and add dep in docker-dev in makefile.
- ([#1452](https://github.com/mesg-foundation/engine/pull/1452)) Add EnvHash to instance and calculate the hash based on it.
- ([#1461](https://github.com/mesg-foundation/engine/pull/1461)) Refactor instance sdk containers function.
- ([#1474](https://github.com/mesg-foundation/engine/pull/1474)) Update golangci-lint to 1.21.0.
- ([#1485](https://github.com/mesg-foundation/engine/pull/1485)) Increase gas limit tx.
- ([#1488](https://github.com/mesg-foundation/engine/pull/1488)) Refactor database.
- ([#1491](https://github.com/mesg-foundation/engine/pull/1491)) Filter instances on backend side.

#### Fixed

- ([#1462](https://github.com/mesg-foundation/engine/pull/1462)) Use sequence number from cosmos auth module.
- ([#1479](https://github.com/mesg-foundation/engine/pull/1479)) Return proper error code on e2e fail.
- ([#1480](https://github.com/mesg-foundation/engine/pull/1480)) Use a single cosmos codec.
- ([#1481](https://github.com/mesg-foundation/engine/pull/1481)) export MESG_PATH for e2e tests.
- ([#1483](https://github.com/mesg-foundation/engine/pull/1483)) Disable go test cache for e2e test.
- ([#1486](https://github.com/mesg-foundation/engine/pull/1486)) Fix 2 error messages.
- ([#1504](https://github.com/mesg-foundation/engine/pull/1504)) Fix hash length.
- ([#1510](https://github.com/mesg-foundation/engine/pull/1510)) Return not found error in backend get functions when resource doesn't exist.
- ([#1511](https://github.com/mesg-foundation/engine/pull/1511)) Fix bug when Value_NullValue is not taking into account.
- ([#1521](https://github.com/mesg-foundation/engine/pull/1521)) Fix filter in runner sdk and check if runner exists.
- ([#1522](https://github.com/mesg-foundation/engine/pull/1522)) Fix typos.

#### Removed

- ([#1468](https://github.com/mesg-foundation/engine/pull/1468)) Remove public error AlreadyExistsError from SDKs.
- ([#1469](https://github.com/mesg-foundation/engine/pull/1469)) Remove servicesdk interface.
- ([#1482](https://github.com/mesg-foundation/engine/pull/1482)) Remove runner db to use directly cosmos kvstore in runner sdk.
- ([#1508](https://github.com/mesg-foundation/engine/pull/1508)) Remove deprecated database files.
- ([#1516](https://github.com/mesg-foundation/engine/pull/1516)) Remove database/store package.

## [v0.16.0](https://github.com/mesg-foundation/engine/releases/tag/v0.16.0)

#### Breaking Changes
Expand Down
29 changes: 21 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.PHONY: all check-version docker-publish docker-publish-dev docker-tools dev lint dep build test mock protobuf changelog clean genesis
.PHONY: all e2e check-version docker-publish docker-publish-dev docker-tools dev dev-stop dev-start lint dep build test mock protobuf changelog clean genesis clean-build clean-docker

MAJOR_VERSION := $(shell echo $(version) | cut -d . -f 1)
MINOR_VERSION := $(shell echo $(version) | cut -d . -f 1-2)
PATCH_VERSION := $(version)

all: clean lint test build
all: clean lint build test e2e

check-version:
ifndef version
Expand All @@ -20,7 +20,7 @@ docker-build: check-version
-t mesg/engine:latest \
.

docker-dev:
docker-dev: dep
./scripts/build-engine.sh

docker-publish: docker-build
Expand All @@ -39,16 +39,25 @@ docker-tools:
dev: docker-dev
- ./scripts/dev.sh

dev-start: docker-dev
./scripts/dev.sh -q

dev-stop: docker-dev
./scripts/dev.sh stop

dep:
go mod download

build: check-version dep
go build -mod=readonly -o ./bin/engine -ldflags="-X 'github.com/mesg-foundation/engine/version.Version=$(version)'" core/main.go

e2e: docker-dev
./scripts/run-e2e.sh

test: dep
go test -mod=readonly -v -coverprofile=coverage.txt ./...
go test -short -mod=readonly -v -coverprofile=coverage.txt ./...

lint: dep
lint:
golangci-lint run

mock: docker-tools
Expand All @@ -60,12 +69,16 @@ protobuf: docker-tools
changelog:
./scripts/changelog.sh $(milestone)

clean:
- rm -rf bin/*
clean-build:
- rm -rf bin

clean-docker:
- docker image rm \
mesg/engine:$(version) \
mesg/engine:latest \
mesg/engine:dev 2>/dev/null

clean: clean-build clean-docker

genesis:
go run internal/tools/gen-genesis/main.go --path $(path) --chain-id $(chain-id) --validators $(validators)
go run internal/tools/gen-genesis/main.go --path $(path) --chain-id $(chain-id) --validators $(validators)
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,4 @@ Contributions are more than welcome. For more details on how to contribute, plea

If you have any questions, please reach out to us directly on [Discord](https://discordapp.com/invite/5tVTHJC).

[![0](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/0)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/0)
[![1](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/1)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/1)
[![2](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/2)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/2)
[![3](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/3)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/3)
[![4](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/4)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/4)
[![5](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/5)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/5)
[![6](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/6)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/6)
[![7](https://sourcerer.io/fame/antho1404/mesg-foundation/core/images/7)](https://sourcerer.io/fame/antho1404/mesg-foundation/core/links/7)
[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/0)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/0)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/1)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/1)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/2)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/2)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/3)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/3)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/4)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/4)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/5)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/5)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/6)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/6)[![](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/images/7)](https://sourcerer.io/fame/NicolasMahe/mesg-foundation/engine/links/7)
41 changes: 41 additions & 0 deletions codec/codec.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
package codec

import "github.com/tendermint/go-amino"

// Codec is a general codec where every data structs needs to register to
var Codec = amino.NewCodec()

// RegisterConcrete https://godoc.org/github.com/tendermint/go-amino#Codec.RegisterConcrete
func RegisterConcrete(o interface{}, name string, copts *amino.ConcreteOptions) {
Codec.RegisterConcrete(o, name, copts)
}

// RegisterInterface https://godoc.org/github.com/tendermint/go-amino#Codec.RegisterInterface
func RegisterInterface(ptr interface{}, iopts *amino.InterfaceOptions) {
Codec.RegisterInterface(ptr, iopts)
}

// MustMarshalJSON https://godoc.org/github.com/tendermint/go-amino#Codec.MustMarshalJSON
func MustMarshalJSON(o interface{}) []byte {
return Codec.MustMarshalJSON(o)
}

// MarshalJSON https://godoc.org/github.com/tendermint/go-amino#Codec.MarshalJSON
func MarshalJSON(o interface{}) ([]byte, error) {
return Codec.MarshalJSON(o)
}

// UnmarshalJSON https://godoc.org/github.com/tendermint/go-amino#Codec.UnmarshalJSON
func UnmarshalJSON(bz []byte, ptr interface{}) error {
return Codec.UnmarshalJSON(bz, ptr)
}

// UnmarshalBinaryBare https://godoc.org/github.com/tendermint/go-amino#Codec.UnmarshalBinaryBare
func UnmarshalBinaryBare(bz []byte, ptr interface{}) error {
return Codec.UnmarshalBinaryBare(bz, ptr)
}

// MarshalBinaryBare https://godoc.org/github.com/tendermint/go-amino#Codec.MarshalBinaryBare
func MarshalBinaryBare(o interface{}) ([]byte, error) {
return Codec.MarshalBinaryBare(o)
}
Loading