Skip to content

Release-candidate v0.53.0#566

Merged
luislhl merged 41 commits intorelease-candidatefrom
master
Apr 25, 2023
Merged

Release-candidate v0.53.0#566
luislhl merged 41 commits intorelease-candidatefrom
master

Conversation

@luislhl
Copy link
Copy Markdown
Contributor

@luislhl luislhl commented Apr 24, 2023

New PRs:

msbrogli and others added 30 commits November 21, 2022 19:01
chore: update dependencies and add support for Python 3.11
feat(events): emit reorg event during consensus
chore(docs): fix worflow badges on rendered README
* feat(pydantic-install): install pydantic

* feat(pydantic-install): add missing docstrings

* feat(pydantic-install): fix mypy plugin

* feat(events): remove config
* feat(pydantic-install): install pydantic

* feat(pydantic-install): add missing docstrings

* feat(events): change test utils so filepath is not hardcoded

* feat(events): change builder to accept custom settings

* feat(events): fix builder typing

* feat(events): fix builder typing

* feat(pydantic-install): fix mypy plugin

* feat(test-improvements): rollback builder changes

* feat(test-improvements): move filepath code into function
* feat(mypy-daemon): implement dmypy and dcheck make commands

* feat(mypy-daemon): add dmypy to gitignore

* feat(mypy-daemon): add missing type

* feat(mypy-daemon): fix typo
* feat(events): remove voided event

* feat(events): remove voided event comment
chore(ci): fix installing dependencies on macos
* feat(events): add websocket endpoint to stream events

* feat(events): add TODO and other minor changes

* feat(events): add EventWebsocketFactory to EventManager

* feat(events): refactor EventManager

* feat(events): fix EventManager instantiation on HathorManager

* feat(events): start protocol and factory refactor (wip)

* feat(events): create request and response classes

* feat(events): finish protocol and factory refactor

* feat(events): Update EventStorage interface

* feat(events): update event WebSocket architecture

* feat(pydantic-install): install pydantic

* feat(pydantic-install): add missing docstrings

* feat(events): change request to use pydantic and update response schema

* feat(events): revert EventStorage changes

* feat(events): remove unused settings

* feat(events): update factory and protocol logic

* feat(events): convert dataclasses to pydantic

* feat(events): lint code

* feat(events): update builder and manager

* feat(events): change test utils so filepath is not hardcoded

* feat(events): change builder to accept custom settings

* feat(events): fix typing circular problem

* feat(events): implement --x-enable-event-queue tests

* feat(events): fix builder typing

* feat(events): fix builder typing

* feat(events): update EventStorage tests

* feat(events): change protocol name

* feat(events): implement factory and protocol tests

* feat(events): remove incorrect assert

* feat(events): update test_event_manager

* feat(events): update test_event_reorg

* feat(events): fix builder condition

* feat(events): implement request validation and tests

* feat(events): lint code

* feat(events): resolve TODOs and improve tests

* feat(events): add docstrings

* feat(events): change test utils so filepath is not hardcoded

* feat(events): change builder to accept custom settings

* feat(events): fix builder typing

* feat(events): fix builder typing

* feat(pydantic-install): fix mypy plugin

* feat(events): add event ws start/stop on manager

* feat(events): fix bug and add missing test

* feat(events): fix object bleeding

* feat(events): improve logs

* feat(events): fix lint issues

* feat(events): remove unused event

* feat(test-improvements): rollback builder changes

* feat(test-improvements): move filepath code into function

* feat(events): fix builder tests

* feat(events): change HathorManager to receive EventManager

* feat(events): improve logging

* feat(events): change window_size_increment to window_size

* feat(events): change window_size_increment to window_size

* feat(events): change event factory to use callLater

* feat(events): change event factory to use callLater

* feat(events): lint code

* feat(events): fix global pubsub on tests

* feat(events): update request and response models

* feat(events): update factory and protocol according to code review

* feat(events): implement stream (in)active responses

* feat(events): refactor code from factory to protocol

* feat(events): refactor responses

* feat(events): fix ack validation

* feat(events): lint code

* feat(events): update factory tests

* feat(events): update protocol tests

* feat(events): remove Python 3.10 specific code

* feat(events): lint code

* feat(events): fix typing

* feat(events): add more python retrocompatibility changes

* feat(events): implement sendMessage exception handling

* feat(events): implement BaseEvent tests

* feat(events): remove __future__

* refactor(indexes): Create a generic TxGroupIndex and uses it on AddressIndex

* feat(events): remove NETWORK_NEW_TX_VOIDED event (#529)

* feat(events): remove voided event

* feat(events): remove voided event comment

---------

Co-authored-by: Jan Segre <jan@hathor.network>
Co-authored-by: Marcelo Salhab Brogliato <msbrogli@gmail.com>
* feat(events): add websocket endpoint to stream events

* feat(events): add TODO and other minor changes

* feat(events): add EventWebsocketFactory to EventManager

* feat(events): refactor EventManager

* feat(events): fix EventManager instantiation on HathorManager

* feat(events): start protocol and factory refactor (wip)

* feat(events): create request and response classes

* feat(events): finish protocol and factory refactor

* feat(events): Update EventStorage interface

* feat(events): update event WebSocket architecture

* feat(pydantic-install): install pydantic

* feat(pydantic-install): add missing docstrings

* feat(events): change request to use pydantic and update response schema

* feat(events): revert EventStorage changes

* feat(events): remove unused settings

* feat(events): update factory and protocol logic

* feat(events): convert dataclasses to pydantic

* feat(events): lint code

* feat(events): update builder and manager

* feat(events): change test utils so filepath is not hardcoded

* feat(events): change builder to accept custom settings

* feat(events): fix typing circular problem

* feat(events): implement --x-enable-event-queue tests

* feat(events): fix builder typing

* feat(events): fix builder typing

* feat(events): update EventStorage tests

* feat(events): change protocol name

* feat(events): implement factory and protocol tests

* feat(events): remove incorrect assert

* feat(events): update test_event_manager

* feat(events): update test_event_reorg

* feat(events): fix builder condition

* feat(events): implement request validation and tests

* feat(events): lint code

* feat(events): resolve TODOs and improve tests

* feat(events): add docstrings

* feat(events): change test utils so filepath is not hardcoded

* feat(events): change builder to accept custom settings

* feat(events): fix builder typing

* feat(events): fix builder typing

* feat(pydantic-install): fix mypy plugin

* feat(events): add event ws start/stop on manager

* feat(events): fix bug and add missing test

* feat(events): fix object bleeding

* feat(events): improve logs

* feat(events): fix lint issues

* feat(events): remove unused event

* feat(test-improvements): rollback builder changes

* feat(test-improvements): move filepath code into function

* feat(events): fix builder tests

* feat(events): change HathorManager to receive EventManager

* feat(events): improve logging

* feat(events): change window_size_increment to window_size

* feat(events): change window_size_increment to window_size

* feat(events): change event factory to use callLater

* feat(events): change event factory to use callLater

* feat(events): lint code

* feat(events): fix global pubsub on tests

* feat(events): update request and response models

* feat(events): update factory and protocol according to code review

* feat(events): implement stream (in)active responses

* feat(events): refactor code from factory to protocol

* feat(events): refactor responses

* feat(events): fix ack validation

* feat(events): lint code

* feat(events): update factory tests

* feat(events): update protocol tests

* feat(events): remove Python 3.10 specific code

* feat(events): lint code

* feat(events): fix typing

* feat(events): add more python retrocompatibility changes

* feat(events): implement sendMessage exception handling

* feat(mypy-daemon): implement mypy daemon commands (#526)

* feat(mypy-daemon): implement dmypy and dcheck make commands

* feat(mypy-daemon): add dmypy to gitignore

* feat(mypy-daemon): add missing type

* feat(mypy-daemon): fix typo

* feat(events): improve pydantic base settings and create QueryParams api util class

* feat(events): implement event api

* feat(events): add open api spec

* feat(events): implement event api tests

* feat(events): lint code

* feat(events): change HathorManager to EventManager

* feat(events): move function to list utils

* feat(events): add missing docstrings and fix typing

* feat(events): implement api and list utils tests

* feat(events): lint code

* feat(events): fix instantiation

* feat(events): add doctests

* feat(events): remove copyright from init files

* feat(events): lint code

* feat(events): implement custom encoding support on QueryParams

* feat(events): update QueryParams tests

* feat(events): fix tests

---------

Co-authored-by: Jan Segre <jan@hathor.network>
* feat(events): unify events

* feat(events): implement VERTEX_METADATA_CHANGED handling

* feat(events): fix tests
)

* feat(events): install pytest-xdist

* feat(events): update Makefile

* feat(events): move pytest-xdist to dev-dependencies
* feat(events): change event data dict to classes

* feat(events): fix tests

* feat(events): implement BaseEvent data validation and improve related code

* feat(events): implement BaseEvent data validation test

* feat(events): implement missing event attributes

* feat(events): move BaseEvent

* feat(events): move EventData and related classes

* feat(events): roganize event data classes

* feat(events): lint code

* feat(events): fix tests

* feat(events): fix resource tests
* chore(tests): move `-n auto` to pyproject.toml
* refactor(indexes): move interest scope to inside the index
* feat(events): implement --x-emit-load-events flag

* feat(events): prevent emission of load events

* feat(events): add command assertion

* feat(events): lint code

* feat(events): implement tests

* feat(events): emit load events

* feat(events): move LOAD_FINISHED emission from _initialize_components to _initialize_components_new

* feat(events): remove LOAD_STARTED event

* feat(events): fix tests

* feat(events): publish events for all stored transactions

* feat(events): prevent publishing unnecessary load events

* feat(events): remove commented line

* feat(events): remove publishing events during load
* chore(deps): update typing packages and fix related code

* empty commit
* feat: add best_block and best_block_tips to dag on status
* chore: fix typo and improve test
* chore: change hard coded hash to its SETTINGS reference
* chore: resolve import order
* chore: add hex hash for the genesis block
…ings

fix(ci): update python-rocksdb binding for rocksdb 8.0.0 compatibility
jansegre and others added 11 commits April 10, 2023 19:53
chore: bump version and update checkpoints
* bugfix: fix import order

* bugfix: fix start order

* bugfix: add start assertion to EventManager

* bugfix: add start/stop assertions
* feat(events): implement EventType enum and update BaseEvent

* feat(events): update EventManager to use EventType and improve handling

* feat(events): update tests

* feat(events): remove voided event

* feat(events): fix CLI tests

* feat(events): fix resource tests
* feat: allow overriding version by creating a BUILD_VERSION file

* fix: allow optional cli arg in the check_version.sh script, instead of always comparing to the BUILD_VERSION file

* fix: support windows in the new tests

* feat: validate the build version before returning it

* docs: add documention on extras/check_version.sh

* chore: include the commit hash in local versions

* docs: improve the script doc

* refactor: create new tmp dirs for the tests instead of using the system one
…nd extract scripts from the workflow definition (#548)

* fix: support windows in the new tests

* fix: linters

* fix: allow optional cli arg in the check_version.sh script, instead of always comparing to the BUILD_VERSION file

* fix: support windows in the new tests

* fix: linters

* fix: support windows in the new tests

* fix: linters

* ci: extract python scripts from inside the workflow definition

* chore: replicate the changes from the base branch

* chore: tests for the CI logic

* chore: do not send slack notification in forks

* fix: ci tests execution
@luislhl luislhl self-assigned this Apr 24, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 24, 2023

Codecov Report

Merging #566 (4ce0568) into release-candidate (85206cb) will increase coverage by 0.10%.
The diff coverage is 94.51%.

@@                  Coverage Diff                  @@
##           release-candidate     #566      +/-   ##
=====================================================
+ Coverage              83.27%   83.38%   +0.10%     
=====================================================
  Files                    186      214      +28     
  Lines                  16864    18959    +2095     
  Branches                2640     2614      -26     
=====================================================
+ Hits                   14044    15809    +1765     
- Misses                  2328     2580     +252     
- Partials                 492      570      +78     
Impacted Files Coverage Δ
hathor/conf/mainnet.py 100.00% <ø> (ø)
hathor/conf/unittests.py 100.00% <ø> (ø)
hathor/merged_mining/coordinator.py 42.85% <ø> (ø)
hathor/transaction/storage/cache_storage.py 94.16% <0.00%> (ø)
hathor/wallet/hd_wallet.py 99.05% <ø> (ø)
hathor/wallet/resources/thin_wallet/send_tokens.py 68.51% <0.00%> (ø)
hathor/transaction/storage/rocksdb_storage.py 92.70% <40.00%> (-2.04%) ⬇️
hathor/indexes/scope.py 75.67% <75.67%> (ø)
hathor/manager.py 70.73% <80.00%> (ø)
hathor/version.py 85.29% <85.29%> (-14.71%) ⬇️
... and 52 more

... and 14 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@luislhl luislhl merged commit ceb6a4f into release-candidate Apr 25, 2023
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.

5 participants