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

[tests] Adds in-process implementation of resources.M3Resources #3792

Merged
merged 2 commits into from
Oct 4, 2021

Conversation

nbroyles
Copy link
Collaborator

What this PR does / why we need it:

This commit adds an implementation of resources.M3Resources that
is backed by in-process components. Implementation is able
of being configured using resources.SetupCluster which takes
those components and turns them into a cluster ready to
receive reads and writes.

Special notes for your reviewer:

Does this PR introduce a user-facing and/or backwards incompatible change?:


Does this PR require updating code package or user-facing documentation?:


@nbroyles nbroyles force-pushed the nb/setup branch 3 times, most recently from 068e750 to 4f67fa8 Compare September 30, 2021 16:56
@codecov
Copy link

codecov bot commented Sep 30, 2021

Codecov Report

Merging #3792 (250cdae) into master (250cdae) will not change coverage.
The diff coverage is n/a.

❗ Current head 250cdae differs from pull request most recent head 6a7a129. Consider uploading reports for the commit 6a7a129 to get more accurate results

Impacted file tree graph

@@          Coverage Diff           @@
##           master   #3792   +/-   ##
======================================
  Coverage    57.0%   57.0%           
======================================
  Files         552     552           
  Lines       63077   63077           
======================================
  Hits        36004   36004           
  Misses      23878   23878           
  Partials     3195    3195           
Flag Coverage Δ
aggregator 63.3% <0.0%> (ø)
cluster ∅ <0.0%> (∅)
collector 58.4% <0.0%> (ø)
dbnode 60.7% <0.0%> (ø)
m3em 46.4% <0.0%> (ø)
metrics 19.7% <0.0%> (ø)
msg 74.4% <0.0%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 250cdae...6a7a129. Read the comment docs.

@nbroyles nbroyles requested a review from fishie9 September 30, 2021 19:21
envConfig, err := discoverCfg.EnvironmentConfig(hostID)
if err != nil {
return nil, err
}

return &admin.Host{
Copy link
Collaborator

Choose a reason for hiding this comment

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

IsolationGroup is empty? Will that affect the sharding algorithm?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yeah, I've got a change to support in an upcoming PR. For now, it's OK to be left blank.

This commit adds an implementation of resources.M3Resources that
is backed by in-process components. Implementation is able
of being configured using resources.SetupCluster which takes
those components and turns them into a cluster ready to
receive reads and writes.
Copy link
Collaborator

@fishie9 fishie9 left a comment

Choose a reason for hiding this comment

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

LGTM

@nbroyles nbroyles merged commit 6b1a24d into master Oct 4, 2021
@nbroyles nbroyles deleted the nb/setup branch October 4, 2021 14:02
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