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

Test JDC Pool Fallback #1343

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

jbesraa
Copy link
Contributor

@jbesraa jbesraa commented Jan 9, 2025

resolves #1207

blocked by #1319 & #1321

Copy link
Contributor

github-actions bot commented Jan 9, 2025

🐰 Bencher Report

Branch2025-01-09-jdc-fallback-test
Testbedsv2
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
client_sv2_handle_message_common📈 view plot
🚷 view threshold
44.89
(-1.21%)
61.49
(73.00%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
72.61
(-4.54%)
102.28
(71.00%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
14.71
(+0.28%)
14.74
(99.78%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
251.55
(-4.13%)
287.11
(87.62%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
632.16
(+1.92%)
685.84
(92.17%)
client_sv2_open_channel📈 view plot
🚷 view threshold
167.04
(+0.66%)
179.49
(93.06%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
283.37
(-1.18%)
317.67
(89.20%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
379.83
(-0.69%)
399.10
(95.17%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
156.67
(-2.00%)
171.38
(91.42%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
502.06
(+6.51%)
561.15
(89.47%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
988.84
(-2.15%)
1,244.78
(79.44%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Jan 9, 2025

🐰 Bencher Report

Branch2025-01-09-jdc-fallback-test
Testbedsv1
Click to view all benchmark results
BenchmarkLatencyBenchmark Result
nanoseconds (ns)
(Result Δ%)
Upper Boundary
nanoseconds (ns)
(Limit %)
client-submit-serialize📈 view plot
🚷 view threshold
6,595.30
(+0.53%)
6,992.43
(94.32%)
client-submit-serialize-deserialize📈 view plot
🚷 view threshold
7,483.40
(+0.92%)
7,879.81
(94.97%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle📈 view plot
🚷 view threshold
8,069.00
(-0.35%)
9,550.90
(84.48%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle📈 view plot
🚷 view threshold
866.94
(-0.28%)
951.23
(91.14%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize📈 view plot
🚷 view threshold
661.53
(-2.37%)
730.39
(90.57%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize📈 view plot
🚷 view threshold
250.13
(-0.52%)
281.60
(88.82%)
client-sv1-get-authorize/client-sv1-get-authorize📈 view plot
🚷 view threshold
157.87
(-0.21%)
170.07
(92.83%)
client-sv1-get-submit📈 view plot
🚷 view threshold
6,358.80
(+0.29%)
6,756.96
(94.11%)
client-sv1-get-subscribe/client-sv1-get-subscribe📈 view plot
🚷 view threshold
321.16
(+10.56%)
388.46
(82.67%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle📈 view plot
🚷 view threshold
720.08
(-1.03%)
781.36
(92.16%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize📈 view plot
🚷 view threshold
615.72
(+3.63%)
648.21
(94.99%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize📈 view plot
🚷 view threshold
206.07
(-0.45%)
229.10
(89.95%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Jan 9, 2025

🐰 Bencher Report

Branch2025-01-09-jdc-fallback-test
Testbedsv1
Click to view all benchmark results
BenchmarkEstimated CyclesBenchmark Result
1e3 x estimated cycles
(Result Δ%)
Upper Boundary
1e3 x estimated cycles
(Limit %)
InstructionsBenchmark Result
1e3 x instructions
(Result Δ%)
Upper Boundary
1e3 x instructions
(Limit %)
L1 AccessesBenchmark Result
1e3 x accesses
(Result Δ%)
Upper Boundary
1e3 x accesses
(Limit %)
L2 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
RAM AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
get_authorize📈 view plot
🚷 view threshold
8.39
(-0.70%)
8.67
(96.80%)
📈 view plot
🚷 view threshold
3.69
(-0.92%)
3.86
(95.54%)
📈 view plot
🚷 view threshold
5.16
(-1.08%)
5.45
(94.65%)
📈 view plot
🚷 view threshold
11.00
(+28.70%)
16.47
(66.77%)
📈 view plot
🚷 view threshold
91.00
(-0.48%)
96.80
(94.01%)
get_submit📈 view plot
🚷 view threshold
95.19
(-0.18%)
95.62
(99.55%)
📈 view plot
🚷 view threshold
59.35
(-0.09%)
59.71
(99.39%)
📈 view plot
🚷 view threshold
85.22
(-0.10%)
85.82
(99.30%)
📈 view plot
🚷 view threshold
47.00
(+4.64%)
60.46
(77.73%)
📈 view plot
🚷 view threshold
278.00
(-0.98%)
291.88
(95.24%)
get_subscribe📈 view plot
🚷 view threshold
7.88
(-1.40%)
8.23
(95.75%)
📈 view plot
🚷 view threshold
2.77
(-1.63%)
2.94
(93.98%)
📈 view plot
🚷 view threshold
3.85
(-1.92%)
4.14
(92.83%)
📈 view plot
🚷 view threshold
16.00
(+26.73%)
20.95
(76.39%)
📈 view plot
🚷 view threshold
113.00
(-1.33%)
117.94
(95.81%)
serialize_authorize📈 view plot
🚷 view threshold
12.12
(-1.11%)
12.51
(96.91%)
📈 view plot
🚷 view threshold
5.27
(-0.58%)
5.43
(97.05%)
📈 view plot
🚷 view threshold
7.33
(-0.70%)
7.60
(96.36%)
📈 view plot
🚷 view threshold
14.00
(+35.55%)
19.02
(73.62%)
📈 view plot
🚷 view threshold
135.00
(-2.14%)
143.36
(94.17%)
serialize_deserialize_authorize📈 view plot
🚷 view threshold
24.64
(-0.31%)
25.19
(97.82%)
📈 view plot
🚷 view threshold
9.84
(-0.18%)
10.01
(98.28%)
📈 view plot
🚷 view threshold
13.88
(-0.22%)
14.17
(97.89%)
📈 view plot
🚷 view threshold
38.00
(+5.60%)
45.99
(82.62%)
📈 view plot
🚷 view threshold
302.00
(-0.54%)
313.67
(96.28%)
serialize_deserialize_handle_authorize📈 view plot
🚷 view threshold
30.11
(-0.69%)
30.73
(97.99%)
📈 view plot
🚷 view threshold
12.02
(-0.28%)
12.19
(98.60%)
📈 view plot
🚷 view threshold
17.00
(-0.33%)
17.30
(98.29%)
📈 view plot
🚷 view threshold
60.00
(+7.37%)
67.53
(88.85%)
📈 view plot
🚷 view threshold
366.00
(-1.34%)
379.56
(96.43%)
serialize_deserialize_handle_submit📈 view plot
🚷 view threshold
126.28
(-0.14%)
126.79
(99.60%)
📈 view plot
🚷 view threshold
73.20
(-0.06%)
73.53
(99.55%)
📈 view plot
🚷 view threshold
104.91
(-0.08%)
105.51
(99.43%)
📈 view plot
🚷 view threshold
116.00
(+8.51%)
126.06
(92.02%)
📈 view plot
🚷 view threshold
594.00
(-0.63%)
610.68
(97.27%)
serialize_deserialize_handle_subscribe📈 view plot
🚷 view threshold
27.74
(-0.60%)
28.38
(97.73%)
📈 view plot
🚷 view threshold
9.58
(-0.47%)
9.76
(98.21%)
📈 view plot
🚷 view threshold
13.54
(-0.56%)
13.84
(97.82%)
📈 view plot
🚷 view threshold
69.00
(+6.74%)
78.13
(88.31%)
📈 view plot
🚷 view threshold
396.00
(-0.81%)
409.80
(96.63%)
serialize_deserialize_submit📈 view plot
🚷 view threshold
115.14
(-0.09%)
115.71
(99.51%)
📈 view plot
🚷 view threshold
68.06
(+0.01%)
68.42
(99.47%)
📈 view plot
🚷 view threshold
97.65
(+0.00%)
98.29
(99.35%)
📈 view plot
🚷 view threshold
69.00
(+4.93%)
87.84
(78.56%)
📈 view plot
🚷 view threshold
490.00
(-0.70%)
505.36
(96.96%)
serialize_deserialize_subscribe📈 view plot
🚷 view threshold
23.18
(-0.61%)
23.82
(97.32%)
📈 view plot
🚷 view threshold
8.14
(-0.50%)
8.32
(97.93%)
📈 view plot
🚷 view threshold
11.45
(-0.60%)
11.75
(97.48%)
📈 view plot
🚷 view threshold
43.00
(+9.90%)
51.32
(83.79%)
📈 view plot
🚷 view threshold
329.00
(-0.80%)
342.46
(96.07%)
serialize_submit📈 view plot
🚷 view threshold
99.57
(-0.21%)
100.09
(99.48%)
📈 view plot
🚷 view threshold
61.41
(-0.07%)
61.73
(99.47%)
📈 view plot
🚷 view threshold
88.08
(-0.08%)
88.65
(99.36%)
📈 view plot
🚷 view threshold
51.00
(+5.56%)
67.16
(75.93%)
📈 view plot
🚷 view threshold
321.00
(-1.35%)
337.65
(95.07%)
serialize_subscribe📈 view plot
🚷 view threshold
11.32
(-0.68%)
11.60
(97.62%)
📈 view plot
🚷 view threshold
4.12
(-1.01%)
4.28
(96.16%)
📈 view plot
🚷 view threshold
5.71
(-1.25%)
6.00
(95.16%)
📈 view plot
🚷 view threshold
17.00
(+20.96%)
24.45
(69.53%)
📈 view plot
🚷 view threshold
158.00
(-0.35%)
164.64
(95.97%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Jan 9, 2025

🐰 Bencher Report

Branch2025-01-09-jdc-fallback-test
Testbedsv2
Click to view all benchmark results
BenchmarkEstimated CyclesBenchmark Result
1e3 x estimated cycles
(Result Δ%)
Upper Boundary
1e3 x estimated cycles
(Limit %)
InstructionsBenchmark Result
instructions
(Result Δ%)
Upper Boundary
instructions
(Limit %)
L1 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
L2 AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
RAM AccessesBenchmark Result
accesses
(Result Δ%)
Upper Boundary
accesses
(Limit %)
client_sv2_handle_message_common📈 view plot
🚷 view threshold
2.13
(+0.64%)
2.24
(95.09%)
📈 view plot
🚷 view threshold
473.00
(-0.14%)
490.49
(96.43%)
📈 view plot
🚷 view threshold
734.00
(-0.27%)
758.91
(96.72%)
📈 view plot
🚷 view threshold
6.00
(+16.72%)
11.61
(51.69%)
📈 view plot
🚷 view threshold
39.00
(+0.83%)
41.76
(93.39%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
8.32
(+1.14%)
8.40
(99.04%)
📈 view plot
🚷 view threshold
2,137.00📈 view plot
🚷 view threshold
3,152.00
(-0.21%)
3,167.46
(99.51%)
📈 view plot
🚷 view threshold
40.00
(+12.23%)
41.66
(96.02%)
📈 view plot
🚷 view threshold
142.00
(+1.62%)
144.63
(98.18%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
6.32
(+0.25%)
6.45
(97.97%)
📈 view plot
🚷 view threshold
1,750.00
(-0.04%)
1,767.49
(99.01%)
📈 view plot
🚷 view threshold
2,549.00
(-0.12%)
2,575.33
(98.98%)
📈 view plot
🚷 view threshold
19.00
(+10.65%)
24.04
(79.04%)
📈 view plot
🚷 view threshold
105.00
(+0.27%)
108.80
(96.51%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
14.78
(+0.38%)
14.94
(98.96%)
📈 view plot
🚷 view threshold
4,694.00
(-0.01%)
4,711.49
(99.63%)
📈 view plot
🚷 view threshold
6,747.00
(-0.13%)
6,786.72
(99.41%)
📈 view plot
🚷 view threshold
53.00
(+15.39%)
63.46
(83.52%)
📈 view plot
🚷 view threshold
222.00
(+0.37%)
226.13
(98.17%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
27.75
(+0.53%)
28.07
(98.89%)
📈 view plot
🚷 view threshold
10,645.00
(+0.35%)
10,700.14
(99.48%)
📈 view plot
🚷 view threshold
15,504.00
(+0.40%)
15,596.70
(99.41%)
📈 view plot
🚷 view threshold
91.00
(+8.43%)
99.35
(91.59%)
📈 view plot
🚷 view threshold
337.00
(+0.42%)
343.24
(98.18%)
client_sv2_open_channel📈 view plot
🚷 view threshold
4.41
(+0.19%)
4.59
(96.22%)
📈 view plot
🚷 view threshold
1,461.00
(-0.05%)
1,478.49
(98.82%)
📈 view plot
🚷 view threshold
2,158.00
(-0.12%)
2,184.65
(98.78%)
📈 view plot
🚷 view threshold
10.00
(+21.44%)
14.00
(71.44%)
📈 view plot
🚷 view threshold
63.00
(+0.10%)
67.88
(92.82%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
14.03
(+0.06%)
14.20
(98.77%)
📈 view plot
🚷 view threshold
5,064.00
(-0.01%)
5,081.49
(99.66%)
📈 view plot
🚷 view threshold
7,323.00
(-0.04%)
7,352.71
(99.60%)
📈 view plot
🚷 view threshold
39.00
(+6.10%)
48.34
(80.67%)
📈 view plot
🚷 view threshold
186.00
(-0.00%)
190.86
(97.45%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
22.79
(+0.33%)
23.08
(98.75%)
📈 view plot
🚷 view threshold
8,040.00
(+0.09%)
8,057.61
(99.78%)
📈 view plot
🚷 view threshold
11,691.00
(+0.05%)
11,713.57
(99.81%)
📈 view plot
🚷 view threshold
84.00
(+10.62%)
90.02
(93.31%)
📈 view plot
🚷 view threshold
305.00
(+0.27%)
312.88
(97.48%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
4.68
(-0.33%)
4.79
(97.58%)
📈 view plot
🚷 view threshold
1,502.00
(-0.04%)
1,519.49
(98.85%)
📈 view plot
🚷 view threshold
2,277.00
(-0.08%)
2,300.85
(98.96%)
📈 view plot
🚷 view threshold
11.00
(+16.36%)
15.26
(72.07%)
📈 view plot
🚷 view threshold
67.00
(-0.90%)
70.17
(95.48%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
16.21
(+0.35%)
16.33
(99.29%)
📈 view plot
🚷 view threshold
5,963.00
(-0.01%)
5,980.49
(99.71%)
📈 view plot
🚷 view threshold
8,654.00
(-0.11%)
8,692.67
(99.56%)
📈 view plot
🚷 view threshold
49.00
(+19.97%)
56.50
(86.73%)
📈 view plot
🚷 view threshold
209.00
(+0.35%)
212.20
(98.49%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
35.71
(+0.28%)
35.96
(99.29%)
📈 view plot
🚷 view threshold
14,888.00
(+0.13%)
14,920.01
(99.79%)
📈 view plot
🚷 view threshold
21,871.00
(+0.12%)
21,919.67
(99.78%)
📈 view plot
🚷 view threshold
107.00
(+12.86%)
120.21
(89.01%)
📈 view plot
🚷 view threshold
380.00
(+0.09%)
385.75
(98.51%)
🐰 View full continuous benchmarking report in Bencher

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 19.08%. Comparing base (0f6d89b) to head (44b0f1e).

Files with missing lines Patch % Lines
roles/jd-client/src/lib/upstream_sv2/upstream.rs 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1343      +/-   ##
==========================================
- Coverage   19.09%   19.08%   -0.01%     
==========================================
  Files         166      166              
  Lines       11062    11064       +2     
==========================================
  Hits         2112     2112              
- Misses       8950     8952       +2     
Flag Coverage Δ
binary_codec_sv2-coverage 0.00% <ø> (ø)
binary_serde_sv2-coverage 3.55% <ø> (ø)
binary_sv2-coverage 5.34% <ø> (ø)
bip32_derivation-coverage 0.00% <ø> (ø)
buffer_sv2-coverage 25.02% <ø> (ø)
codec_sv2-coverage 0.01% <ø> (ø)
common_messages_sv2-coverage 0.13% <ø> (ø)
const_sv2-coverage 0.00% <ø> (ø)
error_handling-coverage 0.00% <ø> (ø)
framing_sv2-coverage 0.28% <ø> (ø)
jd_client-coverage 0.00% <0.00%> (ø)
jd_server-coverage 7.79% <ø> (ø)
job_declaration_sv2-coverage 0.00% <ø> (ø)
key-utils-coverage 2.39% <ø> (ø)
mining-coverage 2.44% <ø> (ø)
mining_device-coverage 0.00% <ø> (ø)
mining_proxy_sv2-coverage 0.70% <ø> (ø)
noise_sv2-coverage 4.44% <ø> (ø)
pool_sv2-coverage 2.05% <ø> (ø)
protocols 24.57% <ø> (ø)
roles 6.55% <0.00%> (-0.01%) ⬇️
roles_logic_sv2-coverage 7.93% <ø> (ø)
sv2_ffi-coverage 0.00% <ø> (ø)
template_distribution_sv2-coverage 0.00% <ø> (ø)
translator_sv2-coverage 9.60% <ø> (ø)
utils 25.13% <ø> (ø)
v1-coverage 2.41% <ø> (ø)

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jbesraa jbesraa force-pushed the 2025-01-09-jdc-fallback-test branch 2 times, most recently from 5c367cd to b50e256 Compare January 14, 2025 11:30
@jbesraa jbesraa marked this pull request as ready for review January 14, 2025 11:31
Comment on lines 27 to 36
Some(vec![InterceptMessage::new(
MessageDirection::ToDownstream,
MESSAGE_TYPE_MINING_SET_NEW_PREV_HASH,
PoolMessages::Mining(Mining::SubmitSharesError(SubmitSharesError {
channel_id: 0,
sequence_number: 0,
error_code: "invalid-nonce".to_string().into_bytes().try_into().unwrap(),
})),
MESSAGE_TYPE_SUBMIT_SHARES_ERROR,
false,
)]),
)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Shourya742 @plebhash @GitGab19 I took a different approach here:
Instead of starting a miner and waiting for share submission and then success share submission message and altering it to error share submission, I just altered one of the previous messages(MINING_SET_NEW_PREV_HASH in this case). This is inspired by a discussion I had yesterday with @Shourya742 .
LMKWYT please.

Copy link
Collaborator

@plebhash plebhash Jan 15, 2025

Choose a reason for hiding this comment

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

can you elaborate on why SetNewPrevHash should consist a meaningful trigger for fallback?

it feels like we're trying to take a shortcut (while deviating from the original MG test scenario), and I'm not sure I'm convinced with the trade-offs

I see how the original message flow could seem overly complex (and verbose) at first, and I understand the impulse to try to abstract away this extra complexity, but I feel we could be in a bad direction here

ITF have a lot of benefits over MG, and decreased definitely verbosity (Rust vs JSON) is one of them... but unfortunately we cannot make it perfect, and at some point, we also have to stick to the original flow of protocol messages so that we are asserting the right protocol behavior instead of trying to optimize for reduced test complexity

we have to be careful here because that would be missing the forest for the trees

Copy link
Collaborator

@plebhash plebhash Jan 15, 2025

Choose a reason for hiding this comment

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

for reference, the original MG test was introduced here: #617

IMHO the functionality added by #617 should be our north star when deciding what we want to assert on this specific Integration Test

if we shift strategy and assert for something different, we would be giving up on some valuable test coverage on our CI, and part of the motivation for migrating is to still rely on it for these

Copy link
Collaborator

@plebhash plebhash Jan 15, 2025

Choose a reason for hiding this comment

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

finally, fallback is a very essential "selling-point" of JD, and the rejected share trigger is the most obvious feature that a SRI implementation would have (and ideally enforced by CI)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, it is not about verbosity or complexity. It is more about the miner code that we need to either keep tuning or change it to expose some API from it to use in test env, something to be done with sv1 and 2 miners.
There is no specific reason why to choose SetNewPrevHash, it could be SetupConnectionSuccess or any other message from the upstream. I dont see that #617 is asserting anything really? the integration test does assert the JDC connected to the second pool in the vec.

Generally I would be against mocking stuff, but here we are really mocking(or eliminating) the miner behavior which is not part of the SRI project.

Copy link
Collaborator

Choose a reason for hiding this comment

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

The trick about changing the prev_hash was found by me months ago just to quickly trigger the fallback. But it was slightly different though. The prev_hash which was randomly changed/faked was the one sent in the SetCustomMiningJob to the Pool. But again, it was a very dirty and tricky way to trigger the fallback, and it's not the right way to test it. Maybe in the future we are gonna change something in how Pool or JDC manages the prev_hash and this test won't be affordable anymore. We don't want that, so I would really suggest to do it in the most accurate way, which is by altering the SubmitSharesExtended.Success message into a SubmitSharesExtended.Error.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I dont see that #617 is asserting anything really?

the MG test we're aiming to migrate on #1207 (which is the motivating issue for this PR) was introduced on #617

asserting for SetNewPrevHash, SetupConnectionSuccess or any message other than SubmitSharesExtended.Success / Error is working around this goal, and I really don't understand the motivation for that.

Copy link
Collaborator

@plebhash plebhash Jan 18, 2025

Choose a reason for hiding this comment

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

It is more about the miner code that we need to either keep tuning or change it to expose some API from it to use in test env, something to be done with sv1 and 2 miners.

if this is a blocker, we should focus on making it work and then come back to this

but IMHO hacking around it by modifying the nature of the test that we're aiming to migrate completely misses the point

@jbesraa jbesraa force-pushed the 2025-01-09-jdc-fallback-test branch from 6a9de6c to 44b0f1e Compare January 22, 2025 11:30
@plebhash plebhash marked this pull request as draft January 22, 2025 16:43
@plebhash
Copy link
Collaborator

we're going to take a break from debugging this one (it's a bit puzzling)

after making more progress on the other migrations from #1121 (and refactoring roles threading model) we can come back here and resume debugging

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.

CI migration: interop-jdc-change-upstream MG to Integration Test
3 participants