-
Notifications
You must be signed in to change notification settings - Fork 127
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
CI migration: interop-jdc-change-upstream
MG to Integration Test
#1207
Comments
to elaborate a bit more on the requirement of a mock: this test is essentially making sure that JDC has a sane implementation for the fallback mechanism, which is one of the major selling points of JD: assuming a JDS+Pool have already acknowledged some specific job, Pool rejecting shares must trigger JDC to switch upstreams now, how do we get a Pool to reject shares that are supposed to be valid? it wouldn't really make sense to add that kind of functionality to SRI Pool implementation, which is supposed to be sane therefore, we need a way to mock a role by having something that establishes a connection and sends custom messages |
I did some experimentation where I tried modifying the I wonder if an easier approach could consist of the following: we add a new
but it would also have a method that would allow the user to inject some custom message into the connection |
Yea I also think it need to be something a bit different than the Sniffer. It would need to be a "role" that can act as either upstream or downstream. As mentioned, we would also need to define some functionality to tell it "when you receive message X return message Y". Anyway, please assign me here as I already started looking into this. |
OK, I take back my previous comment. It ended up being more straightforward to implement in the Sniffer than I initially thought. There is a draft here 961caa7. |
currently blocked by #1245 |
as part of #1121 a good first MG test to migrate is
interop-jdc-change-upstream
because:this will help us continue shaping up the integration test framework, as a continuation of #1122
The text was updated successfully, but these errors were encountered: