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

Sync feature/atree-inlining-cadence-v0.42 with latest master #5734

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2396 commits
Select commit Hold shift + click to select a range
146b3a8
improve error handling and safety
ramtinms Mar 25, 2024
10fb7e3
improve naming
ramtinms Mar 25, 2024
616cca8
no need to wrap validation errors anymore
ramtinms Mar 25, 2024
53b6c82
remove unnecessary error codes
ramtinms Mar 25, 2024
636c182
add a saftey check on empty result
ramtinms Mar 25, 2024
2d9d4b5
fix bug that where event conversions were dropped
peterargue Mar 21, 2024
5ec30e6
Implement EVM.getLatestBlock() function to expose info about the late…
m-Peter Mar 26, 2024
2e62a67
Added more calls to test, added access node calls
AndriiDiachuk Mar 26, 2024
d373009
Added more test cases to test
AndriiDiachuk Mar 26, 2024
64d5162
Fixed test
AndriiDiachuk Mar 26, 2024
77c86d0
Added messageIndex to subscribe events, tests to new endpoints, godoc…
UlyanaAndrukhiv Mar 26, 2024
92ac430
Merge branch 'master' into janez/fix-fvm-context-on-vn
janezpodhostnik Mar 26, 2024
f5ea501
Relax requirement for elapsed time during binstat init
jribbink Mar 26, 2024
d89c1c3
Merge pull request #5582 from onflow/petera/backport-tx-results-fix
peterargue Mar 26, 2024
15c89f0
Merge branch 'master' into jribbink/binstat-time-elapse
jribbink Mar 26, 2024
f5d8ff9
Merge pull request #5589 from onflow/jribbink/binstat-time-elapse
jribbink Mar 26, 2024
63671f8
update comments
zhangchiqing Mar 26, 2024
d0e70db
add ingestion throttle
zhangchiqing Feb 1, 2024
d5aec19
increase buffer size
zhangchiqing Feb 1, 2024
0604cc9
remove throttle engine
zhangchiqing Feb 2, 2024
0469425
lint
zhangchiqing Feb 2, 2024
465a3d0
rename throttle
zhangchiqing Feb 2, 2024
669e087
update throttle
zhangchiqing Feb 2, 2024
3bc7cd7
Implemented timestamp for SubcribeEventsResponse, added godoc, update…
UlyanaAndrukhiv Mar 27, 2024
7aba525
Added max account addresses to config
AndriiDiachuk Mar 27, 2024
863115b
Linted
AndriiDiachuk Mar 27, 2024
9c782ae
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into Andrii…
AndriiDiachuk Mar 27, 2024
a6043ae
Changed var creation, fixed godoc for struct
AndriiDiachuk Mar 27, 2024
63460b4
Removed empty line
AndriiDiachuk Mar 27, 2024
e7aaf68
Added godoc for EventsRetriever
AndriiDiachuk Mar 27, 2024
51a3fb6
Merge pull request #5586 from m-Peter/add-evm-get-latest-block
sideninja Mar 27, 2024
360b7e5
Refactored AccountStatuses suite
AndriiDiachuk Mar 27, 2024
296f22b
Created commons functions for both test suites
AndriiDiachuk Mar 27, 2024
32320a5
Linted
AndriiDiachuk Mar 27, 2024
f4e4fc7
Remove feature flag for ABI-only version of EVM contract
m-Peter Mar 26, 2024
d53dcf9
Added values check in test
AndriiDiachuk Mar 27, 2024
7d6bebd
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into Andrii…
AndriiDiachuk Mar 27, 2024
0048cab
Refactored grpc state stream integration test, added tests for error …
UlyanaAndrukhiv Mar 27, 2024
9fa6ebc
apply pr feedback
ramtinms Mar 27, 2024
43daee7
typo
ramtinms Mar 27, 2024
2a3c855
Merge branch 'master' into ramtin/5501-batch-run-part1
ramtinms Mar 27, 2024
5922cda
Merge pull request #5577 from onflow/ramtin/5501-batch-run-part1
ramtinms Mar 28, 2024
4b9d826
clarify build details when importing
tarakby Mar 28, 2024
66ac1a2
Updated flow-emulator version
UlyanaAndrukhiv Mar 28, 2024
0a180d5
Merge branch 'master' into UlyanaAndrukhiv/event-streaming
UlyanaAndrukhiv Mar 28, 2024
648520a
Linted
UlyanaAndrukhiv Mar 28, 2024
81aff9b
Merge branch 'UlyanaAndrukhiv/event-streaming' of github.com:The-K-R-…
UlyanaAndrukhiv Mar 28, 2024
46056e4
Updated test
UlyanaAndrukhiv Mar 28, 2024
0f3361f
Updated godoc, updated test
UlyanaAndrukhiv Mar 28, 2024
a2da6af
Marked SubscribeEvents as deprecated in godoc
UlyanaAndrukhiv Mar 28, 2024
3cb96da
Updated godoc
UlyanaAndrukhiv Mar 28, 2024
8e5c8fc
Updated test
UlyanaAndrukhiv Mar 28, 2024
f4edafd
Added more api calls to test
AndriiDiachuk Mar 28, 2024
1e77fdc
create protocol snapshot from checkpoint file
zhangchiqing Mar 28, 2024
ffbd640
add happy path tests
kc1116 Mar 29, 2024
1ffab45
Added godoc for test
AndriiDiachuk Mar 29, 2024
5959f25
Updated integration test
UlyanaAndrukhiv Mar 29, 2024
cd92820
Fixed remarks, done some refactoring
AndriiDiachuk Mar 29, 2024
6356a2c
Updated protobuf version, updated godoc
UlyanaAndrukhiv Mar 29, 2024
257eb60
Moved everything to one test
AndriiDiachuk Mar 29, 2024
a555ab1
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into observ…
AndriiDiachuk Mar 29, 2024
2482500
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into Andrii…
AndriiDiachuk Mar 29, 2024
660216a
Fix storage map key conversion in atree migration
fxamacker Mar 29, 2024
897b34b
Added test cases, fixed unexpected behaviour when empty account addre…
AndriiDiachuk Mar 29, 2024
03dd4cc
Updated flow project version
AndriiDiachuk Mar 29, 2024
d43b121
Refactored function
AndriiDiachuk Mar 29, 2024
c45d5b8
Merge pull request #5406 from AndriiDiachuk/AndriiDiachuk/access-grpc…
peterargue Mar 29, 2024
21ce965
Add util command to extract payload by address
fxamacker Mar 29, 2024
45fcead
Update cmd/bootstrap/cmd/keys.go
kc1116 Apr 1, 2024
5f4c073
Merged with master, created SubscribeEventsResponse for events subscr…
UlyanaAndrukhiv Apr 1, 2024
18f7aec
Update keys.go
kc1116 Apr 1, 2024
5e400eb
Return validation error of Cadence composite elements early
fxamacker Apr 1, 2024
8c1de4c
Optimize Cadence field count in migration value validation
fxamacker Apr 1, 2024
43f6533
Add flag "continue-migration-on-validation-errors"
fxamacker Apr 1, 2024
eadbc1f
Updated last commit
UlyanaAndrukhiv Apr 1, 2024
5b27fcc
Updated docs
UlyanaAndrukhiv Apr 1, 2024
c82ffbc
move NotEjected filter to filter package
kc1116 Apr 1, 2024
9b21bfb
Merge pull request #5587 from m-Peter/remove-feature-flag-evm-abi-only
janezpodhostnik Apr 1, 2024
b4917ab
Merge pull request #5440 from onflow/janez/fix-fvm-context-on-vn
janezpodhostnik Apr 1, 2024
f53f244
Merge branch 'master' into UlyanaAndrukhiv/event-streaming
UlyanaAndrukhiv Apr 1, 2024
d9c5f06
Replace NopMemoryGauge with nil in atree migration
fxamacker Apr 1, 2024
ba7ad64
Merge branch 'master' into fxamacker/improve-cadence-value-validation…
fxamacker Apr 1, 2024
10c1048
Merge pull request #5605 from onflow/fxamacker/fix-atree-migration-st…
fxamacker Apr 1, 2024
2327567
limit the height range when querying getBlock in FVM
zhangchiqing Mar 29, 2024
3d95ab8
include extra blocks in sealing segment
zhangchiqing Mar 29, 2024
506657e
add test case
zhangchiqing Apr 1, 2024
94b5dcc
Merge branch 'master' into fxamacker/improve-cadence-value-validation…
fxamacker Apr 1, 2024
9be7cac
Merge pull request #5608 from onflow/fxamacker/add-extract-payload-co…
fxamacker Apr 1, 2024
321da97
get subsets of internal collectors and partner collectors from snapshot
kc1116 Apr 1, 2024
506ccd0
Merge branch 'master' into fxamacker/improve-cadence-value-validation…
fxamacker Apr 1, 2024
eb2ea49
Merge pull request #5609 from onflow/fxamacker/improve-cadence-value-…
fxamacker Apr 1, 2024
7677027
use space
zhangchiqing Apr 1, 2024
5429925
Merge pull request #5248 from onflow/leo/ingestion-block-queue
zhangchiqing Apr 1, 2024
b87ed9f
use validator
zhangchiqing Apr 1, 2024
8c110ca
log blocksToSkip
zhangchiqing Apr 1, 2024
9a4542d
Update cmd/util/cmd/epochs/cmd/recover.go
kc1116 Apr 2, 2024
91d6599
Update cmd/util/cmd/epochs/cmd/recover.go
kc1116 Apr 2, 2024
051629d
Update cmd/util/cmd/epochs/cmd/recover.go
kc1116 Apr 2, 2024
1399e18
Update cmd/util/cmd/epochs/cmd/recover.go
kc1116 Apr 2, 2024
2b9c152
Update recover.go
kc1116 Apr 2, 2024
3c8ee33
epoch counter should be an input
kc1116 Apr 2, 2024
d9db0eb
smart contract should generate random source with revertibleRandom
kc1116 Apr 2, 2024
f48b5a7
Update cmd/util/cmd/epochs/cmd/recover.go
kc1116 Apr 2, 2024
0cb7cae
Update cmd/util/cmd/epochs/cmd/recover.go
kc1116 Apr 2, 2024
884fdbf
add epoch-length and epoch-staking-phase-length
kc1116 Apr 2, 2024
6aacb01
use for range loop
kc1116 Apr 2, 2024
82c5803
dkg group key should be the first key in the array
kc1116 Apr 2, 2024
1d67790
Update cmd/util/cmd/common/clusters.go
kc1116 Apr 2, 2024
1c86a58
Merge branch 'khalil/6959-efm-recvery-epoch-data-generation' of githu…
kc1116 Apr 2, 2024
dd30226
Refactored functions
AndriiDiachuk Apr 2, 2024
ba3f1c3
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into observ…
AndriiDiachuk Apr 2, 2024
eb5e7fa
Updated BackendExecutionDataSuite, refactored tests
UlyanaAndrukhiv Apr 2, 2024
4c1f1d5
Merge branch 'master' into UlyanaAndrukhiv/event-streaming
UlyanaAndrukhiv Apr 2, 2024
07f7925
Updated unit test
UlyanaAndrukhiv Apr 2, 2024
2e51bb0
Merge branch 'UlyanaAndrukhiv/event-streaming' of github.com:The-K-R-…
UlyanaAndrukhiv Apr 2, 2024
99362c4
Merge branch 'master' into janez/improve-tps-metering
janezpodhostnik Apr 2, 2024
8d6611f
add godoc for ConstructRootQCsForClusters
kc1116 Apr 2, 2024
263974e
add godoc for *PartnerInfo util funcs
kc1116 Apr 2, 2024
c6a1989
document GetSnapshotAtEpochAndPhase arguments
kc1116 Apr 2, 2024
32df104
refactor fatal level logs
kc1116 Apr 2, 2024
4b3dae6
fix node ids in test root snapshot fixture
kc1116 Apr 2, 2024
3a8ec88
remove debug logs
kc1116 Apr 2, 2024
db2b66f
Updated protobuf version
UlyanaAndrukhiv Apr 3, 2024
6d2d01d
Updated according to suggested comments
UlyanaAndrukhiv Apr 3, 2024
de78346
Moved MessageIndex tracking to handler
UlyanaAndrukhiv Apr 3, 2024
645fceb
refactor GetValidSnapshot
zhangchiqing Apr 3, 2024
0060ce9
Update cmd/util/cmd/common/clusters.go
kc1116 Apr 3, 2024
3a2b99e
Update cmd/util/cmd/common/clusters.go
kc1116 Apr 3, 2024
cba5888
update checkpoint.go to use GetDynamicBootstrapSnapshot
zhangchiqing Apr 3, 2024
fcb1006
Apply suggestions from code review
kc1116 Apr 3, 2024
340d3ab
Apply suggestions from code review
kc1116 Apr 3, 2024
d73ca60
Implemented subscribe blocks, headers, digests endpoints for observer
UlyanaAndrukhiv Apr 3, 2024
78e7b22
Refactored grpc_state_stream_test
UlyanaAndrukhiv Apr 3, 2024
b00fb70
Added integration test for access and observer block streaming
UlyanaAndrukhiv Apr 3, 2024
85ebc4d
Added nolint for SubscribeEvents
UlyanaAndrukhiv Apr 3, 2024
7c4af2d
upgrade crypto version
Apr 3, 2024
5f033da
Apply suggestions from code review
zhangchiqing Apr 3, 2024
1aab1ef
Merge pull request #5601 from onflow/tarak/crypto-build
tarakby Apr 3, 2024
846967e
add todo
zhangchiqing Apr 3, 2024
f50d47b
Removed wrapper function for backend events
UlyanaAndrukhiv Apr 4, 2024
f4bf177
Updated doc according to suggestions
UlyanaAndrukhiv Apr 4, 2024
97fd28d
Added check for MessageIndex to integration test
UlyanaAndrukhiv Apr 4, 2024
7041efe
Merge branch 'master' into UlyanaAndrukhiv/event-streaming
UlyanaAndrukhiv Apr 4, 2024
1ebf832
Updated flow-emulator version
UlyanaAndrukhiv Apr 4, 2024
286bcf3
Fixed naming
AndriiDiachuk Apr 4, 2024
a7b2e09
Merge branch 'master' into UlyanaAndrukhiv/5572-streaming-blocks-inte…
UlyanaAndrukhiv Apr 4, 2024
7df7be7
Linted
UlyanaAndrukhiv Apr 4, 2024
d0b6949
Updated handleEventsResponse according to comment
UlyanaAndrukhiv Apr 4, 2024
fdc9b86
Refactored
AndriiDiachuk Apr 4, 2024
ed01692
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into observ…
AndriiDiachuk Apr 4, 2024
be28df2
Updated error message for integration test
UlyanaAndrukhiv Apr 4, 2024
3eff3b8
fix doc string
janezpodhostnik Apr 4, 2024
3d66192
Merge pull request #5607 from onflow/leo/6939-limit-get-block-height
zhangchiqing Apr 4, 2024
f63c06f
fix lint
zhangchiqing Apr 4, 2024
ca8a169
Merge pull request #5604 from onflow/leo/5580-checkpoint-protocol-sna…
zhangchiqing Apr 4, 2024
204e858
validate checkpoint head file
zhangchiqing Apr 4, 2024
0b0592c
Merge pull request #5602 from The-K-R-O-K/UlyanaAndrukhiv/event-strea…
peterargue Apr 4, 2024
3c4bb93
add test case
zhangchiqing Apr 4, 2024
8da90cc
Removed replace for protobuf, updated version
UlyanaAndrukhiv Apr 4, 2024
4b8293b
Removed replace for flow-emulator, updated version
UlyanaAndrukhiv Apr 4, 2024
b915975
Merged with master
UlyanaAndrukhiv Apr 4, 2024
b28dcd5
Removed unnecessary comment from test
UlyanaAndrukhiv Apr 4, 2024
b4a19f0
Renamed variable in test
UlyanaAndrukhiv Apr 4, 2024
ad12394
Merge pull request #5626 from The-K-R-O-K/UlyanaAndrukhiv/version-upd…
peterargue Apr 4, 2024
f32b4b6
Refactored test where all rpcs is being checked
AndriiDiachuk Apr 5, 2024
0b9e68a
Merge branch 'master' of github.com:AndriiDiachuk/flow-go into observ…
AndriiDiachuk Apr 5, 2024
eaf2bc4
Add storage health check flags for atree migration
fxamacker Apr 5, 2024
20a99c9
Merge branch 'master' into UlyanaAndrukhiv/5572-streaming-blocks-inte…
UlyanaAndrukhiv Apr 8, 2024
b9aa85c
Updated integration test according to comments
UlyanaAndrukhiv Apr 8, 2024
6070f4e
add integration tests skeleton
kc1116 Apr 8, 2024
4b71333
Merge branch 'khalil/6959-efm-recvery-epoch-data-generation' of githu…
kc1116 Apr 8, 2024
b491179
Update service_events_fixtures.go
kc1116 Apr 8, 2024
a224298
[Network] Use string concatination in rpc tracer ID
peterargue Apr 8, 2024
3baf7c0
update comments
zhangchiqing Apr 8, 2024
fb3ec2c
lint fix
kc1116 Apr 8, 2024
a8cfa20
Update recover.go
kc1116 Apr 8, 2024
22511ab
fix lint
kc1116 Apr 8, 2024
2eb6b11
fix imports
kc1116 Apr 8, 2024
ad9cede
fix cmd unit tests add missing "wrote file" logs
kc1116 Apr 9, 2024
2701102
remove extra SN nodes
kc1116 Apr 9, 2024
e07c96a
Update recover_epoch_efm_test.go
kc1116 Apr 9, 2024
6bc838f
Merge branch 'master' into khalil/6959-efm-recvery-epoch-data-generation
kc1116 Apr 9, 2024
b92fe5d
Merge pull request #5612 from AndriiDiachuk/observer-access-api-integ…
peterargue Apr 9, 2024
6ab8300
Move reusable migration funcs to migrations/utils.go
fxamacker Apr 9, 2024
1d32ad0
Merge branch 'master' into fxamacker/add-storage-health-check-flag-fo…
fxamacker Apr 9, 2024
54a1eef
Merge pull request #5636 from onflow/fxamacker/add-storage-health-che…
fxamacker Apr 9, 2024
a203323
Merge pull request #5641 from onflow/petera/5640-update-string-concat…
peterargue Apr 9, 2024
d1f78a8
add ingestion core
zhangchiqing Mar 26, 2024
13cfccd
address review comments
zhangchiqing Apr 1, 2024
e2a16a6
move deduplicate to flow package
zhangchiqing Apr 1, 2024
9eb8a81
simplify migration runtime, no need for interface and environment
turbolent Apr 10, 2024
9882d23
simplify validation runtime: no need for interface and environment
turbolent Apr 10, 2024
2557e3f
Merge branch 'master' into UlyanaAndrukhiv/5572-streaming-blocks-inte…
UlyanaAndrukhiv Apr 10, 2024
cd6a7a3
Added AssertAllResponsesHandled to ResponseTracker
UlyanaAndrukhiv Apr 10, 2024
8fc4632
Merge branch 'UlyanaAndrukhiv/5572-streaming-blocks-integration-test'…
UlyanaAndrukhiv Apr 10, 2024
aa08b01
Merge pull request #5651 from onflow/bastian/simplify-migration-runtimes
turbolent Apr 10, 2024
44a7ca6
improve naming for migrator runtime
turbolent Apr 10, 2024
b171fa8
remove unnecessary report writer factory field
turbolent Apr 10, 2024
a350225
update to Cadence v0.42.10
turbolent Apr 10, 2024
0a4cfb1
remove unused AccountsAtreeLedger
turbolent Apr 10, 2024
17d27c0
improve comment
turbolent Apr 10, 2024
8a0839b
generate set of all storage map domains from slice
turbolent Apr 10, 2024
4051d44
Merge branch 'master' into UlyanaAndrukhiv/5572-streaming-blocks-inte…
UlyanaAndrukhiv Apr 11, 2024
7b9997b
Merge pull request #5624 from The-K-R-O-K/UlyanaAndrukhiv/5572-stream…
Guitarheroua Apr 11, 2024
55fd3d0
Merge pull request #5652 from onflow/bastian/improve-migrator-runtime…
turbolent Apr 12, 2024
fa9f719
remove temporary code
janezpodhostnik Apr 12, 2024
f4ea637
add timestamp to block type
Apr 12, 2024
b184264
retrieve timestamp on new block
Apr 12, 2024
1f712ce
emit timestamp on block event
Apr 12, 2024
307620a
default test block info
Apr 12, 2024
2b7a321
Merge pull request #5548 from onflow/janez/improve-tps-metering
janezpodhostnik Apr 12, 2024
9fab484
change timestamp type due to rlp serialisation issue
Apr 12, 2024
c39adbf
fix timestamp event type
Apr 12, 2024
ab1ee1e
test timestamp on block
Apr 12, 2024
3a7d4b6
Merge pull request #5625 from onflow/leo/validate-checkpoint-head-file
zhangchiqing Apr 12, 2024
cc662a8
fix fvm test with blocks info
Apr 12, 2024
d1470a6
Merge branch 'master' into gregor/evm/block-timestamp
sideninja Apr 12, 2024
013c10f
fix lint
Apr 12, 2024
203a05d
add block timestamp to context
Apr 12, 2024
b8f8c2a
add timestamp to evm block contract
Apr 12, 2024
72d01a4
check timestamp on block test
Apr 12, 2024
267c6c3
addres review comments for throttle
zhangchiqing Apr 12, 2024
95b468d
use unix seconds not nanoseconds
Apr 12, 2024
015156b
Merge pull request #5654 from onflow/bastian/cadence-v0.42.10
turbolent Apr 12, 2024
3d1a534
add test cases for flow.Deduplicate
zhangchiqing Apr 12, 2024
b406985
clean up EVM environment setup
turbolent Apr 13, 2024
c27754f
Update integration/tests/epochs/base_suite.go
kc1116 Apr 15, 2024
47024da
use 0 as a default value force the user to provide values
kc1116 Apr 15, 2024
603d1da
Apply suggestions from code review
kc1116 Apr 15, 2024
b40197e
Update cmd/util/cmd/common/node_info.go
kc1116 Apr 15, 2024
6053858
Update cmd/util/cmd/common/node_info.go
kc1116 Apr 15, 2024
a7e6e2c
Apply suggestions from code review
kc1116 Apr 15, 2024
f823c45
Update cmd/util/cmd/common/node_info.go
kc1116 Apr 15, 2024
47361e2
Merge branch 'khalil/6959-efm-recvery-epoch-data-generation' of githu…
kc1116 Apr 15, 2024
5e3dffd
add sanity check ensure all node weights are equal when generating cl…
kc1116 Apr 15, 2024
897809d
Merge branch 'master' into khalil/6959-efm-recvery-epoch-data-generation
kc1116 Apr 15, 2024
a55fda1
Update node_info.go
kc1116 Apr 16, 2024
3ee695d
Merge branch 'khalil/6959-efm-recvery-epoch-data-generation' of githu…
kc1116 Apr 16, 2024
ab88472
Update clusters.go
kc1116 Apr 16, 2024
12e3534
Update clusters.go
kc1116 Apr 16, 2024
e64ad8a
Update clusters.go
kc1116 Apr 16, 2024
17c153a
Merge pull request #5657 from onflow/bastian/improve-migrations
turbolent Apr 16, 2024
56de908
Merge pull request #5668 from onflow/bastian/evm-env-setup-cleanup
turbolent Apr 16, 2024
291ea4a
log the checkpoint file when using generating protocol snapshot from
zhangchiqing Apr 16, 2024
b772212
Merge pull request #5337 from onflow/leo/ingestion-throttle
zhangchiqing Apr 16, 2024
547799c
Merge branch 'master' into gregor/evm/block-timestamp
sideninja Apr 17, 2024
2d8f653
Merge pull request #5660 from onflow/gregor/evm/block-timestamp
sideninja Apr 17, 2024
9c4c4a3
Merge pull request #5576 from onflow/khalil/6959-efm-recvery-epoch-da…
kc1116 Apr 17, 2024
d57892b
Merge pull request #5679 from onflow/leo/read-protocol-state-snapshot…
zhangchiqing Apr 17, 2024
76d087c
Merge pull request #5288 from onflow/leo/ingestion-core
zhangchiqing Apr 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
22 changes: 14 additions & 8 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Build Node Docker Images
# This workflow is used to build and push one-off images for specific node types. This is useful
# when deploying hotfixes or any time a change is not needed for all node roles.
name: Build Node Docker Images

