Skip to content

Release-candidate v0.54.0-rc.1#628

Merged
jansegre merged 31 commits intorelease-candidatefrom
master
May 24, 2023
Merged

Release-candidate v0.54.0-rc.1#628
jansegre merged 31 commits intorelease-candidatefrom
master

Conversation

msbrogli and others added 30 commits May 12, 2023 15:05
chore(python): drop support for Python 3.8
chore: implement yaml settings inheritance
feat: add safeguards for partially validated transactions [part 2/2]
This wasn't _exactly_ the case before this commit. On one side when
using the deprecated module settings the same module would always be
loaded, and the same `SETTINGS` property would be accessed, but
reloading the module (or at least leaving that up to importlib)
unnecessary. On the new YAML system the file is reloaded everytime, this
is also unnecessary.

This commit will make it the last HathorSettings instantiated will be
returned, as long as the source is the same, otherwise an exception is
raised.

There is a little small caveat that is fixed in this commit is that in
the YAML file could in theory be altered between different calls to
HathorSettings, which would lead to different content being loaded
silently. What happens now is that the first time it is loaded is what
is used for every call, any change in the file won't have any effect.
refactor(settings): make HathorSettings always return the same instance
@jansegre jansegre self-assigned this May 24, 2023
@jansegre jansegre requested a review from msbrogli as a code owner May 24, 2023 21:44
@jansegre jansegre requested a review from luislhl May 24, 2023 21:44
@codecov
Copy link

codecov bot commented May 24, 2023

Codecov Report

Merging #628 (b2bb354) into release-candidate (22eb584) will increase coverage by 0.27%.
The diff coverage is 90.84%.

@@                  Coverage Diff                  @@
##           release-candidate     #628      +/-   ##
=====================================================
+ Coverage              83.66%   83.94%   +0.27%     
=====================================================
  Files                    229      240      +11     
  Lines                  19524    20126     +602     
  Branches                2682     2743      +61     
=====================================================
+ Hits                   16335    16894     +559     
- Misses                  2604     2636      +32     
- Partials                 585      596      +11     
Impacted Files Coverage Δ
hathor/pubsub.py 94.66% <ø> (ø)
hathor/sysctl/p2p/manager.py 89.85% <ø> (ø)
hathor/transaction/transaction.py 92.63% <0.00%> (-0.58%) ⬇️
hathor/builder/sysctl_builder.py 41.66% <25.00%> (-13.89%) ⬇️
hathor/graphviz.py 77.02% <33.33%> (-0.91%) ⬇️
hathor/websocket/factory.py 73.78% <50.00%> (+0.32%) ⬆️
hathor/indexes/rocksdb_deps_index.py 64.22% <55.55%> (+3.04%) ⬆️
hathor/builder/cli_builder.py 70.74% <63.15%> (-8.53%) ⬇️
hathor/indexes/memory_height_index.py 83.33% <66.66%> (+0.98%) ⬆️
hathor/conf/get_settings.py 70.00% <72.72%> (-12.61%) ⬇️
... and 50 more

... and 6 files with indirect coverage changes

@jansegre jansegre merged commit 664b4ab into release-candidate May 24, 2023
@jansegre jansegre mentioned this pull request Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants