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

Fix issue #2330 by limiting the vector size that can be reserve'd #2404

Closed
wants to merge 387 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
387 commits
Select commit Hold shift + click to select a range
3e174cb
Merge remote-tracking branch 'origin/release/5.0' into GH-1858-test-main
heifner Nov 7, 2023
30eebb6
Merge pull request #1873 from AntelopeIO/GH-1858-test-main
heifner Nov 7, 2023
66165e7
Remove unused `shared_set` type.
greg7mdp Nov 7, 2023
c8c9095
Move serialization function for `shared` types to database_utils.hpp.
greg7mdp Nov 7, 2023
9c61082
use `fc::temp_directory` and simplify test.
greg7mdp Nov 7, 2023
aeb64c3
Move `test_chainbase_types.cpp` from `chain_plugin/test` -> unittests
greg7mdp Nov 7, 2023
c97084e
Replace `clear_and_construct` with `emplace_back`.
greg7mdp Nov 7, 2023
4b011f3
Better check for `MAX_SIZE_OF_BYTE_ARRAYS`.
greg7mdp Nov 7, 2023
47aab38
Merge remote-tracking branch 'origin/release/5.0' into disable_oc_sub…
linh2931 Nov 7, 2023
299f80a
Merge pull request #1874 from AntelopeIO/disable_oc_subj_limits_main
linh2931 Nov 7, 2023
8b87b61
Better support of pack/unpack size limits. Specialize pack/unpack for…
greg7mdp Nov 7, 2023
5b8ea89
Merge branch 'main' of github.com:AntelopeIO/leap into gh_1652
greg7mdp Nov 8, 2023
a9cad71
Merge remote-tracking branch 'origin/release/5.0' into GH-1871-promet…
heifner Nov 8, 2023
a6c4f9b
Merge pull request #1880 from AntelopeIO/GH-1871-prometheus-main
heifner Nov 8, 2023
e776e79
Update chainbase to tip.
greg7mdp Nov 9, 2023
f8e8ce2
Merge branch 'release/5.0' of github.com:AntelopeIO/leap into gh_1875…
greg7mdp Nov 9, 2023
581cd2b
Merge pull request #1885 from AntelopeIO/gh_1875_main
greg7mdp Nov 9, 2023
224e6b1
Update chainbase branch to tip.
greg7mdp Nov 9, 2023
4106308
Merge branch 'main' of github.com:AntelopeIO/leap into gh_1652
greg7mdp Nov 10, 2023
8793e5e
Merge remote-tracking branch 'origin/release/5.0' into GH-1878-mapped…
heifner Nov 13, 2023
88e1759
Merge pull request #1890 from AntelopeIO/GH-1878-mapped_private_test-…
heifner Nov 13, 2023
72101c4
Merge remote-tracking branch 'origin/release/5.0' into GH-1883-base64…
heifner Nov 13, 2023
680780d
Merge pull request #1891 from AntelopeIO/GH-1883-base64-rm-main
heifner Nov 13, 2023
474d9f8
Merge branch 'main' of github.com:AntelopeIO/leap into gh_1652
greg7mdp Nov 13, 2023
9c7ca30
Merge remote-tracking branch 'origin/release/5.0' into GH-1461-base64…
heifner Nov 13, 2023
b40b13f
GH-1461 Simplify tests
heifner Nov 13, 2023
f4b7ace
Merge pull request #1893 from AntelopeIO/GH-1461-base64-pad-main
heifner Nov 13, 2023
ada8819
Merge branch 'release/5.0' of github.com:AntelopeIO/leap into gh_1878…
greg7mdp Nov 13, 2023
ea18a6d
Merge pull request #1896 from AntelopeIO/gh_1878_main
greg7mdp Nov 14, 2023
3ff0b4e
Update chainbase to tip of main branch
greg7mdp Nov 14, 2023
1b8e184
Merge remote-tracking branch 'origin/release/5.0' into GH-1461-base64…
heifner Nov 14, 2023
94f38e8
Operators `<<` and `>>` on stream are enough to serialize `shared_*` …
greg7mdp Nov 14, 2023
c5dfef6
Merge branch 'main' of github.com:AntelopeIO/leap into gh_1652
greg7mdp Nov 14, 2023
417fc05
Fix compilation issue.
greg7mdp Nov 14, 2023
f96f3cf
Change `std::string_view` constructor for c++17 compatibility.
greg7mdp Nov 14, 2023
5d665bb
Merge pull request #1898 from AntelopeIO/GH-1461-base64-main
heifner Nov 14, 2023
02d7546
Merge branch 'main' of github.com:AntelopeIO/leap into gh_1652
greg7mdp Nov 14, 2023
537c642
Merge pull request #1851 from AntelopeIO/gh_1652
greg7mdp Nov 15, 2023
4dfa599
Merge remote-tracking branch 'origin/release/5.0' into rm-mandel-main
heifner Nov 15, 2023
5695958
Merge pull request #1906 from AntelopeIO/rm-mandel-main
heifner Nov 15, 2023
228bfb9
Merge remote-tracking branch 'origin/release/5.0' into GH-1743-add-co…
heifner Nov 15, 2023
a997831
Merge pull request #1907 from AntelopeIO/GH-1743-add-context-to-contr…
heifner Nov 15, 2023
f8001a2
Merge remote-tracking branch 'origin/release/5.0' into net-cleanup-main
heifner Nov 15, 2023
40cc421
Merge pull request #1908 from AntelopeIO/net-cleanup-main
heifner Nov 15, 2023
81e7340
Merge remote-tracking branch 'origin/release/5.0' into merge_setcode_…
linh2931 Nov 17, 2023
1abf709
Merge pull request #1915 from AntelopeIO/merge_setcode_fix_to_main
linh2931 Nov 17, 2023
5e14ca7
Fix a couple perf issues in `fc::raw::pack` and add tuple support.
greg7mdp Nov 17, 2023
1580c47
Add `unpack` for tuple, add test, and fix `pack` for `tuple`.
greg7mdp Nov 17, 2023
1203afb
Add variadic `unpack`.
greg7mdp Nov 17, 2023
9c6f10d
Add test for variadic `pack`/`unpack`
greg7mdp Nov 17, 2023
c5ac2d6
Merge pull request #1917 from AntelopeIO/pack_fix
greg7mdp Nov 17, 2023
ab49ad3
Merge branch 'release/5.0' of github.com:AntelopeIO/leap into abi_ser…
greg7mdp Nov 21, 2023
1879cbf
Merge pull request #1925 from AntelopeIO/abi_serializer_perf_fix_main
greg7mdp Nov 21, 2023
c315531
Merge remote-tracking branch 'origin/release/5.0' into bls12-381-upda…
heifner Nov 30, 2023
f69ebb8
Merge pull request #898 from AntelopeIO/autocomplete_readme
spoonincode Nov 30, 2023
3389ca0
Merge pull request #1041 from AntelopeIO/docs/ToC_for_readme
spoonincode Nov 30, 2023
9c8f8c6
Merge remote-tracking branch 'origin/release/5.0' into bls12-381-upda…
heifner Nov 30, 2023
291b6df
Merge pull request #1939 from AntelopeIO/bls12-381-update-main
heifner Nov 30, 2023
abb0e0d
rename block_header_state.{hpp,cpp} to block_header_state_legacy.{hpp…
linh2931 Dec 5, 2023
a12289b
Merge remote-tracking branch 'origin/release/5.0' into bls-update
heifner Dec 5, 2023
fb47a32
Merge pull request #1949 from AntelopeIO/bls-update
heifner Dec 5, 2023
14287b0
rename block_state to block_state_legacy and block_header_state to bl…
linh2931 Dec 5, 2023
8747278
update snapshot reading section and writing section
linh2931 Dec 5, 2023
1a889b6
fix indentation
linh2931 Dec 6, 2023
78c92df
Merge remote-tracking branch 'origin/release/5.0' into GH-1953-bls-n0…
heifner Dec 6, 2023
7f5ea57
Merge pull request #1956 from AntelopeIO/GH-1953-bls-n0-main
heifner Dec 6, 2023
9e4e7b4
Merge branch 'main' into rename_block_state
linh2931 Dec 6, 2023
85c9c92
Merge pull request #1951 from AntelopeIO/rename_block_state
linh2931 Dec 6, 2023
34c9b72
stub pinned_build.yaml
spoonincode Dec 7, 2023
3c2e3c9
Merge pull request #1963 from AntelopeIO/stub_pinned_workflow
spoonincode Dec 7, 2023
c083fcb
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Dec 7, 2023
a2d7c8c
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Dec 7, 2023
4759a7f
Merge pull request #1968 from AntelopeIO/dec2023_security_main
spoonincode Dec 7, 2023
b418cfd
Merge pull request #1969 from AntelopeIO/mergeup_dec2023_version_bumps
spoonincode Dec 7, 2023
3a5b6b4
add some addtional webauthn tests
spoonincode Dec 7, 2023
c666859
Merge pull request #1971 from AntelopeIO/new_webauthn_tests
spoonincode Dec 8, 2023
f2fb76a
bump abieos submodule to HEAD
spoonincode Dec 11, 2023
815f898
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Dec 11, 2023
b4bbc9c
Merge pull request #1976 from AntelopeIO/abieos_submod_bump
spoonincode Dec 11, 2023
423c1d2
rename pending_block_header_state to pending_block_header_state_legacy
linh2931 Dec 12, 2023
e797f9d
Merge pull request #1983 from AntelopeIO/renaming_pending_block_heade…
linh2931 Dec 12, 2023
1335108
Merge pull request #1977 from AntelopeIO/lower_org_release_yaml_main
spoonincode Dec 13, 2023
d59dfb1
change accepted_block_header signal from block_state_legacy_ptr to st…
linh2931 Dec 14, 2023
32448e2
remove unused pre_accepted_block, bad_alloc, and accepted_transaction…
linh2931 Dec 14, 2023
513b3fb
Merge remote-tracking branch 'origin/release/5.0' into extra-logging-…
heifner Dec 14, 2023
846a418
Merge pull request #1988 from AntelopeIO/extra-logging-main
heifner Dec 14, 2023
360f3ba
make accepted_blocks signal information only needed
linh2931 Dec 17, 2023
c05efc1
Merge remote-tracking branch 'origin/release/5.0' into update-bls-main
heifner Dec 17, 2023
7fc5a73
Merge remote-tracking branch 'origin/release/5.0' into tutorial-bls2-…
heifner Dec 17, 2023
e7a8717
change irreversible_block to signal only required information
linh2931 Dec 17, 2023
28dccf9
remove unneeded block_state_legacy.hpp includes
linh2931 Dec 17, 2023
87e3906
use structured binding for applied_transaction_connection
linh2931 Dec 17, 2023
93499d7
refine accepted_block_header signal
linh2931 Dec 17, 2023
0799e67
remove signed_block_header from irreversible_block signal
linh2931 Dec 17, 2023
22cec2c
restore commented out first_block->verify_signee in forked_tests
linh2931 Dec 17, 2023
7a018f6
update comments
linh2931 Dec 17, 2023
4223dd0
Merge pull request #1995 from AntelopeIO/update-bls-main
heifner Dec 18, 2023
7c4ca8a
do not emit signed_block_header and block_num; use a single block_sig…
linh2931 Dec 18, 2023
22ca269
remove leftover code for accepted_transaction signal
linh2931 Dec 18, 2023
8a2fc75
use const block_signal_params&
linh2931 Dec 18, 2023
734b569
only run libtester tests on ubuntu22
spoonincode Dec 18, 2023
c0ee173
change commit_block related functions to use signed_block_ptr as para…
linh2931 Dec 18, 2023
f8a82b0
change on_irreversible_block to use block as parameter only
linh2931 Dec 19, 2023
6f186ce
remove block_num as paramter in more places
linh2931 Dec 19, 2023
4cf19e5
Merge pull request #1999 from AntelopeIO/libtester_tests_u22only
spoonincode Dec 19, 2023
9658bd1
Merge pull request #2001 from AntelopeIO/tutorial-bls2-main
heifner Dec 19, 2023
af1cd34
Merge remote-tracking branch 'origin/release/5.0' into trx-generator-…
heifner Dec 19, 2023
f777c8f
hanlde potential null signed block in send_update
linh2931 Dec 19, 2023
5a7714a
remove more unneeded block_num parameter
linh2931 Dec 19, 2023
4938640
remove unnecessary static_cast<signed_block_header>
linh2931 Dec 19, 2023
9924152
Merge pull request #1996 from AntelopeIO/clean_up_controller_signalling
linh2931 Dec 19, 2023
028bd49
Merge pull request #2002 from AntelopeIO/trx-generator-core-main
heifner Dec 20, 2023
0fb49ec
Merge remote-tracking branch 'origin/release/5.0' into GH-2006-unlink…
heifner Dec 20, 2023
952aedf
Merge pull request #2009 from AntelopeIO/GH-2006-unlinkable-blocks-main
heifner Dec 20, 2023
54633f0
Merge remote-tracking branch 'origin/release/5.0' into GH-2006-test-n…
heifner Dec 20, 2023
c8920c3
Merge remote-tracking branch 'origin/release/5.0' into GH-2006-test-n…
heifner Dec 21, 2023
1f118d3
Merge pull request #2014 from AntelopeIO/GH-2006-test-no-block-log-sy…
heifner Dec 21, 2023
638d434
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Dec 22, 2023
3fdc354
switch to using reference-contracts in libtester tests
spoonincode Dec 22, 2023
46c575e
Merge pull request #2017 from AntelopeIO/cb_alloc_delete_free_fix
spoonincode Dec 22, 2023
86aaf51
Merge pull request #2018 from AntelopeIO/use_ref_contracts
spoonincode Dec 22, 2023
2ab702e
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 3, 2024
1ad5f1a
Merge pull request #2031 from AntelopeIO/remove_perrow_tellp
spoonincode Jan 3, 2024
f8f5d50
add leap 5 stable version bump commit
ericpassmore Jan 3, 2024
feede8c
Merge pull request #2037 from AntelopeIO/ehp/release-5-stable-commit-…
ericpassmore Jan 4, 2024
832e02e
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 4, 2024
a6249b5
Merge remote-tracking branch 'origin/release/5.0' into GH-2021-snapsh…
heifner Jan 4, 2024
8182092
Merge pull request #2039 from AntelopeIO/prom_handler_fix
spoonincode Jan 4, 2024
9696543
Merge pull request #2040 from AntelopeIO/GH-2021-snapshot-ram-fix
heifner Jan 4, 2024
cb13027
bump bls12-381 submodule to head w/ warning fix
spoonincode Jan 8, 2024
ecbcf94
Merge pull request #2053 from AntelopeIO/bls12-381_warn_bump
spoonincode Jan 8, 2024
cff0c4f
bump chainbase submod to head w/ iterator fix
spoonincode Jan 10, 2024
066d6ab
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 10, 2024
21f0873
Merge pull request #2063 from AntelopeIO/chainbase_bump_iterator
spoonincode Jan 10, 2024
a954649
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 16, 2024
77b3990
bump chainbase submodule to main head w/ segment manager end fix
spoonincode Jan 16, 2024
f7d7d2f
Merge pull request #2089 from AntelopeIO/cb_sm_end_addr
spoonincode Jan 16, 2024
eae6f23
Merge pull request #2088 from AntelopeIO/http_plugin_state_life
spoonincode Jan 16, 2024
07f105e
use glibc's memfd_create()
spoonincode Jan 17, 2024
4985686
MFD_NOEXEC_SEAL memfd
spoonincode Jan 17, 2024
8d99a7f
Merge pull request #2064 from AntelopeIO/fix_eosvmoc_subtests
spoonincode Jan 17, 2024
04cd956
bump chainbase submodule to main head w/ warning fixes
spoonincode Jan 17, 2024
4531e97
Merge pull request #2099 from AntelopeIO/cb_warn_fix
spoonincode Jan 18, 2024
eee7312
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 19, 2024
8959286
Merge pull request #2114 from AntelopeIO/memfd_cleanups
spoonincode Jan 19, 2024
af57b8e
don't use exceptions to indicate a missing permission in auth checker
spoonincode Jan 19, 2024
8a9fa76
Merge pull request #2115 from AntelopeIO/chain_api_plugin_check
spoonincode Jan 20, 2024
7ab4d4c
no longer need the forward here
spoonincode Jan 22, 2024
cf09e01
Merge pull request #2117 from AntelopeIO/no_except_missing_perm
spoonincode Jan 23, 2024
e96f495
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 24, 2024
e6952a6
Merge pull request #2134 from AntelopeIO/reset_dirty_mapped_private
spoonincode Jan 24, 2024
eda7e1c
Merge remote-tracking branch 'origin/release/5.0' into net-lib-catchu…
heifner Jan 25, 2024
3491a2d
Merge pull request #2138 from AntelopeIO/net-lib-catchup-main
heifner Jan 25, 2024
e0c41e2
migrate to actions/upload-artifact@v4
spoonincode Jan 25, 2024
6282a08
Merge pull request #2140 from AntelopeIO/uav4
spoonincode Jan 25, 2024
3539b71
Merge remote-tracking branch 'origin/release/5.0' into report-read-on…
heifner Jan 29, 2024
eb529b9
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 29, 2024
92967bb
Merge pull request #2151 from AntelopeIO/report-read-only-error-main
arhag Jan 29, 2024
556e93c
Merge pull request #2155 from AntelopeIO/cb_undo_index_test_fix
arhag Jan 29, 2024
91fcc5e
Merge remote-tracking branch 'origin/release/5.0' into GH-2104-find-c…
heifner Jan 29, 2024
e5d45ce
Merge pull request #2157 from AntelopeIO/GH-2104-find-chain_api_plugi…
heifner Jan 29, 2024
0fe4602
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Jan 31, 2024
efac04c
Merge pull request #2170 from AntelopeIO/oc_blocking_socket
spoonincode Jan 31, 2024
1a79773
Merge remote-tracking branch 'origin/release/5.0' into snapshot-renam…
heifner Feb 1, 2024
3f8e645
Merge pull request #2178 from AntelopeIO/snapshot-rename-info-main
heifner Feb 1, 2024
161cb28
tests for ship & snapshots with jumbo rows
spoonincode Dec 5, 2023
a131719
Merge pull request #2183 from AntelopeIO/large_row_tests
spoonincode Feb 2, 2024
de910b9
GH-2165 Explicit shutdown since atexit not called on error
heifner Feb 2, 2024
6fb3fe6
Merge pull request #2192 from AntelopeIO/GH-2165-cluster-shutdown
heifner Feb 3, 2024
3062862
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 5, 2024
66f2f27
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 5, 2024
c101747
Merge pull request #2203 from AntelopeIO/cb_bigpriv_testfix_main
spoonincode Feb 5, 2024
c61d7cb
Merge pull request #2204 from AntelopeIO/rot_defaults_help
spoonincode Feb 5, 2024
345bd73
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 5, 2024
37cf729
Merge pull request #2210 from AntelopeIO/http_max_429to503_main
spoonincode Feb 5, 2024
861519d
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 5, 2024
29f90ff
Merge pull request #2211 from AntelopeIO/max-requests_fix
spoonincode Feb 5, 2024
3f51727
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 6, 2024
bcc6b04
Merge pull request #2212 from AntelopeIO/http_max_in_flight_tests_main
spoonincode Feb 6, 2024
d0a449e
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 6, 2024
e6e7ecd
Merge pull request #2219 from AntelopeIO/nptests
spoonincode Feb 6, 2024
cc75dbc
GH-2215 Reset syncing on unlinkable blocks
heifner Feb 6, 2024
1ec3662
GH-2215 Start after lib
heifner Feb 6, 2024
8f82427
GH-2215 Remove --activate-if for main
heifner Feb 7, 2024
9b38e96
GH-2215 Add needed shape file for test
heifner Feb 7, 2024
02da283
Merge pull request #2220 from AntelopeIO/GH-2215-lib-sync-main
heifner Feb 7, 2024
7b1764f
merge and reset version in one pr
ericpassmore Feb 8, 2024
cf7a961
Merge pull request #2227 from AntelopeIO/ehp/gh-2225-sync-version-bump
ericpassmore Feb 8, 2024
c37b99e
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Feb 9, 2024
5f5462d
Merge pull request #2231 from AntelopeIO/http_ut_ports
spoonincode Feb 9, 2024
ac88b89
Remove broken `large-lib-test.py`
greg7mdp Feb 15, 2024
910fe05
Merge pull request #2238 from AntelopeIO/gh_2232
greg7mdp Feb 15, 2024
998135e
Merge remote-tracking branch 'origin/release/5.0' into GH-2228-return…
heifner Feb 20, 2024
cc8a4d2
Merge pull request #2249 from AntelopeIO/GH-2228-return-value-main
heifner Feb 20, 2024
0a03bae
merge bump version changes from 3.2 4.0 and 5.0
ericpassmore Feb 20, 2024
0b88618
Merge remote-tracking branch 'origin/release/5.0' into ehp/main-gh-22…
ericpassmore Feb 21, 2024
6d18867
Merge pull request #2254 from AntelopeIO/ehp/main-gh-2250-bump-version
ericpassmore Feb 21, 2024
05eca9f
update libsecp256k1 to 0.4.1
spoonincode Feb 26, 2024
35c8563
Merge pull request #2262 from AntelopeIO/libsecp256k1-v041
spoonincode Feb 26, 2024
bbc092a
don't do set_new_handler() workaround for LLVM 9+
spoonincode Mar 2, 2024
006583a
Merge pull request #2276 from AntelopeIO/set_new_handler_war_llvm
spoonincode Mar 3, 2024
301d7cb
add a CI platform with assert()s enabled (NDEBUG not defined)
spoonincode Mar 5, 2024
7382d88
Merge pull request #2279 from AntelopeIO/assert_ci
spoonincode Mar 5, 2024
270fb70
Merge remote-tracking branch 'origin/release/5.0' into GH-2293-snapsh…
heifner Mar 8, 2024
c241ae5
guard against calling memcpy() with NULL src
spoonincode Mar 8, 2024
f2111db
avoid pointer arithmetic overflow
spoonincode Mar 8, 2024
968a0fa
Merge pull request #2295 from AntelopeIO/GH-2293-snapshot-error-main
heifner Mar 8, 2024
a0b41fc
don't enable EOS VM OC's vm_limit when ASAN or UBSAN is enabled
spoonincode Mar 11, 2024
62e95b3
bump abieos, appbase, bn256 & eos-vm to their main HEAD w/ UB fixes
spoonincode Mar 11, 2024
b47a64c
fix net_plugin_impl dtor order
spoonincode Mar 11, 2024
4074b15
specialized to_variant() for chainbase::environment's packedness
spoonincode Mar 12, 2024
3bbc61d
ubsan platform for CI
spoonincode Mar 12, 2024
22114b4
Merge pull request #2298 from AntelopeIO/ub_grab_bag
spoonincode Mar 12, 2024
96fb8a4
Merge pull request #2300 from AntelopeIO/net_plugin_dtor_order
spoonincode Mar 12, 2024
07c0c8c
Merge pull request #2302 from AntelopeIO/cb_environment_ub
spoonincode Mar 12, 2024
5142691
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Mar 12, 2024
8f843ff
Merge pull request #2304 from AntelopeIO/ubsan_ci
spoonincode Mar 12, 2024
a08ec3e
Merge pull request #2305 from AntelopeIO/gelf_localhost
spoonincode Mar 15, 2024
1918155
Replace hacky version of `calculate_max_depth` with simpler one.
greg7mdp Mar 18, 2024
cdb766b
Use Matt's non-floating point implementation of `calculate_max_depth`.
greg7mdp Mar 18, 2024
dce42d1
Update comment.
greg7mdp Mar 18, 2024
c365b9c
Use improved version from Matt.
greg7mdp Mar 18, 2024
4f4560f
bump EOS VM submodule to branch w/ less greedy signal handler
spoonincode Mar 18, 2024
45ceb2c
bump EOS VM submodule to pick up <span> include
spoonincode Mar 18, 2024
3868b80
Merge pull request #2320 from AntelopeIO/incr_merkle
greg7mdp Mar 18, 2024
7ab231b
bump eos-vm submodule to grab another <span> include
spoonincode Mar 19, 2024
307b47a
Avoid vector copy at each insertion.
greg7mdp Mar 20, 2024
365ef48
Update comment.
greg7mdp Mar 20, 2024
13b1c03
Merge pull request #2327 from AntelopeIO/avoid_linear_resize
greg7mdp Mar 20, 2024
98940c1
bump eos-vm submodule to main head w/ less greedy signal handler
spoonincode Mar 22, 2024
421c45a
Merge pull request #2322 from AntelopeIO/eosvm_limit_signal_handler
spoonincode Mar 22, 2024
94e08f7
Merge remote-tracking branch 'origin/release/5.0' into HEAD
spoonincode Mar 23, 2024
4973afc
Merge pull request #2336 from AntelopeIO/papip_stack_usage
spoonincode Mar 25, 2024
82d8961
GH-2334 Avoid unused warning
heifner Mar 27, 2024
0eb578e
Avoid unused http variable by accessing it where needed.
heifner Mar 27, 2024
cf67b13
Merge pull request #2342 from AntelopeIO/fix-warning
heifner Mar 27, 2024
d76bcba
bump chainbase submodule with mlock2() workaround
spoonincode Mar 27, 2024
4729bf3
add ASAN CI "platform"
spoonincode Mar 26, 2024
23d3315
bump chainbase submodule to main HEAD w/ mlock2() workaround
spoonincode Mar 27, 2024
8fe51c6
Merge pull request #2346 from AntelopeIO/chainbase_mlock_asan_war
spoonincode Mar 28, 2024
e29e3ea
Merge pull request #2347 from AntelopeIO/asan_ci
spoonincode Mar 28, 2024
3753fc7
Merge remote-tracking branch 'origin/release/5.0' into bls_update_60
greg7mdp Apr 3, 2024
5d56c4b
Merge pull request #2373 from AntelopeIO/bls_update_60
greg7mdp Apr 3, 2024
a7b948a
Remove sync() call to improve performance
heifner Apr 4, 2024
7826f50
remove executable bit from a lot of files
spoonincode Apr 5, 2024
3dee355
Merge pull request #2377 from AntelopeIO/trace-api-no-sync
heifner Apr 5, 2024
eabddae
Merge pull request #2382 from AntelopeIO/remove_lots_execbit
spoonincode Apr 5, 2024
9924b77
use github provided token for submodule check
spoonincode Apr 10, 2024
99ee7a7
Merge pull request #2390 from AntelopeIO/submod_token
spoonincode Apr 10, 2024
787ad81
Fix issue #2330 by limiting the vector size that can be reserve'd
greg7mdp Aug 20, 2024
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
4 changes: 2 additions & 2 deletions .cicd/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"target":"4",
"prerelease":false
},
"eossystemcontracts":{
"ref":"release/3.2"
"referencecontracts":{
"ref":"main"
}
}
37 changes: 37 additions & 0 deletions .cicd/platforms/asan.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# syntax=docker/dockerfile:1
FROM ubuntu:jammy
ENV TZ="America/New_York"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y build-essential \
cmake \
git \
jq \
libcurl4-openssl-dev \
libgmp-dev \
llvm-11-dev \
lsb-release \
ninja-build \
python3-numpy \
software-properties-common \
file \
wget \
zlib1g-dev \
zstd

RUN yes | bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" llvm.sh 18

#make sure no confusion on what llvm library leap's cmake should pick up on
RUN rm -rf /usr/lib/llvm-18/lib/cmake

ENV LEAP_PLATFORM_HAS_EXTRAS_CMAKE=1
COPY <<-EOF /extras.cmake
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "" FORCE)

set(CMAKE_C_COMPILER "clang-18" CACHE STRING "")
set(CMAKE_CXX_COMPILER "clang++-18" CACHE STRING "")
set(CMAKE_C_FLAGS "-fsanitize=address -fno-omit-frame-pointer" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-fsanitize=address -fno-omit-frame-pointer" CACHE STRING "")
EOF

ENV ASAN_OPTIONS=detect_leaks=0
29 changes: 29 additions & 0 deletions .cicd/platforms/asserton.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# syntax=docker/dockerfile:1
#the exact version of Ubuntu doesn't matter for the purpose of asserton builds. Feel free to upgrade in future
FROM ubuntu:jammy
ENV TZ="America/New_York"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y build-essential \
cmake \
git \
jq \
libcurl4-openssl-dev \
libgmp-dev \
llvm-11-dev \
ninja-build \
python3-numpy \
file \
zlib1g-dev \
zstd

ENV LEAP_PLATFORM_HAS_EXTRAS_CMAKE=1
COPY <<-EOF /extras.cmake
# reset the build type to empty to disable any cmake default flags
set(CMAKE_BUILD_TYPE "" CACHE STRING "" FORCE)

set(CMAKE_C_FLAGS "-O3" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-O3" CACHE STRING "")

set(LEAP_ENABLE_RELEASE_BUILD_TEST "Off" CACHE BOOL "")
EOF
42 changes: 42 additions & 0 deletions .cicd/platforms/ubsan.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# syntax=docker/dockerfile:1
FROM ubuntu:jammy
ENV TZ="America/New_York"
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get upgrade -y && \
apt-get install -y build-essential \
cmake \
git \
jq \
libcurl4-openssl-dev \
libgmp-dev \
llvm-11-dev \
lsb-release \
ninja-build \
python3-numpy \
software-properties-common \
file \
wget \
zlib1g-dev \
zstd

RUN yes | bash -c "$(wget -O - https://apt.llvm.org/llvm.sh)" llvm.sh 18

#make sure no confusion on what llvm library leap's cmake should pick up on
RUN rm -rf /usr/lib/llvm-18/lib/cmake

COPY <<-EOF /ubsan.supp
vptr:wasm_eosio_validation.hpp
vptr:wasm_eosio_injection.hpp
EOF

ENV LEAP_PLATFORM_HAS_EXTRAS_CMAKE=1
COPY <<-EOF /extras.cmake
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "" FORCE)

set(CMAKE_C_COMPILER "clang-18" CACHE STRING "")
set(CMAKE_CXX_COMPILER "clang++-18" CACHE STRING "")
set(CMAKE_C_FLAGS "-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" CACHE STRING "")
set(CMAKE_CXX_FLAGS "-fsanitize=undefined -fno-sanitize-recover=all -fno-omit-frame-pointer" CACHE STRING "")
EOF

ENV UBSAN_OPTIONS=print_stacktrace=1,suppressions=/ubsan.supp
70 changes: 41 additions & 29 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ on:
- default
- true
- false
override-eos-system-contracts:
description: 'Override eos-system-contracts ref'
override-reference-contracts:
description: 'Override reference contracts ref'
type: string

permissions:
Expand Down Expand Up @@ -57,26 +57,26 @@ jobs:
outputs:
cdt-target: ${{steps.versions.outputs.cdt-target}}
cdt-prerelease: ${{steps.versions.outputs.cdt-prerelease}}
eos-system-contracts-ref: ${{steps.versions.outputs.eos-system-contracts-ref}}
reference-contracts-ref: ${{steps.versions.outputs.reference-contracts-ref}}
steps:
- name: Setup cdt and eos-system-contracts versions
- name: Setup cdt and reference-contracts versions
id: versions
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
DEFAULTS_JSON=$(curl -sSfL $(gh api https://api.github.com/repos/${{github.repository}}/contents/.cicd/defaults.json?ref=${{github.sha}} --jq .download_url))
echo cdt-target=$(echo "$DEFAULTS_JSON" | jq -r '.cdt.target') >> $GITHUB_OUTPUT
echo cdt-prerelease=$(echo "$DEFAULTS_JSON" | jq -r '.cdt.prerelease') >> $GITHUB_OUTPUT
echo eos-system-contracts-ref=$(echo "$DEFAULTS_JSON" | jq -r '.eossystemcontracts.ref') >> $GITHUB_OUTPUT
echo reference-contracts-ref=$(echo "$DEFAULTS_JSON" | jq -r '.referencecontracts.ref') >> $GITHUB_OUTPUT

if [[ "${{inputs.override-cdt}}" != "" ]]; then
echo cdt-target=${{inputs.override-cdt}} >> $GITHUB_OUTPUT
fi
if [[ "${{inputs.override-cdt-prerelease}}" == +(true|false) ]]; then
echo cdt-prerelease=${{inputs.override-cdt-prerelease}} >> $GITHUB_OUTPUT
fi
if [[ "${{inputs.override-eos-system-contracts}}" != "" ]]; then
echo eos-system-contracts-ref=${{inputs.override-eos-system-contracts}} >> $GITHUB_OUTPUT
if [[ "${{inputs.override-reference-contracts}}" != "" ]]; then
echo reference-contracts-ref=${{inputs.override-reference-contracts}} >> $GITHUB_OUTPUT
fi

package:
Expand All @@ -93,7 +93,7 @@ jobs:
with:
submodules: recursive
- name: Download builddir
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{matrix.platform}}-build
- name: Build packages
Expand All @@ -112,17 +112,19 @@ jobs:
run: |
python3 -c "from TestHarness import Cluster"
- name: Upload dev package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.platform != 'reproducible'
with:
name: leap-dev-${{matrix.platform}}-amd64
path: build/leap-dev*.deb
compression-level: 0
- name: Upload leap package
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: matrix.platform == 'reproducible'
with:
name: leap-deb-amd64
path: build/leap_*.deb
compression-level: 0

tests:
name: Tests (${{matrix.cfg.name}})
Expand All @@ -133,6 +135,9 @@ jobs:
include:
- cfg: {name: 'ubuntu20', base: 'ubuntu20', builddir: 'ubuntu20'}
- cfg: {name: 'ubuntu22', base: 'ubuntu22', builddir: 'ubuntu22'}
- cfg: {name: 'asserton', base: 'asserton', builddir: 'asserton'}
- cfg: {name: 'ubsan', base: 'ubsan', builddir: 'ubsan'}
- cfg: {name: 'asan', base: 'asan', builddir: 'asan'}
- cfg: {name: 'ubuntu20repro', base: 'ubuntu20', builddir: 'reproducible'}
- cfg: {name: 'ubuntu22repro', base: 'ubuntu22', builddir: 'reproducible'}
runs-on: ["self-hosted", "enf-x86-hightier"]
Expand All @@ -142,7 +147,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Download builddir
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{matrix.cfg.builddir}}-build
- name: Run Parallel Tests
Expand All @@ -153,12 +158,13 @@ jobs:
cd build
ctest --output-on-failure -j $(nproc) -LE "(nonparallelizable_tests|long_running_tests)" --timeout 420
- name: Upload core files from failed tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{matrix.cfg.name}}-tests-logs
if-no-files-found: ignore
path: /cores
compression-level: 0
- name: Check CPU Features
run: awk 'BEGIN {err = 1} /bmi2/ && /adx/ {err = 0} END {exit err}' /proc/cpuinfo

Expand All @@ -171,13 +177,15 @@ jobs:
include:
- cfg: {name: 'ubuntu20', base: 'ubuntu20', builddir: 'ubuntu20'}
- cfg: {name: 'ubuntu22', base: 'ubuntu22', builddir: 'ubuntu22'}
- cfg: {name: 'asserton', base: 'asserton', builddir: 'asserton'}
- cfg: {name: 'ubsan', base: 'ubsan', builddir: 'ubsan'}
- cfg: {name: 'ubuntu20repro', base: 'ubuntu20', builddir: 'reproducible'}
- cfg: {name: 'ubuntu22repro', base: 'ubuntu22', builddir: 'reproducible'}
runs-on: ["self-hosted", "enf-x86-midtier"]
steps:
- uses: actions/checkout@v4
- name: Download builddir
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{matrix.cfg.builddir}}-build
- name: Run tests in parallel containers
Expand All @@ -192,13 +200,14 @@ jobs:
run: docker run --mount type=bind,source=/var/lib/systemd/coredump,target=/cores alpine sh -c 'tar -C /cores/ -c .' | tar x
if: failure()
- name: Upload logs from failed tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{matrix.cfg.name}}-np-logs
path: |
*-logs.tar.gz
core*.zst
compression-level: 0

lr-tests:
name: LR Tests (${{matrix.cfg.name}})
Expand All @@ -209,13 +218,15 @@ jobs:
include:
- cfg: {name: 'ubuntu20', base: 'ubuntu20', builddir: 'ubuntu20'}
- cfg: {name: 'ubuntu22', base: 'ubuntu22', builddir: 'ubuntu22'}
- cfg: {name: 'asserton', base: 'asserton', builddir: 'asserton'}
- cfg: {name: 'ubsan', base: 'ubsan', builddir: 'ubsan'}
- cfg: {name: 'ubuntu20repro', base: 'ubuntu20', builddir: 'reproducible'}
- cfg: {name: 'ubuntu22repro', base: 'ubuntu22', builddir: 'reproducible'}
runs-on: ["self-hosted", "enf-x86-lowtier"]
steps:
- uses: actions/checkout@v4
- name: Download builddir
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{matrix.cfg.builddir}}-build
- name: Run tests in parallel containers
Expand All @@ -230,24 +241,25 @@ jobs:
run: docker run --mount type=bind,source=/var/lib/systemd/coredump,target=/cores alpine sh -c 'tar -C /cores/ -c .' | tar x
if: failure()
- name: Upload logs from failed tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: ${{matrix.cfg.name}}-lr-logs
path: |
*-logs.tar.gz
core*.zst
compression-level: 0

libtester-tests:
name: libtester tests
needs: [platform-cache, build-base, v, package]
strategy:
fail-fast: false
matrix:
platform: [ubuntu20, ubuntu22]
platform: [ubuntu22]
test: [build-tree, make-dev-install, deb-install]
runs-on: ["self-hosted", "enf-x86-midtier"]
container: ${{ matrix.test != 'deb-install' && fromJSON(needs.platform-cache.outputs.platforms)[matrix.platform].image || matrix.platform == 'ubuntu20' && 'ubuntu:focal' || 'ubuntu:jammy' }}
container: ${{ matrix.test != 'deb-install' && fromJSON(needs.platform-cache.outputs.platforms)[matrix.platform].image || 'ubuntu:jammy' }}
env:
DEBIAN_FRONTEND: noninteractive
TZ: Etc/UTC
Expand All @@ -265,7 +277,7 @@ jobs:
submodules: recursive
- if: ${{ matrix.test != 'deb-install' }}
name: Download leap builddir
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{matrix.platform}}-build
- if: ${{ matrix.test != 'deb-install' }}
Expand All @@ -287,7 +299,7 @@ jobs:
rm -r *
- if: ${{ matrix.test == 'deb-install' }}
name: Download leap-dev
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: leap-dev-${{matrix.platform}}-amd64
- if: ${{ matrix.test == 'deb-install' }}
Expand All @@ -312,21 +324,21 @@ jobs:
rm ./*.deb

# Reference Contracts
- name: checkout eos-system-contracts
- name: checkout reference-contracts
uses: actions/checkout@v4
with:
repository: eosnetworkfoundation/eos-system-contracts
path: eos-system-contracts
ref: '${{needs.v.outputs.eos-system-contracts-ref}}'
repository: AntelopeIO/reference-contracts
path: reference-contracts
ref: '${{needs.v.outputs.reference-contracts-ref}}'
- if: ${{ matrix.test == 'deb-install' }}
name: Install eos-system-contracts deps
name: Install reference-contracts deps
run: |
apt-get -y install cmake build-essential
- name: Build & Test eos-system-contracts
- name: Build & Test reference-contracts
run: |
cmake -S eos-system-contracts -B eos-system-contracts/build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=On -DSYSTEM_ENABLE_LEAP_VERSION_CHECK=Off -DSYSTEM_ENABLE_CDT_VERSION_CHECK=Off
cmake --build eos-system-contracts/build -- -j $(nproc)
cd eos-system-contracts/build/tests
cmake -S reference-contracts -B reference-contracts/build -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=On -DSYSTEM_ENABLE_LEAP_VERSION_CHECK=Off -DSYSTEM_ENABLE_CDT_VERSION_CHECK=Off
cmake --build reference-contracts/build -- -j $(nproc)
cd reference-contracts/build/tests
ctest --output-on-failure -j $(nproc)

all-passing:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/build_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ jobs:
run: |
# https://github.com/actions/runner/issues/2033
chown -R $(id -u):$(id -g) $PWD
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_LEAP_DEV_DEB=On -GNinja
cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_LEAP_DEV_DEB=On ${LEAP_PLATFORM_HAS_EXTRAS_CMAKE:+-C /extras.cmake} -GNinja
cmake --build build
tar -pc --exclude "*.o" build | zstd --long -T0 -9 > build.tar.zst
- name: Upload builddir
uses: AntelopeIO/upload-artifact-large-chunks-action@v1
uses: actions/upload-artifact@v4
with:
name: ${{matrix.platform}}-build
path: build.tar.zst
path: build.tar.zst
compression-level: 0
11 changes: 11 additions & 0 deletions .github/workflows/pinned_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pinned Build"

on:
workflow_dispatch:

jobs:
dummy:
runs-on: ubuntu-latest
steps:
- name: Dummy
run: echo This workflow is a stub on main to allow it to be manually run on 3.x/4.0
2 changes: 1 addition & 1 deletion .github/workflows/submod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Checkout
run: |
git clone https://github.com/${GITHUB_REPOSITORY} .
git clone https://x-access-token:${{github.token}}@github.com/${GITHUB_REPOSITORY} .
git fetch -v --prune origin +refs/pull/${PR_NUMBER}/merge:refs/remotes/pull/${PR_NUMBER}/merge
git checkout --force --progress refs/remotes/pull/${PR_NUMBER}/merge
git submodule sync --recursive
Expand Down
Loading
Loading