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

Added Merge, MarshalBinary, UnmarshalBinary #2

Merged
merged 2 commits into from May 29, 2019

Conversation

jameshartig
Copy link
Contributor

@jameshartig jameshartig commented May 28, 2019

We need to be able to merge multiple different Ring's from different hours of data since we process our data in hourly chunks concurrently. The Marshal/Unmarshal methods will be necessary so we can store already-processed hours in a database so we don't need to re-compute them all of the time.

I added tests to test the Merge and Marshal methods but I made them separate tests. They're still ran by TestMain but they don't affect the stats output.

/cc @TheTannerRyan

@jameshartig
Copy link
Contributor Author

Looks like the initial tests failed because of:

build cache is disabled by GOCACHE=off, but required as of Go 1.12

So I'll disable that

@jameshartig jameshartig force-pushed the master branch 3 times, most recently from db42505 to 9b9841a Compare May 28, 2019 17:51
@codecov-io
Copy link

codecov-io commented May 28, 2019

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #2   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           2      2           
  Lines         138    171   +33     
=====================================
+ Hits          138    171   +33
Impacted Files Coverage Δ
ring.go 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78116e2...2ef476e. Read the comment docs.

@jameshartig jameshartig force-pushed the master branch 2 times, most recently from 500adaf to 740c165 Compare May 28, 2019 18:27
Copy link
Owner

@tannerryan tannerryan left a comment

Choose a reason for hiding this comment

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

This was on my todo list for a while, but I did not have the time to get to it. Thank you for the PR!

@tannerryan tannerryan merged commit 0c4726c into tannerryan:master May 29, 2019
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.

None yet

3 participants