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 3.17.0 #1707

Merged
merged 374 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
374 commits
Select commit Hold shift + click to select a range
85807fb
Merge remote-tracking branch 'origin/v3.17.0' into enhancement/SKALED…
dimalit Jun 6, 2023
232469f
1506 dont wait for consensus to startAll
olehnikolaiev Jun 6, 2023
7d36e79
1506 dont wait for consensus to startAll
olehnikolaiev Jun 6, 2023
29800d0
Update CODEOWNERS
DmytroNazarenko Jun 7, 2023
c43bd03
Merge pull request #1539 from skalenetwork/enhancement/code-owners-ch…
DmytroNazarenko Jun 7, 2023
abf65b0
SKALED-1425 Temporarily use RelWithDebInfo build
dimalit Jun 7, 2023
d4b8ab5
SKALED-1425 RelWithDebInfo
dimalit Jun 7, 2023
f2e5fa4
SKALED-1425 Disable warnings for sanitizer
dimalit Jun 8, 2023
f55c730
SKALED-1425 More logging in consensus
dimalit Jun 9, 2023
c5afda8
SKALED-1425 Use Release build
dimalit Jun 9, 2023
9ca2dbc
Use old consenus and Debug build to see problem location
dimalit Jun 12, 2023
81114a4
Use DEBUG=1 in deps
dimalit Jun 12, 2023
5d3132c
1425 fix snapshot agent init
olehnikolaiev Jun 13, 2023
a5a04cb
1450 create diffPath after cleanup if needed
olehnikolaiev Jun 13, 2023
5e4c572
Merge pull request #1541 from skalenetwork/bug/1450-diffs-dir-doesnt-…
DmytroNazarenko Jun 13, 2023
c5f59a2
Merge branch 'v3.17.0' into enhancement/SKALED-1425-threading-rules
olehnikolaiev Jun 14, 2023
5ab13c2
1425 add more consensus logs
olehnikolaiev Jun 15, 2023
1911114
update consensus
olehnikolaiev Jun 16, 2023
6c19210
Merge pull request #1543 from skalenetwork/enhancement/SKALED-1425-th…
DmytroNazarenko Jun 16, 2023
a873074
update consensus
olehnikolaiev Jun 16, 2023
2a4d334
Merge branch 'v3.17.0' into 1347_data_destruction
kladkogex Jun 18, 2023
bcb5bda
1347 clang format
kladkogex Jun 18, 2023
cbf18f0
1347 clang format
kladkogex Jun 18, 2023
7f69ca4
1347 clang format
kladkogex Jun 18, 2023
07af226
1347 clang format
kladkogex Jun 18, 2023
f902c54
1347 add patch
kladkogex Jun 18, 2023
9895d22
1347 Rename function
kladkogex Jun 18, 2023
9b8b86a
1347 rename function
kladkogex Jun 18, 2023
ca853c2
add more block finalization logging in consensus
olehnikolaiev Jun 19, 2023
3f08274
update consensus
olehnikolaiev Jun 19, 2023
45fbdb6
1530 update block finalization logging
olehnikolaiev Jun 19, 2023
c7bf730
Merge branch 'v3.17.0' into enhancement/1530-block-finalization-loggi…
olehnikolaiev Jun 19, 2023
6243c9f
use specific libfmt commit
olehnikolaiev Jun 19, 2023
1527c46
temporary remove cat-cycle test
olehnikolaiev Jun 19, 2023
020e762
1530 improve logging
olehnikolaiev Jun 19, 2023
cec8677
Merge pull request #1548 from skalenetwork/enhancement/1530-block-fin…
DmytroNazarenko Jun 19, 2023
2ca7e44
Merge branch 'v3.17.0' into feature/1506-run-rpc-without-2/3-nodes
olehnikolaiev Jun 19, 2023
72b2112
1506 fix format
olehnikolaiev Jun 19, 2023
dbfc3ed
Merge pull request #1540 from skalenetwork/feature/1506-run-rpc-witho…
DmytroNazarenko Jun 20, 2023
963ed72
Updated consensus
kladkogex Jun 20, 2023
c40fb95
Merge branch 'v3.17.0' into 1357_data_destruction_slow
olehnikolaiev Jun 20, 2023
4d3c24a
1357 clang format
kladkogex Jun 20, 2023
9462569
1357 test
kladkogex Jun 20, 2023
37bba0e
Merge remote-tracking branch 'origin/1357_data_destruction_slow' into…
kladkogex Jun 20, 2023
d9950fe
1357 test
kladkogex Jun 20, 2023
b1b79aa
Merge pull request #1546 from skalenetwork/1357_data_destruction_slow
DmytroNazarenko Jun 20, 2023
eb00844
Merge pull request #1551 from skalenetwork/v3.17.0
DmytroNazarenko Jun 20, 2023
8ba6d16
Merge branch 'beta' into develop
DmytroNazarenko Jun 20, 2023
a2440e1
Merge pull request #1553 from skalenetwork/develop
DmytroNazarenko Jun 21, 2023
72bef15
Update StorageDestructionPatch.cpp
DmytroNazarenko Jun 21, 2023
43b683b
Fix linter
DmytroNazarenko Jun 21, 2023
01598e0
Merge pull request #1554 from skalenetwork/enhancement/fix-patch
DmytroNazarenko Jun 21, 2023
a621bea
Merge branch 'beta' into develop
DmytroNazarenko Jun 21, 2023
17433a8
Merge pull request #1555 from skalenetwork/develop
DmytroNazarenko Jun 21, 2023
3d85c40
1397 fix config validation
olehnikolaiev Jun 21, 2023
6992bc0
Merge pull request #1556 from skalenetwork/1397-data-destruction
DmytroNazarenko Jun 21, 2023
6a44848
Merge pull request #1561 from skalenetwork/beta
DmytroNazarenko Jun 23, 2023
7ff8a70
1558
kladkogex Jun 23, 2023
165fb7f
Merge branch 'develop' into 1558_skaled_stucks_fix
DmytroNazarenko Jun 23, 2023
9701ea6
1558 skaled stuck
kladkogex Jun 23, 2023
32a4ffd
Merge remote-tracking branch 'origin/1558_skaled_stucks_fix' into 155…
kladkogex Jun 23, 2023
2641b28
1558 update consensus
kladkogex Jun 23, 2023
3691fbb
1558
kladkogex Jun 23, 2023
c9708c0
Merge pull request #1566 from skalenetwork/1558_skaled_stucks_fix
DmytroNazarenko Jun 23, 2023
16bb544
Merge pull request #1568 from skalenetwork/develop
DmytroNazarenko Jun 26, 2023
105dfff
ignore empty list to download snapshot from for old chains
olehnikolaiev Jun 26, 2023
6c0b5b8
1567 restore 0 snapshot for archive node
olehnikolaiev Jun 26, 2023
8671ac5
Merge pull request #1569 from skalenetwork/bug/1567-0-block-snapshot-…
DmytroNazarenko Jun 26, 2023
a437751
1558 conensus stucks
kladkogex Jun 27, 2023
29f572b
Merge pull request #1571 from skalenetwork/1558_skaled_stucks_second_fix
DmytroNazarenko Jun 27, 2023
cedc7ac
Merge branch 'beta' into develop
DmytroNazarenko Jun 29, 2023
a2628a2
Merge pull request #1573 from skalenetwork/develop
DmytroNazarenko Jun 29, 2023
56781b5
IS-815 fix locks in lrucache
olehnikolaiev Jun 29, 2023
cc92080
Merge branch 'develop' into bug/IS-815-crash-during-tq-filling
olehnikolaiev Jun 29, 2023
7fd64e4
Merge pull request #1574 from skalenetwork/bug/IS-815-crash-during-tq…
DmytroNazarenko Jun 30, 2023
1bfce22
798_addition_of_string_and_int
kladkogex Jun 30, 2023
cfaefa6
Empty commit to trigger build
dimalit Jul 4, 2023
d7982ac
Merge pull request #1577 from skalenetwork/bug/SKALE-CI-11-nightly
DmytroNazarenko Jul 4, 2023
75ab16a
Merge branch 'beta' into develop
DmytroNazarenko Jul 7, 2023
0c2f241
Merge pull request #1584 from skalenetwork/develop
DmytroNazarenko Jul 7, 2023
1267655
1560_slow_catchup_under_load
kladkogex Jul 11, 2023
37d2292
1560 slow catchup under load
kladkogex Jul 11, 2023
8c34ecd
1560 slow catchup
kladkogex Jul 11, 2023
4d79b37
Merge pull request #1585 from skalenetwork/1560_slow_catchup_under_load
DmytroNazarenko Jul 11, 2023
e99e2f5
1587 init snapshot on start if possible
olehnikolaiev Jul 12, 2023
fdab656
1587 add comments
olehnikolaiev Jul 12, 2023
f632ad0
1588 do not save db cache in snapshot computation thread
olehnikolaiev Jul 12, 2023
a4bd414
Merge pull request #1589 from skalenetwork/bug/1588-ram-growth-snapsh…
olehnikolaiev Jul 12, 2023
3fe511d
Merge branch 'develop' into bug/1587-snapshot-init-on-start
olehnikolaiev Jul 13, 2023
0644d13
1560 slow catchup
kladkogex Jul 13, 2023
658bdb6
Merge branch 'develop' into 1560_slow_2
kladkogex Jul 13, 2023
b42aa26
1560 slow catchup
kladkogex Jul 13, 2023
2cb2c85
SKALED-1421 Try build debug binary
dimalit Jul 13, 2023
3653d0f
Merge pull request #1594 from skalenetwork/enhancement/SKALED-1421-si…
dimalit Jul 13, 2023
814f9f6
SKALED-1421 Print stacktrace and memory map
dimalit Jul 14, 2023
5c39322
Merge branch 'develop' into 1560_slow_2
DmytroNazarenko Jul 14, 2023
d346391
SKALED-1421 Error handling and style
dimalit Jul 14, 2023
70e90c8
Merge branch 'develop' into enhancement/SKALED-1421-sigsegv-stack-trace
dimalit Jul 14, 2023
fc248c6
Print stacktrace and memory map
dimalit Jul 17, 2023
4a87801
Merge branch 'develop' into bug/1587-snapshot-init-on-start
olehnikolaiev Jul 17, 2023
4ea4bd3
Merge branch 'develop' into 1560_slow_2
dmytrotkk Jul 17, 2023
1807c3a
Merge pull request #1593 from skalenetwork/1560_slow_2
olehnikolaiev Jul 18, 2023
2112116
Merge branch 'develop' into bug/1587-snapshot-init-on-start
olehnikolaiev Jul 18, 2023
6465b35
Update functional-tests.yml
dimalit Jul 18, 2023
9602082
Merge pull request #1591 from skalenetwork/bug/1587-snapshot-init-on-…
olehnikolaiev Jul 18, 2023
4512996
1596 add tq size to debug logs
olehnikolaiev Jul 18, 2023
46e227b
1596 add tq logs to debug level
olehnikolaiev Jul 19, 2023
b58387a
Merge pull request #1599 from skalenetwork/enhancement/1596-add-tq-logs
olehnikolaiev Jul 19, 2023
3115a3e
Merge branch 'develop' into fix-docker
dmytrotkk Jul 19, 2023
56d6a51
Use setup-docker@v1
dimalit Jul 19, 2023
07e236a
bump node version in functional tests
olehnikolaiev Jul 20, 2023
22bb892
Merge pull request #1603 from skalenetwork/bug/fix-functional-tests
olehnikolaiev Jul 20, 2023
e2ad831
IS-831 Remove SNB
dimalit Jul 20, 2023
4a1d7b3
731 Memory leaks (#1598)
kladkogex Jul 20, 2023
8b88f3e
Merge branch 'develop' into bug/IS-831-remove-snb
sergiy-skalelabs Jul 24, 2023
3e702e2
Merge branch 'beta' into develop
DmytroNazarenko Jul 25, 2023
46c85b5
Merge pull request #1607 from skalenetwork/develop
DmytroNazarenko Jul 25, 2023
8441491
Merge branch 'develop' into bug/IS-831-remove-snb
dimalit Jul 26, 2023
bb08a7a
Merge pull request #1605 from skalenetwork/bug/IS-831-remove-snb
DmytroNazarenko Jul 26, 2023
34e0b7a
IS-731 Aggresive garbage collection
dimalit Jul 27, 2023
999c991
Merge branch 'develop' into bug/IS-731-ram
dimalit Jul 31, 2023
d0a96ff
IS-73 Use consensus with repaired build
dimalit Aug 2, 2023
d0e1327
Merge branch 'bug/IS-731-ram' of github.com:/skalenetwork/skaled into…
dimalit Aug 2, 2023
cd9a39b
use static curl version
olehnikolaiev Aug 2, 2023
f0f0099
1612 fix archive node start from 0 snapshot
olehnikolaiev Aug 2, 2023
2cf31f1
update consensus
olehnikolaiev Aug 2, 2023
0c9edaf
IS-731 Latest consensus
dimalit Aug 2, 2023
e5fa39e
IS-731 Aggresive garbage collection
dimalit Aug 3, 2023
13dbcbd
Merge branch 'develop' into bug/1612-archive-node-0-snapshot
olehnikolaiev Aug 4, 2023
404759a
IS-731 Sort transactions under lock
dimalit Aug 4, 2023
dcc102e
1612 clean up
olehnikolaiev Aug 7, 2023
cb45331
Merge pull request #1614 from skalenetwork/bug/1612-archive-node-0-sn…
olehnikolaiev Aug 7, 2023
c12be32
Merge branch 'develop' into bug/IS-731-ram
dimalit Aug 7, 2023
9f360a5
1398 fix gasLimit check for pow txns
olehnikolaiev Aug 7, 2023
0ff2e4d
Merge branch 'beta' into develop
DmytroNazarenko Aug 8, 2023
a419c7d
1398 add powCheck patch
olehnikolaiev Aug 8, 2023
347b84a
IS-731 Format
dimalit Aug 8, 2023
a1de702
Merge branch 'develop' into bug/IS-731-ram
dimalit Aug 8, 2023
dbfb153
Merge pull request #1615 from skalenetwork/bug/IS-731-ram
DmytroNazarenko Aug 8, 2023
c270179
Merge pull request #1617 from skalenetwork/develop
DmytroNazarenko Aug 8, 2023
e388fe0
SKALED-1613 Change exit procedure
dimalit Aug 8, 2023
3c37872
SKALED-1613 Better log
dimalit Aug 8, 2023
7785d05
Merge branch 'develop' into bug/SKALED-1613-premature-exit
dimalit Aug 8, 2023
137cea0
1398 add unittests
olehnikolaiev Aug 9, 2023
8f994e4
Merge branch 'develop' into bug/1398-0-gas-price-tq
olehnikolaiev Aug 9, 2023
d55c00b
bug/SKALED-1613-premature-exit when state root mismatch
dimalit Aug 9, 2023
99b7a56
1398 add check POWCheck is enabled
olehnikolaiev Aug 9, 2023
89bdd7c
Merge branch 'develop' into bug/1398-0-gas-price-tq
olehnikolaiev Aug 9, 2023
f9a1318
Merge pull request #1616 from skalenetwork/bug/1398-0-gas-price-tq
olehnikolaiev Aug 9, 2023
08c1a3b
Merge branch 'beta' into develop
DmytroNazarenko Aug 28, 2023
09895ad
Merge pull request #1628 from skalenetwork/develop
DmytroNazarenko Aug 28, 2023
949fc27
1560 slow catchup
kladkogex Aug 29, 2023
2475147
1560
kladkogex Aug 29, 2023
c1efbfb
SKALE 1560 slow catchup
kladkogex Aug 29, 2023
0537220
Merge pull request #1630 from skalenetwork/1560_slow_catchup
DmytroNazarenko Aug 31, 2023
2d3a7eb
IS-256 HACK do_register() in stats::element only in stop(), to avoid …
dimalit Sep 4, 2023
82659fe
Don't use setup-docker in functional-tests
dimalit Sep 5, 2023
d8ada22
1637 use 21k for gasEstimateStep if gas used is less
olehnikolaiev Sep 7, 2023
a832517
1638 fix cmake build and disable tests id deps
olehnikolaiev Sep 7, 2023
794dd78
remove tests from deps
olehnikolaiev Sep 7, 2023
d01b21b
1637 add unittest
olehnikolaiev Sep 7, 2023
b232296
1637 add unittest
olehnikolaiev Sep 7, 2023
26bcca1
IS-715 Adapt TQ tests for re-sorting inside TQ. TODO remove it
dimalit Sep 8, 2023
e9bc7ed
IS-715 Disable logs_range test
dimalit Sep 8, 2023
83f5e45
IS-715 Comment out logs_range
dimalit Sep 11, 2023
79dfc4a
IS-715 Adapt TQ unit tests for re-sorting inside TQ. TODO remove it
dimalit Sep 11, 2023
862bf01
Merge branch 'develop' into bug/1637-gasEstimateStep-21k
olehnikolaiev Sep 11, 2023
116a5ff
Merge branch 'develop' into bug/remove-docker
dimalit Sep 11, 2023
c7911bf
Merge branch 'develop' into bug/1638-fix-cmake-build
olehnikolaiev Sep 11, 2023
f2023d7
Don't use setup-docker in functional-tests
dimalit Sep 11, 2023
8070526
Merge branch 'develop' into bug/1637-gasEstimateStep-21k
olehnikolaiev Sep 11, 2023
1d6c662
Merge branch 'develop' into bug/1638-fix-cmake-build
olehnikolaiev Sep 11, 2023
3e6698c
Merge pull request #1639 from skalenetwork/bug/1637-gasEstimateStep-21k
olehnikolaiev Sep 12, 2023
54ad4d4
Merge branch 'develop' into bug/1638-fix-cmake-build
olehnikolaiev Sep 12, 2023
98f342d
Merge pull request #1643 from skalenetwork/bug/1638-fix-cmake-build
olehnikolaiev Sep 12, 2023
268cd9f
Update README.md (#1648)
kladkogex Sep 13, 2023
ff4781e
Merge branch 'develop' into bug/IS-256-sigsegv-in-queue
dimalit Sep 14, 2023
6273ea4
SA-976 Exit 0 if internal exit reason
dimalit Sep 14, 2023
17cacb4
Merge pull request #1635 from skalenetwork/bug/IS-256-sigsegv-in-queue
DmytroNazarenko Sep 15, 2023
238cb82
Merge branch 'develop' into bug/SA-976-exit-1
DmytroNazarenko Sep 15, 2023
8564160
Merge pull request #1649 from skalenetwork/bug/SA-976-exit-1
DmytroNazarenko Sep 15, 2023
73c8f38
Merge branch 'beta' into develop
DmytroNazarenko Sep 15, 2023
270755d
Merge pull request #1650 from skalenetwork/develop
DmytroNazarenko Sep 16, 2023
2e41070
Update README.md (#1653)
kladkogex Sep 18, 2023
68d9e14
Update README.md (#1654)
kladkogex Sep 18, 2023
99c3bfb
Update README.md (#1655)
kladkogex Sep 18, 2023
6add485
Update README.md (#1656)
kladkogex Sep 18, 2023
e4b171b
Fix github actions (#1662)
kladkogex Sep 21, 2023
09e76a6
1658 fix total memory calculation used for garbage collection final c…
kladkogex Sep 21, 2023
76ca0f4
1347 data destruction (#1661)
kladkogex Sep 21, 2023
d3478ef
IS 862 comment out sync in leveldb
olehnikolaiev Sep 22, 2023
75aae00
Merge pull request #1666 from skalenetwork/bug/IS-862-remove-sync
DmytroNazarenko Sep 22, 2023
99d7035
Merge branch 'beta' into develop
DmytroNazarenko Sep 22, 2023
98e5ea5
Merge pull request #1667 from skalenetwork/develop
DmytroNazarenko Sep 22, 2023
ec344c6
1672 Add stats to selfdestruct. Print patches
kladkogex Sep 26, 2023
6860409
1672 Added stats for deletes
kladkogex Sep 26, 2023
e9a4db5
Merge branch 'develop' into 1672_add_stats_to_selfdestruct
kladkogex Sep 26, 2023
aef845b
1672 Clang format
kladkogex Sep 26, 2023
f3598c7
Merge branch '1672_add_stats_to_selfdestruct' of github.com:skalenetw…
kladkogex Sep 26, 2023
5f6ddeb
1672 Clang format
kladkogex Sep 26, 2023
d3dc582
1672 more clang format
kladkogex Sep 26, 2023
04327de
1672 clang format
kladkogex Sep 26, 2023
4463aa9
Update LevelDB.cpp
kladkogex Sep 27, 2023
3efcc7d
1672 Self destruct stats. Fix typo
kladkogex Sep 27, 2023
d7e8101
1672 add stats. Fix typo
kladkogex Sep 27, 2023
608e2c7
SKALED-1674 Exit thread in Skale.cpp
dimalit Sep 27, 2023
3850f1a
1672 clang format
kladkogex Sep 27, 2023
6f0b47b
1672 Clang format
kladkogex Sep 27, 2023
451db1d
1672 clang format
kladkogex Sep 27, 2023
63d599a
Github actions - cancel previous runs on commit (#1675)
kladkogex Sep 27, 2023
599a8cc
SKALED-1674 Faster exit if sending snapshot
dimalit Sep 27, 2023
28a3458
Merge branch 'develop' into 1672_add_stats_to_selfdestruct
DmytroNazarenko Sep 27, 2023
421c3db
Merge pull request #1673 from skalenetwork/1672_add_stats_to_selfdest…
DmytroNazarenko Sep 28, 2023
3d5f19b
Merge branch 'develop' into SKALED-1674-thread-kill
dimalit Sep 28, 2023
12cdeaf
Merge pull request #1676 from skalenetwork/SKALED-1674-thread-kill
DmytroNazarenko Sep 28, 2023
1a2a46e
Fix build instructions (#1680)
kladkogex Sep 29, 2023
5b3ccae
Merge branch 'beta' into develop
DmytroNazarenko Oct 2, 2023
6c4e168
Merge pull request #1684 from skalenetwork/develop
DmytroNazarenko Oct 2, 2023
e495a68
IS-869 SkipInvalidTransactionsPatch
dimalit Oct 4, 2023
9307158
IS-869 Skip invalid transactions in historic mode
dimalit Oct 5, 2023
0972058
IS-869 Tests and fixes for transaction skipping
dimalit Oct 6, 2023
c716b3b
Merge branch 'develop' into bug/IS-869-transaction-duplicates
dimalit Oct 6, 2023
3292ae9
Forgot to commit SkipInvalidTransaction patch + minor readability imp…
dimalit Oct 9, 2023
774a6fb
Merge branch 'bug/IS-869-transaction-duplicates' of github.com:/skale…
dimalit Oct 9, 2023
38c6a2f
IS-869 Remove unused parameter
dimalit Oct 9, 2023
352d5bb
IS-869 Print patch info
dimalit Oct 9, 2023
3735ea8
IS-869 Style changes
dimalit Oct 9, 2023
e519313
IS-869 Speed up with gapped cache
dimalit Oct 11, 2023
3b2b736
IS-869 Forgot ifdef
dimalit Oct 11, 2023
25a6318
IS-869 New function in SkipInvalidTransactionsPatch
dimalit Oct 11, 2023
65cc6b5
IS-869 Do not compute transaction gaps in new blocks
dimalit Oct 12, 2023
a7512d7
IS-869 Re-architecture SkipInvalidTransactionsPatch
dimalit Oct 12, 2023
a75dbbd
IS-869 Fix some tests
dimalit Oct 12, 2023
b8ef14c
IS-869 SkipInvalidTransactionsPatch re-architecture
dimalit Oct 13, 2023
d580980
Fix for duplicatiing transactions (IS-869)
dimalit Oct 13, 2023
65a5113
IS-869 Fix problem with new block removal
dimalit Oct 16, 2023
ff99191
Merge branch 'develop' into bug/IS-869-transaction-duplicates
dimalit Oct 16, 2023
b96e9c8
IS-869 Fix problem with new block removal
dimalit Oct 17, 2023
db9d248
IS-869 Fixed filtering condition in Eth.cpp
dimalit Oct 18, 2023
17f1ec7
Merge branch 'develop' into bug/IS-869-transaction-duplicates
dimalit Oct 18, 2023
d33f194
IS-869 Rename skippedInvalidTransactionsInBlock
dimalit Oct 19, 2023
b3b8133
IS-869 Read-write lock
dimalit Oct 19, 2023
dab6cfa
Merge branch 'bug/IS-869-transaction-duplicates' of github.com:/skale…
dimalit Oct 19, 2023
a7c74c7
IS-869 Invalid handling of switched off patch
dimalit Oct 19, 2023
e1e3d28
1703 move tq size log to info
olehnikolaiev Oct 20, 2023
d87ca50
Merge pull request #1698 from skalenetwork/bug/IS-869-transaction-dup…
DmytroNazarenko Oct 20, 2023
2e5c854
Merge branch 'develop' into enhancement/1703-move-tq-size-log-to-info
dimalit Oct 20, 2023
18ab10c
Merge pull request #1705 from skalenetwork/enhancement/1703-move-tq-s…
DmytroNazarenko Oct 20, 2023
dbf638f
Merge branch 'beta' into develop
DmytroNazarenko Oct 20, 2023
baf8a6e
Merge pull request #1706 from skalenetwork/develop
DmytroNazarenko Oct 20, 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
34 changes: 8 additions & 26 deletions .github/workflows/custom_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,6 @@ jobs:
which gcov-tool
gcov-tool --version

- name: Get newest lcov
run: |
echo "Removing previous lcov version..."
sudo apt-get remove lcov || true
echo "Installing newest lcov version..."
rm -rf newer_lcov || true
mkdir newer_lcov
cd newer_lcov
git clone https://github.com/linux-test-project/lcov --recursive --recurse-submodules
cd lcov
sudo make install
cd ..
cd ..
echo "Checking installed lcov version..."
which lcov
lcov --version


- name: Extract repo name
run: echo ::set-env name=REPOSITORY_NAME::$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}')
shell: bash
Expand Down Expand Up @@ -113,18 +95,18 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CMAKE_BUILD_TYPE=Debug
cd deps
./clean.sh
rm -f ./libwebsockets-from-git.tar.gz
./build.sh PARALLEL_COUNT=$(nproc)
./build.sh PARALLEL_COUNT=$(nproc) DEBUG=1
cd ..
- name: Configure all
run: |
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CMAKE_BUILD_TYPE=Debug
mkdir -p build
cd build
cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE ${{ github.event.inputs.cmake_options }} ..
Expand All @@ -134,11 +116,11 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CMAKE_BUILD_TYPE=Debug
cd build
make skaled -j$(nproc)
echo "Ensure release mode skaled does not have any debug markers"
strip skaled/skaled
#echo "Ensure release mode skaled does not have any debug markers"
#strip skaled/skaled
cd ..

- name: Build and publish container
Expand All @@ -149,8 +131,8 @@ jobs:
echo "Version $VERSION"
export RELEASE=true
bash ./scripts/build_and_publish.sh
- name: Upload skaled binary as artifact

- name: Upload skaled binary as artifact
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
Expand Down
96 changes: 96 additions & 0 deletions .github/workflows/functional-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
name: Run functional tests
on:
workflow_call:
inputs:
version:
required: true
type: string
workflow_dispatch:
inputs:
version:
required: true
type: string

jobs:
functional-tests:
name: Functional tests
runs-on: ubuntu-20.04
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
SKALED_RELEASE: ${{ inputs.version }}
NO_ULIMIT_CHECK: 1
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
repository: skalenetwork/skale-ci-integration_tests
submodules: recursive
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 16
- name: Install packages
run: |
sudo apt-get update
sudo apt-get install python3-pip python3-venv jq btrfs-progs nodejs npm
sudo npm install -g truffle
sudo npm install -g yarn
sudo chown -R runner:runner ~/.config # HACK

- name: Prepare SGX keys/certs
run: |
echo "${{ secrets.sgx_key }}" > sgx_certs/sgx.key
chmod 600 sgx_certs/sgx.key
sudo mkdir /skale_node_data
sudo cp -r sgx_certs /skale_node_data
sudo chown -R runner:runner /skale_node_data/sgx_certs/*
wc /skale_node_data/sgx_certs/sgx.key
- name: Update Environment
run: |
./update_environment.sh skaled+internals
./update_environment.sh skaled+load_python
./update_environment.sh skaled+load_js
./update_environment.sh skaled+contractsRunningTest
./update_environment.sh skaled+filestorage
./update_environment.sh skaled+api
- name: skaled+internals+pytest
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+internals+pytest

- name: skaled+filestorage+all
run: SKALED_PROVIDER=skaled_providers/endpoint_by_container ./run_tests.sh skaled+filestorage+all

- name: skaled+contractsRunningTest+all
run: SKALED_PROVIDER=skaled_providers/endpoint_by_container ./run_tests.sh skaled+contractsRunningTest+all

- name: skaled+load_python+all
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+load_python+all

# - name: skaled+load_js+run_angry_cats
# run: SKALED_PROVIDER=skaled_providers/endpoint_by_container ./run_tests.sh skaled+load_js+run_angry_cats

- name: skaled+internals+test_snapshot_api
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+internals+test_snapshot_api

- name: skaled+internals+test_node_rotation
run: SKALED_PROVIDER=skaled_providers/binary_from_container ./run_tests.sh skaled+internals+test_node_rotation

- name: Fix access rights
run: |
sudo chown -R runner:runner /tmp/tmp* || true
sudo find ./integration_tests/skaled/internals/third_party/skale-node-tests/btrfs -type d -exec btrfs property set {} ro false \; || true
sudo chown -R runner:runner . || true
for C in $(docker ps -aq); do docker logs $C>$C.log; done || true
if: ${{ always() }}

- uses: actions/upload-artifact@v2
if: ${{ always() }}
continue-on-error: true
with:
name: debug
path: |
skaled_providers
!skaled_providers/**/skaled
/tmp/tmp*
*.log
./integration_tests/skaled/internals/third_party/skale-node-tests/btrfs
!**/.env
48 changes: 37 additions & 11 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CMAKE_BUILD_TYPE=RelWithDebInfo
cd deps
./clean.sh
rm -f ./libwebsockets-from-git.tar.gz
Expand All @@ -101,8 +101,7 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CODE_COVERAGE=ON
export CMAKE_BUILD_TYPE=RelWithDebInfo
mkdir -p build
cd build
# -DCMAKE_C_FLAGS=-O3 -DCMAKE_CXX_FLAGS=-O3
Expand All @@ -113,20 +112,19 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CODE_COVERAGE=ON
export CMAKE_BUILD_TYPE=RelWithDebInfo
cd build
make skaled -j$(nproc)
echo "Ensure release mode skaled does not have any debug markers"
#echo "Ensure release mode skaled does not have any debug markers"
cp skaled/skaled skaled/skaled-debug
strip skaled/skaled
cd ..
- name: Configure historic state build
run: |
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CODE_COVERAGE=ON
export CMAKE_BUILD_TYPE=RelWithDebInfo
mkdir -p build-historic
cd build-historic
# -DCMAKE_C_FLAGS=-O3 -DCMAKE_CXX_FLAGS=-O3
Expand All @@ -137,11 +135,11 @@ jobs:
export CC=gcc-9
export CXX=g++-9
export TARGET=all
export CMAKE_BUILD_TYPE=Release
export CODE_COVERAGE=ON
export CMAKE_BUILD_TYPE=RelWithDebInfo
cd build-historic
make skaled -j$(nproc)
echo "Ensure release mode skaled does not have any debug markers"
#echo "Ensure release mode skaled does not have any debug markers"
cp skaled/skaled skaled/skaled-debug
strip skaled/skaled
cd ..
- name: Build and publish container
Expand Down Expand Up @@ -177,6 +175,15 @@ jobs:
asset_path: ./build/skaled/skaled
asset_name: skaled
asset_content_type: application/octet-stream
- name: Upload debug binary to Release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build/skaled/skaled-debug
asset_name: skaled-debug
asset_content_type: application/octet-stream
- name: Build and publish historic-state container
run: |
cp build-historic/skaled/skaled scripts/skale_build/executable/
Expand All @@ -197,3 +204,22 @@ jobs:
asset_path: ./build-historic/skaled/skaled
asset_name: skaled-historic
asset_content_type: application/octet-stream
- name: Upload historic-state debug binary to Release
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build-historic/skaled/skaled-debug
asset_name: skaled-debug-historic
asset_content_type: application/octet-stream
outputs:
version: ${{ env.VERSION }}

functional-tests:
uses: ./.github/workflows/functional-tests.yml
name: Functional testing for build
needs: [build]
with:
version: ${{ needs.build.outputs.version }}
secrets: inherit
26 changes: 25 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ defaults:
run:
shell: bash
jobs:
cancel-runs:
name: Cancel Previous Runs
runs-on: ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
build:
runs-on: self-hosted
env:
Expand Down Expand Up @@ -162,7 +170,7 @@ jobs:
cd build/test
export NO_NTP_CHECK=1
export NO_ULIMIT_CHECK=1
# we specifically run each test for easier log review
# we specifically run each test for easier log review
./testeth -t BlockchainTests -- --express && touch /tmp/BlockchainTestsPassed
./testeth -t TransitionTests -- --express && touch /tmp/TransitionTestsPassed
./testeth -t TransactionTests -- --express && touch /tmp/TransactionTestsPassed
Expand Down Expand Up @@ -259,6 +267,22 @@ jobs:
ls /tmp/HashSnapshotTestSuitePassed || sudo NO_ULIMIT_CHECK=1 NO_NTP_CHECK=1 ./testeth -t HashSnapshotTestSuite -- --all --verbosity 4
ls /tmp/ClientSnapshotsSuitePassed || sudo NO_ULIMIT_CHECK=1 NO_NTP_CHECK=1 ./testeth -t ClientSnapshotsSuite -- --all --verbosity 4
cd ..

- name: Create lcov report
run: |
lcov --capture --directory . --output-file coverage.info
lcov --remove coverage.info '/usr/*' --output-file coverage.info # filter system-files
lcov --remove coverage.info 'deps/*' --output-file coverage.info # filter dependency files
lcov --remove coverage.info 'libconsensus/deps/*' --output-file coverage.info # filter dependency files
lcov --remove coverage.info 'libconsensus/libBLS/deps/*' --output-file coverage.info # filter dependency files
lcov --remove coverage.info '.hunter/*' --output-file coverage.info # filter dependency files

- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.info

- name: Configure all as historic
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ endif()
option( HUNTER_RUN_UPLOAD "Upload binaries to the cache server" ${run_upload} )

include( HunterGate )
HunterGate( URL "https://github.com/ruslo/hunter/archive/v0.23.76.tar.gz" SHA1 "c7b60993e841850e2c449afd454f5d5aa4ec04e4" LOCAL )
#HunterGate( URL "https://github.com/ruslo/hunter/archive/v0.23.214.tar.gz" SHA1 "e14bc153a7f16d6a5eeec845fb0283c8fad8c358" LOCAL ) new leveldb
#HunterGate( URL "https://github.com/ruslo/hunter/archive/v0.23.76.tar.gz" SHA1 "c7b60993e841850e2c449afd454f5d5aa4ec04e4" LOCAL )
HunterGate( URL "https://github.com/ruslo/hunter/archive/v0.23.214.tar.gz" SHA1 "e14bc153a7f16d6a5eeec845fb0283c8fad8c358" LOCAL ) #leveldb 1.22

set( CMAKE_CXX_STANDARD 17 )

Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
* @skalenetwork/codeowners
* @DmytroNazarenko @kladkogex
*.md @skalenetwork/docowners
21 changes: 12 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ If you have already cloned the repo and forgot to pass `--recurse-submodules`, e

```
sudo apt update
sudo apt install autoconf build-essential cmake libprocps-dev libtool texinfo wget yasm flex bison btrfs-progs
sudo apt install make build-essential cmake pkg-config libgnutls28-dev libssl-dev unzip zlib1g-dev libgcrypt20-dev docker.io gcc-9 g++-9 gperf clang-format-11
sudo apt install autoconf build-essential cmake libprocps-dev libtool texinfo wget yasm flex bison btrfs-progs python3 python3-pip gawk git vim doxygen
sudo apt install make build-essential cmake pkg-config libgnutls28-dev libssl-dev unzip zlib1g-dev libgcrypt20-dev docker.io gcc-9 g++-9 gperf clang-format-11 gnutls-dev
sudo apt install nettle-dev libhiredis-dev redis-server google-perftools libgoogle-perftools-dev lcov
```

NB cmake needs to be of version >=3.31, git of version >=2.18



NB cmake needs to be of version >=3.21, git of version >=2.18

### (for Ubuntu 20.10 or later) Set gcc-9 as default compiler
```
Expand All @@ -74,14 +78,15 @@ sudo update-alternatives --install /usr/bin/gcov-tool gcov-tool /usr/bin/gcov-to
gcc --version
```

### Build dependencies
# Install latest cmake

```
cd deps
./build.sh
sudo apt-get purge cmake
sudo snap install cmake --classic
```

or, if you want to build debug version of skaled

### Build dependencies

```
cd deps
Expand All @@ -107,8 +112,6 @@ cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug
cmake --build build -- -j$(nproc)
```

Note: Currently only Debug build is supported.


## Testing

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.16.1
3.17.0
Loading