-
Notifications
You must be signed in to change notification settings - Fork 130
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 |
I was able to successfully test this today but some of the futures in the code keep hanging and the test is not exiting for that reason. The problematic task is In a way we could do some mingle wingle and try to resolve this from the testing side, but I think this is a technical debt in the roles code and I wonder if we shouldnt just start to refactor that already, at least the In regards to the actual functionality, I am not convinced the JDC is actually falling-back successfully. Well, it does fallback and send handshake/setup connection to next pool in |
currently blocked by #1266 |
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: