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

go: Refactor and cleanup code #5943

Merged
merged 22 commits into from
Nov 25, 2024
Merged

Conversation

peternose
Copy link
Contributor

@peternose peternose commented Nov 22, 2024

Laying grounds for the main part of the hot-reloading issue and adding minor changes to the code that were found along the way.

Copy link

netlify bot commented Nov 22, 2024

Deploy Preview for oasisprotocol-oasis-core canceled.

Name Link
🔨 Latest commit 7a86da6
🔍 Latest deploy log https://app.netlify.com/sites/oasisprotocol-oasis-core/deploys/6744833c318afc000857c9e4

@peternose peternose marked this pull request as ready for review November 22, 2024 13:00
@peternose peternose linked an issue Nov 22, 2024 that may be closed by this pull request
Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 81.59509% with 30 lines in your changes missing coverage. Please review.

Project coverage is 65.20%. Comparing base (ea97401) to head (7a86da6).
Report is 30 commits behind head on master.

Files with missing lines Patch % Lines
go/runtime/bundle/bundle.go 20.00% 8 Missing ⚠️
go/runtime/registry/registry.go 76.66% 5 Missing and 2 partials ⚠️
go/runtime/registry/config.go 82.75% 1 Missing and 4 partials ⚠️
go/worker/common/worker.go 62.50% 2 Missing and 1 partial ⚠️
go/oasis-node/cmd/storage/storage.go 0.00% 2 Missing ⚠️
go/runtime/history/prune.go 93.10% 2 Missing ⚠️
go/runtime/host/composite/composite.go 60.00% 1 Missing and 1 partial ⚠️
go/runtime/history/history.go 88.88% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5943      +/-   ##
==========================================
+ Coverage   64.87%   65.20%   +0.32%     
==========================================
  Files         627      629       +2     
  Lines       64306    64297       -9     
==========================================
+ Hits        41719    41924     +205     
+ Misses      17728    17441     -287     
- Partials     4859     4932      +73     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

Copy link
Member

@kostko kostko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, maybe rename commit:

-go/runtime/registry: Create history factor helper function
+go/runtime/registry: Create history factory helper function

This simplifies the code, as we only use maps for local configuration.
If a more generalized configuration is needed, we can revert to using
an interface.
@peternose peternose force-pushed the peternose/trivial/refactor-cleanup branch from 4e1752d to 52aebc0 Compare November 25, 2024 12:17
@peternose peternose merged commit d35e24b into master Nov 25, 2024
7 checks passed
@peternose peternose deleted the peternose/trivial/refactor-cleanup branch November 25, 2024 16:56
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.

Hot-loading and distribution system for runtime bundles
2 participants