on:
workflow_dispatch:
Expand Down Expand Up @@ -38,9 +38,10 @@ on:
type: boolean
description: 'Observer'
required: false
include_without_netgo:
# GHA allows only up to 10 inputs - regroup two entries in one
include_alternative_builds:
type: boolean
description: 'Build `without_netgo` images'
description: 'Build amd64 `without_adx` and `without_netgo_without_adx` images, and arm64 images'
required: false

jobs:
Expand Down Expand Up @@ -111,17 +112,22 @@ jobs:
run: |
gcloud auth configure-docker

- name: Build/Push ${{ matrix.role }} images
- name: Build/Push ${{ matrix.role }} amd64 images with adx (default)
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: |
make docker-build-${{ matrix.role }} docker-push-${{ matrix.role }}
make docker-build-${{ matrix.role }}-with-adx docker-push-${{ matrix.role }}-with-adx

- name: Build/Push ${{ matrix.role }} without_netgo images
if: ${{ inputs.include_without_netgo }}
- name: Build/Push ${{ matrix.role }} amd64 images without netgo and without adx, arm64 images
if: ${{ inputs.include_alternative_builds }}
env:
IMAGE_TAG: ${{ inputs.docker_tag }}
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: |
make docker-build-${{ matrix.role }}-without-netgo docker-push-${{ matrix.role }}-without-netgo
make docker-build-${{ matrix.role }}-without-adx docker-push-${{ matrix.role }}-without-adx \
docker-build-${{ matrix.role }}-without-netgo-without-adx docker-push-${{ matrix.role }}-without-netgo-without-adx \
docker-cross-build-${{ matrix.role }}-arm docker-push-${{ matrix.role }}-arm



12 changes: 8 additions & 4 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,13 @@ jobs:
env:
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: |
make docker-build-flow
make docker-build-flow-without-netgo
make docker-build-flow-with-adx
make docker-build-flow-without-adx
make docker-build-flow-without-netgo-without-adx
make docker-cross-build-flow-arm
- name: Docker push
run: |
make docker-push-flow
make docker-push-flow-without-netgo
make docker-push-flow-with-adx
make docker-push-flow-without-adx
make docker-push-flow-without-netgo-without-adx
make docker-push-flow-arm
112 changes: 88 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,43 @@ jobs:
cache: true
- name: Set Test Matrix
id: set-test-matrix
run: go run utils/test_matrix/test_matrix.go admin cmd consensus engine/access engine/collection engine/common engine/consensus engine/execution/ingestion:buildjet-8vcpu-ubuntu-2204 engine/execution/computation engine/execution engine/verification engine:buildjet-4vcpu-ubuntu-2204 fvm ledger module/dkg module:buildjet-4vcpu-ubuntu-2204 network/alsp network/test/cohort1:buildjet-16vcpu-ubuntu-2204 network/test/cohort2:buildjet-4vcpu-ubuntu-2204 network/p2p/connection network/p2p/node:buildjet-4vcpu-ubuntu-2204 network/p2p/scoring network/p2p network state storage utils
run: go run tools/test_matrix_generator/matrix.go

create-insecure-dynamic-test-matrix:
name: Create Dynamic Unit Test Insecure Package Matrix
runs-on: ubuntu-latest
outputs:
dynamic-matrix: ${{ steps.set-test-matrix.outputs.dynamicMatrix }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
timeout-minutes: 10 # fail fast. sometimes this step takes an extremely long time
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Set Test Matrix
id: set-test-matrix
run: go run tools/test_matrix_generator/matrix.go -c insecure

create-integration-dynamic-test-matrix:
name: Create Dynamic Integration Test Package Matrix
runs-on: ubuntu-latest
outputs:
dynamic-matrix: ${{ steps.set-test-matrix.outputs.dynamicMatrix }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
timeout-minutes: 10 # fail fast. sometimes this step takes an extremely long time
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Set Test Matrix
id: set-test-matrix
run: go run tools/test_matrix_generator/matrix.go -c integration

unit-test:
name: Unit Tests (${{ matrix.targets.name }})
Expand Down Expand Up @@ -127,23 +163,15 @@ jobs:
flags: unittests
name: codecov-umbrella

unit-test-modules:
name: Unit Tests (Modules)
unit-test-insecure:
name: Unit Tests Insecure (${{ matrix.targets.name }})
needs: create-insecure-dynamic-test-matrix
strategy:
fail-fast: false
matrix:
include:
- name: insecure
setup: install-tools
retries: 5
race: 0
runner: buildjet-4vcpu-ubuntu-2204
- name: integration
setup: install-tools
retries: 5
race: 0
runner: buildjet-4vcpu-ubuntu-2204
runs-on: ${{ matrix.runner }}
targets: ${{ fromJSON(needs.create-insecure-dynamic-test-matrix.outputs.dynamic-matrix)}}
## need to set image explicitly due to GitHub logging issue as described in https://github.com/onflow/flow-go/pull/3087#issuecomment-1234383202
runs-on: ${{ matrix.targets.runner }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
Expand All @@ -153,17 +181,17 @@ jobs:
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Setup tests (${{ matrix.name }})
run: make ${{ matrix.setup }}
- name: Run tests (${{ matrix.name }})
env:
RACE_DETECTOR: ${{ matrix.race }}
- name: Setup tests (${{ matrix.targets.name }})
run: VERBOSE=1 make -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" install-tools
- name: Run tests (${{ matrix.targets.name }})
uses: nick-fields/retry@v2
with:
timeout_minutes: 35
max_attempts: ${{ matrix.retries }}
# run test target inside each module's root
command: VERBOSE=1 make -C ${{ matrix.name }} test
max_attempts: 5
command: VERBOSE=1 make -C ./insecure -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" test
# TODO(rbtz): re-enable when we fix exisiting races.
#env:
# RACE_DETECTOR: 1
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
Expand Down Expand Up @@ -191,7 +219,7 @@ jobs:
- name: Docker build
env:
CADENCE_DEPLOY_KEY: ${{ secrets.CADENCE_DEPLOY_KEY }}
run: make docker-build-flow docker-build-flow-corrupt
run: make docker-native-build-flow docker-native-build-flow-corrupt
- name: Save Docker images
run: |
docker save \
Expand All @@ -212,6 +240,42 @@ jobs:
# use the workflow run id as part of the cache key to ensure these docker images will only be used for a single workflow run
key: flow-docker-images-${{ hashFiles('**/Dockerfile') }}-${{ github.run_id }}

integration-test-others:
name: Integration Tests Others (${{ matrix.targets.name }})
needs: create-integration-dynamic-test-matrix
strategy:
fail-fast: false
matrix:
targets: ${{ fromJSON(needs.create-integration-dynamic-test-matrix.outputs.dynamic-matrix)}}
## need to set image explicitly due to GitHub logging issue as described in https://github.com/onflow/flow-go/pull/3087#issuecomment-1234383202
runs-on: ${{ matrix.targets.runner }}
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v4
timeout-minutes: 10 # fail fast. sometimes this step takes an extremely long time
with:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Setup tests (${{ matrix.targets.name }})
run: VERBOSE=1 make -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" install-tools
- name: Run tests (${{ matrix.targets.name }})
uses: nick-fields/retry@v2
with:
timeout_minutes: 35
max_attempts: 5
command: VERBOSE=1 make -C ./integration -e GO_TEST_PACKAGES="${{ matrix.targets.packages }}" test
# TODO(rbtz): re-enable when we fix exisiting races.
#env:
# RACE_DETECTOR: 1
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
file: ./coverage.txt
flags: unittests
name: codecov-umbrella

integration-test:
name: Integration Tests
needs: docker-build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ jobs:
go-version: ${{ env.GO_VERSION }}
cache: true
- name: Docker build
run: make docker-build-flow docker-build-flow-corrupt
run: make docker-native-build-flow docker-native-build-flow-corrupt
- name: Run tests
run: make -es -C integration ${{ matrix.target }} > test-output
timeout-minutes: 100
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
/cmd/util/util
/cmd/bootstrap/bootstrap

# Test ouput of bootstrapping CLI
cmd/bootstrap/bootstrap-example

# Test binary, build with `go test -c`
*.test
Expand Down
Loading
Loading