Skip to content

Release v0.54.0#659

Merged
jansegre merged 31 commits intoreleasefrom
release-candidate
Jun 12, 2023
Merged

Release v0.54.0#659
jansegre merged 31 commits intoreleasefrom
release-candidate

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
Release-candidate v0.54.0-rc.1
@jansegre jansegre requested a review from luislhl June 9, 2023 17:17
@jansegre jansegre requested a review from msbrogli as a code owner June 9, 2023 17:18
@jansegre jansegre self-assigned this Jun 9, 2023
@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Merging #659 (664b4ab) into release (bfd6e04) will increase coverage by 0.49%.
The diff coverage is 90.52%.

@@             Coverage Diff             @@
##           release     #659      +/-   ##
===========================================
+ Coverage    83.45%   83.95%   +0.49%     
===========================================
  Files          221      240      +19     
  Lines        19144    20126     +982     
  Branches      2623     2743     +120     
===========================================
+ Hits         15977    16896     +919     
- Misses        2589     2635      +46     
- Partials       578      595      +17     
Impacted Files Coverage Δ
hathor/pubsub.py 94.66% <ø> (ø)
hathor/transaction/transaction.py 92.63% <0.00%> (-0.58%) ⬇️
hathor/graphviz.py 77.02% <33.33%> (-0.91%) ⬇️
hathor/builder/sysctl_builder.py 41.66% <41.66%> (ø)
hathor/p2p/states/peer_id.py 73.56% <50.00%> (+8.79%) ⬆️
hathor/util.py 84.54% <50.00%> (+0.76%) ⬆️
hathor/indexes/rocksdb_deps_index.py 64.22% <55.55%> (+3.04%) ⬆️
hathor/indexes/memory_height_index.py 83.33% <66.66%> (+0.98%) ⬆️
hathor/conf/get_settings.py 70.00% <72.72%> (-12.61%) ⬇️
hathor/builder/cli_builder.py 70.74% <74.07%> (-8.23%) ⬇️
... and 63 more

... and 3 files with indirect coverage changes

@jansegre jansegre requested a review from pedroferreira1 June 12, 2023 17:51
@jansegre jansegre merged commit 449666c into release Jun 12, 2023
@jansegre jansegre mentioned this pull request Jul 12, 2023
2 tasks
This was referenced Aug 2, 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.

5 participants