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

builder/multiarch #2480

Draft
wants to merge 248 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
0b4c7e9
rename bootnode yaml files
rjonczy Feb 16, 2023
0751a02
fix: peer chain size
mfrankovi Feb 20, 2023
276a983
chore: fix segfault on network test
MatusKysel Feb 21, 2023
368167f
Merge pull request #2336 from Taraxa-project/peer_chain_size
mfrankovi Feb 22, 2023
f09752b
chore: set min. delegationt o 1k TARA and starting validators delegat…
JakubFornadel Feb 23, 2023
7afb12a
Merge pull request #2341 from Taraxa-project/adjust-devnet-config
JakubFornadel Feb 23, 2023
821f96d
chore: set default delegation for our validators to 100k
JakubFornadel Feb 24, 2023
1a09cc9
Merge branch 'develop' into adjust-devnet-config
JakubFornadel Feb 24, 2023
e364f9c
Merge pull request #2342 from Taraxa-project/adjust-devnet-config
JakubFornadel Feb 24, 2023
49d1747
ignore helm stuff
rjonczy Feb 22, 2023
7abd8c3
wip: enable to deploy different images
rjonczy Feb 22, 2023
d7c1b0f
fix yaml to json
rjonczy Feb 22, 2023
445d78a
added taraxa-indexer
rjonczy Feb 24, 2023
6331e5b
fix indexer image keys
rjonczy Feb 24, 2023
dd8afee
ws
rjonczy Feb 24, 2023
193a08c
temp chage of tag
rjonczy Feb 24, 2023
114a395
enable indexer
rjonczy Feb 24, 2023
c5461dc
fix volume name
rjonczy Feb 24, 2023
d085348
chore: fix incorrect error log in rewards distribution
mfrankovi Feb 26, 2023
9971877
Merge pull request #2345 from Taraxa-project/fix_err_log
mfrankovi Feb 27, 2023
c3816ec
Merge branch 'develop' into network-test-segfault
MatusKysel Feb 27, 2023
4f6d9ac
deploy specific version
rjonczy Feb 27, 2023
2460587
Merge pull request #2337 from Taraxa-project/network-test-segfault
MatusKysel Feb 27, 2023
eb4a2ea
changed tag of indexer
rjonczy Feb 27, 2023
4934191
changed indexer image
rjonczy Feb 27, 2023
14d871a
fix args for taraxa-indexer
rjonczy Feb 27, 2023
5de622a
set nodeSelector for nodes in prnet
rjonczy Feb 27, 2023
a11f0b1
added ingress for indexer
rjonczy Feb 27, 2023
7b9173b
fix name for indexer
rjonczy Feb 27, 2023
a24e9d5
add annotation for indexer ingress
rjonczy Feb 27, 2023
10636d8
add missing port
rjonczy Feb 27, 2023
6d1393b
fix port
rjonczy Feb 27, 2023
208dbfc
added indexer to github comment
rjonczy Feb 28, 2023
c4275a2
removed temp tag
rjonczy Feb 28, 2023
ee164e3
remove tag from indexer on ci pipeline
rjonczy Feb 28, 2023
1fa0075
fix pullPolicy key
rjonczy Feb 28, 2023
6a5b406
added affinity-mode as annotation
rjonczy Feb 28, 2023
fd29815
move part of .gitignore helm chart folder
rjonczy Feb 28, 2023
9d94897
Merge branch 'develop' into chart/v0.3.3
rjonczy Feb 28, 2023
9edea9f
Merge pull request #2344 from Taraxa-project/chart/v0.3.3
rjonczy Feb 28, 2023
10f571b
chore: use old version of conan
MatusKysel Feb 28, 2023
fc9bc32
Merge pull request #2350 from Taraxa-project/fix-buidling-develop
MatusKysel Feb 28, 2023
6106192
chore: update dependencies
MatusKysel Feb 28, 2023
67821ed
Merge pull request #2354 from Taraxa-project/update-dependencies
MatusKysel Mar 1, 2023
1c75bc7
chore: vote sync error log remove
mfrankovi Feb 26, 2023
0fd99c5
Merge pull request #2346 from Taraxa-project/vote_sync_err_log
mfrankovi Mar 1, 2023
c037d49
chore: add ValidatorExists flag into Undelegation struct returned fro…
JakubFornadel Feb 28, 2023
9b91d3b
Merge pull request #2351 from Taraxa-project/issue-2347/fix_get_undel…
JakubFornadel Mar 1, 2023
bbd34ee
fix: update evm submodule with correct address in dpos_contract logs
kstdl Mar 1, 2023
d42876a
chore: adds cors config for indexer
rattrap Mar 2, 2023
db82bd0
Merge pull request #2362 from Taraxa-project/indexer-cors-config
rattrap Mar 2, 2023
2732aac
chore: fix transfer_lot_of_blocks test
MatusKysel Mar 2, 2023
ceeea7d
chore: refactor transaction exceptions
MatusKysel Mar 3, 2023
d428742
Merge pull request #2365 from Taraxa-project/fix-network-test
MatusKysel Mar 3, 2023
6622148
Merge branch 'develop' into fix_dpos_logs_address
kstdl Mar 3, 2023
6a71b26
Merge branch 'develop' into transaction-exception
MatusKysel Mar 3, 2023
2949d29
Merge pull request #2361 from Taraxa-project/fix_dpos_logs_address
kstdl Mar 3, 2023
54dbb97
feat: add transactions hashes to newHead event
kstdl Mar 1, 2023
af0dc41
feat: add taraxa_getChainStats moethod to RPC
kstdl Mar 1, 2023
8feaa05
Merge pull request #2356 from Taraxa-project/rpc_improvements
kstdl Mar 3, 2023
fcc872f
Merge branch 'develop' into transaction-exception
MatusKysel Mar 3, 2023
9be004a
Merge pull request #2366 from Taraxa-project/transaction-exception
MatusKysel Mar 3, 2023
d32f107
added changelog entry for chart
rjonczy Mar 6, 2023
b1472a9
changed db_path to data_dir
rjonczy Mar 6, 2023
18dc3ea
bump chart version
rjonczy Mar 6, 2023
2f51c9e
updated changelog for helm-chart
rjonczy Mar 6, 2023
8fff258
Merge pull request #2371 from Taraxa-project/chart/v0.3.5
rjonczy Mar 6, 2023
334177e
chore: implement claimAllRewards function in dpos contract
JakubFornadel Mar 2, 2023
a949579
chore: update evm
JakubFornadel Mar 6, 2023
01abfbb
chore: update evm
JakubFornadel Mar 6, 2023
fa699dd
Merge pull request #2364 from Taraxa-project/issue-2358/implement_cla…
JakubFornadel Mar 7, 2023
3a3b45e
chore: update do cpp-check 2.10
MatusKysel Mar 6, 2023
168fb1b
chore: cppcheck useStlAlgorithm
MatusKysel Mar 6, 2023
b753b08
chore: cppcheck remove cstyled casts
MatusKysel Mar 6, 2023
c28e4b7
Merge pull request #2368 from Taraxa-project/cpp-check
MatusKysel Mar 7, 2023
6a5d35e
fix: missing tip block on tips selection
mfrankovi Mar 6, 2023
5e66cc1
Merge pull request #2367 from Taraxa-project/tip_block_missing
mfrankovi Mar 7, 2023
a301284
chore: random light node prune interval
mfrankovi Mar 7, 2023
6740aa8
remove disabled test
MatusKysel Mar 8, 2023
45d644a
Merge pull request #2373 from Taraxa-project/light_node_interval
mfrankovi Mar 8, 2023
996da35
chore: remove HF functionality
MatusKysel Mar 8, 2023
4fb94ad
Merge branch 'develop' into remove-test
MatusKysel Mar 8, 2023
1cd08a7
Merge pull request #2375 from Taraxa-project/remove-test
MatusKysel Mar 8, 2023
73545ab
Merge branch 'develop' into remove-hf
MatusKysel Mar 8, 2023
1c75893
Merge pull request #2376 from Taraxa-project/remove-hf
MatusKysel Mar 8, 2023
61325a8
chore: apart from previous period cert votes and previous round next …
JakubFornadel Mar 7, 2023
b561223
fix: process votes bundle even if some of the votes were already proc…
JakubFornadel Mar 7, 2023
9cff2b1
Merge pull request #2374 from Taraxa-project/issue-2372/fix_votes_syn…
JakubFornadel Mar 9, 2023
ff83ae2
Empty-Commit
rjonczy Mar 9, 2023
b582cee
Merge pull request #2377 from Taraxa-project/chore/test-of-merge-queu…
rjonczy Mar 9, 2023
3708c64
chore: optimize prune
mfrankovi Mar 9, 2023
c7e0b90
Merge pull request #2378 from Taraxa-project/prune_opt
mfrankovi Mar 9, 2023
9a4f4af
feat: remove duplicated columns from DB
MatusKysel Mar 9, 2023
70f0be7
chore: asynchronous prune of state_db
mfrankovi Mar 10, 2023
6b44faa
Merge pull request #2380 from Taraxa-project/storage-improvements
MatusKysel Mar 10, 2023
672388c
chore: remove unrelevant test + other code related to this test
JakubFornadel Mar 7, 2023
2426ddb
chore: wait 100ms before going into second finishing steo
JakubFornadel Mar 7, 2023
420d012
refactor: rename variables and remove unsued code
JakubFornadel Mar 7, 2023
d4c163e
chore: trigger exponentail backoff only if node is too far behind the…
JakubFornadel Mar 9, 2023
5dc72ce
chore: fix round_determine_from_next_votes test
JakubFornadel Mar 10, 2023
52ff614
Merge pull request #2379 from Taraxa-project/issue-2318/fix_exponenti…
JakubFornadel Mar 10, 2023
63dd433
Merge pull request #2381 from Taraxa-project/async_prune
mfrankovi Mar 13, 2023
8cf4043
fix: build on arm macs that was broken after update of cppcheck
kstdl Mar 14, 2023
eadfc89
chore: fix building instructions
MatusKysel Mar 14, 2023
0f0b68a
Merge pull request #2383 from Taraxa-project/fix-building-instructions
MatusKysel Mar 14, 2023
ff589b7
chore: optimize rewards votes handling
mfrankovi Feb 28, 2023
341a0c2
Merge pull request #2352 from Taraxa-project/syncing_optimization
mfrankovi Mar 15, 2023
b4a0a60
feat: implement eip-1898
MatusKysel Mar 16, 2023
35ffa41
fix: do not broadcast votes that were not processed + request pbft sy…
JakubFornadel Mar 16, 2023
5aac615
fix: request votes syncing only if packet sender == vote author
JakubFornadel Mar 16, 2023
0b76a36
Merge pull request #2386 from Taraxa-project/fix_peer_chainsize
JakubFornadel Mar 16, 2023
a7da136
chore: introduce HACK for json-rpc function params overloading
MatusKysel Mar 16, 2023
293a7a9
chore: disable gen_rpc_stubs
MatusKysel Mar 16, 2023
2245bc8
chore: modify rest of the API calls to accept int for block num
MatusKysel Mar 16, 2023
217aaf7
Merge branch 'develop' into eip-1898
MatusKysel Mar 16, 2023
80b8f12
Merge pull request #2387 from Taraxa-project/eip-1898
MatusKysel Mar 16, 2023
8ad4b47
remove rpc nodes
rjonczy Mar 17, 2023
84c1424
chore: fix replacing nodes from table
MatusKysel Mar 18, 2023
1d2079e
Merge pull request #2392 from Taraxa-project/chore/remove-rpc-from-bo…
rjonczy Mar 19, 2023
f9cbfdb
fix processVote return value check
JakubFornadel Mar 20, 2023
a1e84ed
fix: cpp-check warnings on build
kstdl Mar 21, 2023
9fcbc67
Merge pull request #2382 from Taraxa-project/fix_mac_build
kstdl Mar 21, 2023
dacb4a6
chore: fix rebuilding db columns
MatusKysel Mar 21, 2023
aa09ea6
Merge pull request #2399 from Taraxa-project/fix-votes-processing
JakubFornadel Mar 22, 2023
6325649
Merge pull request #2403 from Taraxa-project/fix_cppcheck
kstdl Mar 22, 2023
42991cd
fix: RLP InvalidEncodingSize inherits from RLPException
kstdl Mar 22, 2023
d7f693d
fix: formating for clang-format
kstdl Mar 22, 2023
089e9ae
Merge pull request #2406 from Taraxa-project/fix_rlp_exception
kstdl Mar 22, 2023
9ed0039
Merge pull request #2405 from Taraxa-project/fix-db-column-rebuild
MatusKysel Mar 22, 2023
f722213
added kubemonkey labels
rjonczy Mar 23, 2023
caee001
parametrize kubemonkey
rjonczy Mar 23, 2023
dd23f4b
fix keys
rjonczy Mar 23, 2023
680c223
updated changelod
rjonczy Mar 23, 2023
73883c0
scrape from taraxa-indexer
rjonczy Mar 23, 2023
142b2f6
added quotes to labels' values
rjonczy Mar 23, 2023
c52667e
Merge pull request #2411 from Taraxa-project/chart/v0.3.X
rjonczy Mar 23, 2023
3409596
chore: adds transaction generating script
rattrap Mar 16, 2023
49c13e3
Merge pull request #2415 from Taraxa-project/chart/v0.3.7
rattrap Mar 23, 2023
ee499ca
Merge branch 'develop' into chart/v0.3.8
rjonczy Mar 24, 2023
931fde2
bump version
rjonczy Mar 24, 2023
210d844
Merge pull request #2412 from Taraxa-project/chart/v0.3.8
rjonczy Mar 24, 2023
566ae97
chore: update evm
MatusKysel Mar 28, 2023
6a05b32
Merge pull request #2418 from Taraxa-project/update-evm
MatusKysel Mar 28, 2023
ec6516a
do not use @channel in slack notifications
rjonczy Mar 29, 2023
45e0ad4
rename files
rjonczy Mar 29, 2023
95c2cc7
move bootnode loadbalancer service to one file
rjonczy Mar 29, 2023
1c9f233
move nodePort and loadBalancer for rpc node into 1 files
rjonczy Mar 29, 2023
711d5e8
port-check cm not used
rjonczy Mar 29, 2023
b1be529
rename transaction generation file name manifests
rjonczy Mar 29, 2023
23d07ed
added configmap suffix
rjonczy Mar 29, 2023
53cbc90
rename configmaps
rjonczy Mar 29, 2023
2b5cac1
fix with right chain-in values in comment
rjonczy Mar 29, 2023
03adff1
added consensusLight node
rjonczy Mar 29, 2023
4000279
fix consensusnodeLight statefeulset
rjonczy Mar 29, 2023
7a7e8ca
update changelog
rjonczy Mar 30, 2023
bbc82cb
rename configmap for light node
rjonczy Mar 30, 2023
73d7d40
env vars for existing secrets
rjonczy Mar 30, 2023
3583b14
add default keys for consensusLight node
rjonczy Mar 30, 2023
809ba74
Merge pull request #2421 from Taraxa-project/chart/v0.3.9
rjonczy Apr 1, 2023
455347e
Merge branch 'develop' into master-merge
MatusKysel Apr 5, 2023
fee3edc
Merge pull request #2434 from Taraxa-project/master-merge
JakubFornadel Apr 5, 2023
bb3017e
chore: minor improvements + fixes
JakubFornadel Apr 5, 2023
656b5a3
Merge branch 'develop' into fix-peer-replacement
MatusKysel Apr 6, 2023
89cebc4
fix: save own votes and gossip them in case network get stalled
JakubFornadel Apr 6, 2023
6570426
Merge pull request #2394 from Taraxa-project/fix-peer-replacement
MatusKysel Apr 7, 2023
74944cd
use rebroadcast flag in onNewPbftVote method
JakubFornadel Apr 7, 2023
10dae0b
Merge pull request #2436 from Taraxa-project/exponential_backoff
JakubFornadel Apr 10, 2023
e372a56
chore: adjust mac building compilation
JakubFornadel Apr 10, 2023
aa55889
Merge pull request #2439 from Taraxa-project/update_mac_build_doc
JakubFornadel Apr 10, 2023
e4cd97c
chore: correct check for duplicate reward votes
MatusKysel Apr 12, 2023
7c599ad
chore: fix logs
MatusKysel Apr 12, 2023
1bf6dea
fix: add revert reason to execution error
kstdl Apr 6, 2023
08132e6
Merge pull request #2437 from Taraxa-project/add_revert_reason
kstdl Apr 12, 2023
1419eb2
Merge branch 'develop' into pbft-validation
MatusKysel Apr 12, 2023
3762f8a
fix: network_test.transfer_lot_of_blocks
kstdl Apr 12, 2023
e6d28fd
Merge pull request #2447 from Taraxa-project/fix_network_test
JakubFornadel Apr 12, 2023
f0b8d65
chore: change name of the function
MatusKysel Apr 13, 2023
c8ded4e
Merge branch 'develop' into pbft-validation
MatusKysel Apr 13, 2023
903ec6d
fix: gas estimations for transactions with internal calls
kstdl Apr 11, 2023
396bc71
Merge pull request #2441 from Taraxa-project/fix_gas_estimation
kstdl Apr 13, 2023
c9527c0
Merge pull request #2446 from Taraxa-project/pbft-validation
MatusKysel Apr 13, 2023
8d85640
feat: implement db migrations
kstdl Apr 4, 2023
377bf9a
feat: add TransactionHashes migration
kstdl Apr 4, 2023
1a0b7d8
chore: resolve PR discussions
kstdl Apr 13, 2023
1b99150
fix: add batch to migration base class
kstdl Apr 13, 2023
bb4fd3a
fix: remove conan bincrafters repo and add jsonrpccpp with external_p…
kstdl Apr 17, 2023
6d40892
Merge pull request #2453 from Taraxa-project/fix_build
MatusKysel Apr 17, 2023
480b10d
chore: remove prove() code that did nothing
MatusKysel Apr 14, 2023
bb8a16e
chore: optimize copies on state prune
MatusKysel Apr 14, 2023
ffd22a1
chore: remove old structs
MatusKysel Apr 14, 2023
f180a71
chore: remove old cmake files
MatusKysel Apr 17, 2023
645d7e4
Merge pull request #2431 from Taraxa-project/migrations
kstdl Apr 17, 2023
b58eb48
Merge pull request #2449 from Taraxa-project/remove-old-code
MatusKysel Apr 17, 2023
e295ed3
chore: prune state_db manually
mfrankovi Apr 17, 2023
826688e
Merge pull request #2452 from Taraxa-project/prune_on_restart
github-merge-queue[bot] Apr 18, 2023
bda00c5
feat: change how we process db versions changes
kstdl Apr 18, 2023
3a985ec
fix: update db version only if rebuild_db or all migrations was applied
kstdl Apr 18, 2023
8cf4149
Merge pull request #2455 from Taraxa-project/db_versions
github-merge-queue[bot] Apr 18, 2023
f0a8f9f
do not regenerate genesis
rjonczy Apr 19, 2023
1feb182
Merge pull request #2456 from Taraxa-project/fix/do-not-regenerate-ge…
rjonczy Apr 19, 2023
e78e519
chore: check state root on syncing
mfrankovi Apr 20, 2023
9b17562
fix: use of all passed gas on reverts. add check to revert_reason test
kstdl Apr 21, 2023
34f8408
Merge pull request #2457 from Taraxa-project/sync_state_root_check
mfrankovi Apr 21, 2023
9bfa7f2
Merge branch 'develop' into fix_reverts_gas_used
kstdl Apr 21, 2023
f08494b
Merge pull request #2458 from Taraxa-project/fix_reverts_gas_used
kstdl Apr 21, 2023
d557974
fix: setting reward votes period
mfrankovi Apr 24, 2023
37166cc
Merge pull request #2459 from Taraxa-project/rew_votes_init
mfrankovi Apr 25, 2023
011f27e
empty commit to trigger ci
rjonczy Apr 27, 2023
0f6abd5
feat: implement trace_replayTransaction
MatusKysel Apr 27, 2023
c7ecdb9
feat: add support for tracking blocks
MatusKysel Apr 28, 2023
72e4756
chore: add check for block 0
MatusKysel May 2, 2023
d92796a
chore: simplify code
MatusKysel May 2, 2023
1ec921d
chore: update evm
MatusKysel May 3, 2023
63e07e3
Merge pull request #2462 from Taraxa-project/improve-tracing
MatusKysel May 3, 2023
db9c16c
chore: improve prune
mfrankovi May 3, 2023
38821db
Merge pull request #2465 from Taraxa-project/prune_replace_column
mfrankovi May 4, 2023
6728c0c
feat: parallel execution of state pruing
MatusKysel May 5, 2023
2959dcb
chore: update evm repo
MatusKysel May 11, 2023
ade5e8f
Merge pull request #2468 from Taraxa-project/parallel-pruning
MatusKysel May 11, 2023
985f7dc
refactor: rewards stats passing
kstdl Apr 28, 2023
363dc8e
refector: move process rewards stats functionality to separate class
kstdl May 5, 2023
184a7a2
feat: add option to change rewards distribution frequency with hardfork
kstdl May 9, 2023
a2bfdee
feat: clean LOG.old* files on db start
MatusKysel May 12, 2023
21ef2c7
Merge pull request #2463 from Taraxa-project/rewards_stats
kstdl May 12, 2023
d964baf
chore: increase timers for more stable test runs
MatusKysel May 12, 2023
4bf032b
chore: rework how Host is destroyed
MatusKysel May 15, 2023
02765ac
chore: transaction pool overflow improvements
mfrankovi May 10, 2023
45ae577
Merge pull request #2473 from Taraxa-project/trx_overflow_improvement
mfrankovi May 15, 2023
3966cf3
Merge branch 'develop' into stabilize-test
MatusKysel May 15, 2023
dbc828b
Merge pull request #2476 from Taraxa-project/stabilize-test
MatusKysel May 15, 2023
09a5da1
chore: improve sync-gossip transition
mfrankovi Apr 12, 2023
e6133da
Merge pull request #2448 from Taraxa-project/sync_gossip_transition
mfrankovi May 16, 2023
0097aea
Merge branch 'develop' into cleaing-old-files
MatusKysel May 16, 2023
ef9eb47
Merge pull request #2475 from Taraxa-project/cleaing-old-files
MatusKysel May 16, 2023
73e281b
improvement to build process
rjonczy May 16, 2023
2247c91
fix to docker tags
rjonczy May 16, 2023
dfbb266
couple fixes
rjonczy May 16, 2023
e94057c
changed based image of builder
rjonczy May 16, 2023
057374c
Merge pull request #2479 from Taraxa-project/builder/improvements-to-…
rjonczy May 17, 2023
b9dccdd
build multiarch builder
rjonczy May 17, 2023
2a28301
fix
rjonczy May 17, 2023
1343fea
fix
rjonczy May 17, 2023
d3b57e6
fix
rjonczy May 17, 2023
e78d548
fix ident
rjonczy May 17, 2023
686f8e9
fix
rjonczy May 17, 2023
9691ab0
f
rjonczy May 17, 2023
7fd2240
debug
rjonczy May 17, 2023
f33c8b2
added builder
rjonczy May 17, 2023
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
154 changes: 130 additions & 24 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ orbs:
github-release: izumin5210/[email protected]
gcp-gcr: circleci/[email protected]
gcp-cli: circleci/[email protected]
docker-cache: cci-x/[email protected]
helm-release: taraxa/[email protected]

commands:
Expand Down Expand Up @@ -268,7 +267,11 @@ commands:
--set consensusnode.persistence.enabled=true \
--set node.serviceMonitor.enabled=true \
--set bootnode.serviceMonitor.enabled=false \
--set consensusnode.serviceMonitor.enabled=true
--set consensusnode.serviceMonitor.enabled=true \
--set node.nodeSelector."cloud\\.google\\.com/gke-nodepool"=blockchain-prnet \
--set bootnode.nodeSelector."cloud\\.google\\.com/gke-nodepool"=blockchain-prnet \
--set consensusnode.nodeSelector."cloud\\.google\\.com/gke-nodepool"=blockchain-prnet \
--set node.indexer.enabled=true
fi

cleanup_prnet_chart:
Expand Down Expand Up @@ -324,39 +327,57 @@ commands:
echo "export HELM_TEST_NAME=pr-${PR}" >> $BASH_ENV
echo "export DOCKER_BRANCH_TAG=$(./scripts/docker_tag_from_branch.sh $CIRCLE_BRANCH)" >> $BASH_ENV
echo "export GCP_IMAGE=gcr.io/${GOOGLE_PROJECT_ID}/${IMAGE}" >> $BASH_ENV
- run:
name: Clean old Images if disk available is lower than 15G
command: |
for time in 120 96 72 48 24 12 6 3 1 0
do
if [ $(df /var/lib/docker --block-size=1073741824 --output=avail|grep -v Avail) -lt 15 ]; then
df /var/lib/docker --block-size=1073741824 --output=avail
echo "Pruning images older than ${time}h"
docker image prune -a --force --filter "until=${time}h"
fi
done

build:
description: Builds docker images
description: Builds docker image (${IMAGE})
steps:
- run:
name: Build builder image
command: |
docker build -t ${IMAGE}:${VERSION} --target builder .
- run:
name: Checkout Submodules
command: |
git submodule sync
git submodule update --init --recursive --jobs 8
- run:
name: Build ctest image
name: Compile and build binaries
command: |
docker build -t ${IMAGE}-ctest:${VERSION} --target build .
- run:
name: Build taraxad image
name: Build final Docker image (${IMAGE})
command: |
docker build -t ${IMAGE}:${VERSION} .

build_builder:
description: Builds docker image
steps:
- run:
name: Create builder
command: |
docker buildx create --name taraxa-builder --use --bootstrap

- run:
name: Build builder image (multiarch)
command: |
# docker build -t ${IMAGE}:${VERSION} -f builder.Dockerfile .
docker buildx build \
--output=type=local,dest=/tmp \
--platform linux/arm64,linux/amd64 \
--tag taraxa/${IMAGE}:123 \
-f builder.Dockerfile .

tag_builder:
description: Tags docker images (builder)
steps:
- run:
name: Tag images
command: |

if [[ ${CIRCLE_TAG} != "" ]];then
TAG=$(echo ${CIRCLE_TAG} | sed 's/^builder-//g')
docker tag ${IMAGE}:${VERSION} taraxa/${IMAGE}:${TAG}
docker tag ${IMAGE}:${VERSION} taraxa/${IMAGE}:latest
else
docker tag ${IMAGE}:${VERSION} taraxa/${IMAGE}:${VERSION}
fi

tag:
description: Tags docker images
steps:
Expand Down Expand Up @@ -458,8 +479,16 @@ commands:
- run:
name: Push Images
command: |
docker push taraxa/${IMAGE}:${CIRCLE_TAG}
docker push taraxa/${IMAGE}:latest

if [[ ${CIRCLE_TAG} != "" ]];then
TAG=$(echo ${CIRCLE_TAG} | sed 's/^builder-//g')
docker push taraxa/${IMAGE}:${TAG}
docker push taraxa/${IMAGE}:latest
else
docker push taraxa/${IMAGE}:${VERSION}
fi



test:
description: Run tests
Expand Down Expand Up @@ -568,6 +597,8 @@ jobs:
https://explorer-pr-<<pipeline.parameters.pr_number>>.prnet.taraxa.io </a></td></tr> \
<tr><td>RPC</td><td><a href=https://rpc-pr-<<pipeline.parameters.pr_number>>.prnet.taraxa.io >\
https://rpc-pr-<<pipeline.parameters.pr_number>>.prnet.taraxa.io </a></td></tr>\
<tr><td>Indexer</td><td><a href=https://indexer-pr-<<pipeline.parameters.pr_number>>.prnet.taraxa.io >\
https://indexer-pr-<<pipeline.parameters.pr_number>>.prnet.taraxa.io </a></td></tr>\
</table>\
<h4><p>Boot Nodes</p></h4>\
<table>\
Expand Down Expand Up @@ -685,6 +716,34 @@ jobs:
- store_artifacts:
path: tmp_docker

build-builder-docker-image:
environment:
- IMAGE: taraxa-builder
- CONAN_REVISIONS_ENABLED: 1
machine:
image: ubuntu-2204:2022.04.2
docker_layer_caching: true
resource_class: large
steps:
- checkout
- prepare
- run:
name: List images restored from DLC
command: |
docker images
- build_builder
- run:
name: List images to be saved in DLC
command: |
docker images
- run:
name: Show layers of taraxa-builder image
command: |
docker history taraxa-builder:${VERSION}
# - tag_builder
# - push_dockerhub


release-docker-image:
environment:
- IMAGE: taraxa-node
Expand Down Expand Up @@ -989,6 +1048,47 @@ workflows:
- build-linux
- build-mac


# ### workflows for builder image ### #
# run this workflow for specific branches 'builder/*'
build-builder-docker-image:
when:
and:
- not: << pipeline.parameters.deploy_prnet >>
- not: << pipeline.parameters.redeploy_prnet >>
- not: << pipeline.parameters.cleanup_prnet >>
jobs:
- build-builder-docker-image:
filters:
branches:
only:
- /^builder\/.*/
- /^chore\/builder-.*/
- /^fix\/builder-.*/
- /^feature\/builder-.*/
context:
- DOCKERHUB

# run this workflow for specific tags 'builder/*'
release-builder-docker-image:
when:
and:
- not: << pipeline.parameters.deploy_prnet >>
- not: << pipeline.parameters.redeploy_prnet >>
- not: << pipeline.parameters.cleanup_prnet >>
jobs:
- build-builder-docker-image:
filters:
branches:
ignore: /.*/
tags:
only: /^builder-v\d+.\d+.\d+/
context:
- DOCKERHUB
# ### workflows for builder image ### #


# ### workflows for taraxa-node image ### #
# run this workflow for all branches apart those reserved for chart
build-docker-image:
when:
Expand All @@ -1005,6 +1105,10 @@ workflows:
- /^chore\/chart-.*/
- /^fix\/chart-.*/
- /^feature\/chart-.*/
- /^builder\/.*/
- /^chore\/builder-.*/
- /^fix\/builder-.*/
- /^feature\/builder-.*/
context:
- TARAXA
- GCP
Expand All @@ -1029,7 +1133,9 @@ workflows:
- K8S
- GCR
- DOCKERHUB
# ### workflows for taraxa-node image ### #

# ### workflows for taraxa-node helm chart ### #
# run this workflow for branches specified below
build-helm-chart:
when:
Expand All @@ -1055,7 +1161,6 @@ workflows:
- /^fix\/chart-.*/
- /^feature\/chart-.*/


# run this workflow for tags, like chart-vX.Y.Z
release-helm-chart:
jobs:
Expand All @@ -1071,4 +1176,5 @@ workflows:
branches:
ignore: /.*/
tags:
only: /^chart-v\d+.\d+.\d+/
only: /^chart-v\d+.\d+.\d+/
# ### workflows for taraxa-node helm chart ### #
19 changes: 16 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ set(TARAXA_NET_VERSION 1)
set(TARAXA_DB_MAJOR_VERSION 1)
# Minor version should be modified when changes to the database are made in the tables that can be rebuilt from the
# basic tables
set(TARAXA_DB_MINOR_VERSION 0)
set(TARAXA_DB_MINOR_VERSION 1)

# Defines Taraxa library target.
project(taraxa-node VERSION ${TARAXA_VERSION})
Expand Down Expand Up @@ -48,6 +48,7 @@ endif()
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_DEBUG "-g")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O2")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")

# Enable LTO
option(TARAXA_ENABLE_LTO "Build taraxad with LTO (ON or OFF)" OFF)
Expand Down Expand Up @@ -161,8 +162,15 @@ else()

include(${CMAKE_BINARY_DIR}/conan.cmake)

conan_cmake_run(CONANFILE conanfile.py BUILD_TYPE ${CMAKE_BUILD_TYPE} BUILD missing
BASIC_SETUP CMAKE_TARGETS KEEP_RPATHS PROFILE ${CONAN_PROFILE})
conan_cmake_run(CONANFILE conanfile.py
BUILD_TYPE ${CMAKE_BUILD_TYPE}
CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE}
BASIC_SETUP
CMAKE_TARGETS
KEEP_RPATHS
PROFILE ${CONAN_PROFILE}
BUILD missing
)
set(CONAN_EXPORTED true CACHE BOOL "Is conan already run on the project")
endif()

Expand Down Expand Up @@ -203,6 +211,11 @@ include(CMakeModules/git_info.cmake)
find_package(GMP)
find_package(MPFR)

include(ExternalProject)
# use JSONCPP library from conan for JSONRPCCPP build
set(JSONCPP_INCLUDE_DIR ${CONAN_INCLUDE_DIRS_JSONCPP})
include(ProjectJSONRPCCPP)

# Add sub-directories cmakes
add_subdirectory(submodules)
add_subdirectory(libraries)
Expand Down
34 changes: 0 additions & 34 deletions CMakeModules/EthDependencies.cmake

This file was deleted.

61 changes: 0 additions & 61 deletions CMakeModules/EthExecutableHelper.cmake

This file was deleted.

Loading