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

[build] add mergify rules #4486

Merged
merged 1 commit into from
Aug 8, 2023
Merged

[build] add mergify rules #4486

merged 1 commit into from
Aug 8, 2023

Conversation

sophoah
Copy link
Contributor

@sophoah sophoah commented Aug 7, 2023

Add mergify rules to re-enforce PR conditions before merging and how we merge the PRs

.mergify.yml Show resolved Hide resolved
@sophoah sophoah merged commit 764474a into harmony-one:dev Aug 8, 2023
sophoah added a commit to sophoah/harmony that referenced this pull request Aug 10, 2023
* disable go test verbose flag

* fix consensus catchup issue

* fix issue from runnig sync loop while stream sync is runing

* update deprecated go-libp2p packages

* goimports

* add error desc in validateNewBlock to help to identify validation issues

* let stream sync downloader continues loop even if error occured

* pass consensus to stream sync through downloader

* add last mile functions to stream sync

* add if to check invalid block revert

* add last mile stage to stream sync

* goimports

* improve stream sync downloader loop to block redundant calls

* move startSyncing out of the shortrange loop

* goimports

* fix sync loop go routine

* remove extra log

* add debug mode to stream sync help debugging syncing issues

* fix stream sync loop channels

* add streamFailed function to short range helper to avoid removing of the healthy streams

* remove execution of stage bodies, stage lastmile, stage short range and stage state for epoch chain

* refactor stage epoch

* add debug logs

* goimports

* add a few debug log to stage short range

* doSync returns estimated height as well

* only switch to short range if the current block number is very close to the chain current height

* stream sync gets UseMemDb from config file

* goimports

* only flag failed streams rather than removing them in stream sync

* if stage blocks progress behind current head, remove block cache

* add rollback to short range

* refactor stage last mile blocks, add roll back to this stage

* improve addConsensusLastMile

* goimports

* fix log spell error

* improve revert function, no need to revert if hashes are empty

* fix switch to short range by removing extra condition

* add donC chan size

* refactor downloader loop mechanism

* use atomic flag rather than done channel in downloader loop

* no need for fail stream in epoch sync

* ignore context timeout

* add mux lock to get access to last mile blocks

* remove atomic flag for downloader loop

* a few improvements on staged sync, check addedBn before switch to short range

* goimports

* fix consensus catchup issue

* fix panic issue from runnig sync loop while stream sync is runing

* goimports

* add two more logs to staged sync

* remove extra debug logs, add more file logs for stream sync

* [build] add mergify rules (harmony-one#4486)

* add comment for DebugMode

* improve the byte comparison for getBlockFromLastMileBlocksByParentHash function

---------

Co-authored-by: Diego Nava <diego.nava77@hotmail.com>
Co-authored-by: “GheisMohammadi” <36589218+GheisMohammadi@users.noreply.github.com>
Co-authored-by: Casey Gardiner <117784577+ONECasey@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants