-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
feat(CRE-329): high fidelity offchain job service client #16527
Conversation
I see you updated files related to
|
AER Report: CI Core ran successfully ✅AER Report: Operator UI CI ran successfully ✅ |
d83729f
to
1cef16b
Compare
"github.com/smartcontractkit/chainlink-protos/job-distributor/v1/shared/ptypes" | ||
) | ||
|
||
func (j JobClient) EnableNode(ctx context.Context, in *nodev1.EnableNodeRequest, opts ...grpc.CallOption) (*nodev1.EnableNodeResponse, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this file is just a code move of the node servie API methods
"github.com/smartcontractkit/chainlink/v2/core/services/job" | ||
) | ||
|
||
type JobServiceClient struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is the new implementation
|
||
var errNoExist = errors.New("does not exist") | ||
|
||
// proposalStore is an interface for storing job proposals. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these store interfaces and implementations are conveniences for the in memory data needed by the JobServiceClient impl. they are not interesting in and of themselves
@@ -598,3 +611,54 @@ func (e KeystoreSim) Eth() keystore.Eth { | |||
func (e KeystoreSim) CSA() keystore.CSA { | |||
return e.csa | |||
} | |||
|
|||
func setupJD(t *testing.T, app chainlink.Application) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we mixing real code and test helpers here...?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
|
CRE-329
Implement the JobServiceClient API for in memory integration testing using the real node Feed service APIs
This is a building block to unlock in memory integration tests that have high fidelity to real deployments.
Specifically, it will enable the CRE migration concern jobs to be moved from CLD to this repo and be well tested. That move, then, will enable reuse for CTF & CRIB environment implementations.
Requires
Supports