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

Internal refactor #41

Merged
merged 29 commits into from
Nov 19, 2023
Merged

Internal refactor #41

merged 29 commits into from
Nov 19, 2023

Conversation

byo
Copy link
Contributor

@byo byo commented Nov 17, 2023

No description provided.

byo added 25 commits October 24, 2023 21:02
A public interface of blend layer used internal key structure
which made it impossible to be used outside of cinode repo.
This change hides the internal data of BlobKey and BlobIV types
to ensure those internals can not be relied on in outside code.
The goal is to create proper API on top of protobuf
instead ensuring that we preserve additional internal consistency.
* Introduce abstract node structure, all recursive
  functions are now realized through those nodes and
  implementations of node interface method implementations.
* Introduce generic traversal logic - a common code paths
  are now used for graph traversal and only the final step
  that deals with the target node is customized for specific
  logic. That way bug fixing and testing can be done on a
  common path improving overall code quality.
static datastore compiler.

Now can use URL notation which allows direct upload to
HTTP and HTTPS datastores.
* Add option to generate index files
* Add option to append to existing datastore
* Small internal refactor
This is much more natural in Go where lack of value is
usually denoted through nil as opposed to default value.
It is a larger topic and will be handled separately.
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 90 lines in your changes are missing coverage. Please review.

Comparison is base (f18e3c9) 88.73% compared to head (4fa3eb5) 93.55%.

Files Patch % Lines
pkg/cinodefs/context.go 66.19% 16 Missing and 8 partials ⚠️
pkg/cmd/static_datastore/compile.go 81.81% 15 Missing and 7 partials ⚠️
pkg/cinodefs/node_directory.go 90.54% 11 Missing and 3 partials ⚠️
pkg/cinodefs/node_link.go 79.68% 11 Missing and 2 partials ⚠️
pkg/cinodefs/cinodefs_interface.go 97.52% 4 Missing and 2 partials ⚠️
pkg/cinodefs/node_file.go 63.63% 4 Missing ⚠️
pkg/internal/blobtypes/dynamiclink/publisher.go 78.57% 3 Missing ⚠️
pkg/cinodefs/node_unloaded.go 97.14% 2 Missing ⚠️
pkg/cmd/static_datastore/root.go 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #41      +/-   ##
==========================================
+ Coverage   88.73%   93.55%   +4.81%     
==========================================
  Files          32       49      +17     
  Lines        1927     3055    +1128     
==========================================
+ Hits         1710     2858    +1148     
+ Misses        181      141      -40     
- Partials       36       56      +20     

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

@coveralls
Copy link

coveralls commented Nov 19, 2023

Coverage Status

coverage: 95.297% (+4.4%) from 90.909%
when pulling 4fa3eb5 on internal-refactor
into f18e3c9 on master.

@byo byo merged commit 2821712 into master Nov 19, 2023
16 checks passed
@byo byo deleted the internal-refactor branch November 19, 2023 18:34
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.

2 participants