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

feat: update ProxyConfig in roles to JDCConfig, and update the references #1316

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

devworlds
Copy link

@devworlds devworlds commented Dec 21, 2024

Hi, i not found another object with Config, so i changed only ProxyConfig, to check if is what was wanted.

Issue: #1260

Copy link

codecov bot commented Dec 21, 2024

Codecov Report

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

Project coverage is 19.29%. Comparing base (a58246a) to head (2affc77).

Files with missing lines Patch % Lines
roles/jd-client/src/main.rs 0.00% 2 Missing ⚠️
roles/translator/src/main.rs 0.00% 2 Missing ⚠️
roles/jd-client/src/lib/jdc_config.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1316   +/-   ##
=======================================
  Coverage   19.29%   19.29%           
=======================================
  Files         164      164           
  Lines       10852    10852           
=======================================
  Hits         2094     2094           
  Misses       8758     8758           
Flag Coverage Δ
binary_codec_sv2-coverage 0.00% <ø> (ø)
binary_serde_sv2-coverage 3.65% <ø> (ø)
binary_sv2-coverage 5.48% <ø> (ø)
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.29% <ø> (ø)
jd_client-coverage 0.00% <0.00%> (ø)
jd_server-coverage 7.79% <0.00%> (ø)
job_declaration_sv2-coverage 0.00% <ø> (ø)
key-utils-coverage 2.39% <ø> (ø)
mining-coverage 2.51% <ø> (ø)
mining_device-coverage 0.00% <0.00%> (ø)
mining_proxy_sv2-coverage 0.70% <0.00%> (ø)
noise_sv2-coverage 4.35% <ø> (ø)
pool_sv2-coverage 1.38% <0.00%> (ø)
protocols 24.72% <ø> (ø)
roles 6.54% <0.00%> (ø)
roles_logic_sv2-coverage 8.08% <ø> (ø)
sv2_ffi-coverage 0.00% <ø> (ø)
template_distribution_sv2-coverage 0.00% <ø> (ø)
translator_sv2-coverage 9.60% <0.00%> (ø)
utils 25.13% <ø> (ø)
v1-coverage 2.47% <ø> (ø)

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.

Copy link
Contributor

github-actions bot commented Dec 21, 2024

🐰 Bencher Report

Branchfeature/updateProxyConfigName
Testbedsv2

🚨 1 Alert

BenchmarkMeasure
Units
ViewBenchmark Result
(Result Δ%)
Upper Boundary
(Limit %)
client_sv2_open_channel_serialize_deserializeL2 Accesses
accesses
📈 plot
🚨 alert (🔔)
🚷 threshold
90.00
(+19.25%)
89.76
(100.27%)
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.16
(+2.49%)
2.23
(96.86%)
📈 view plot
🚷 view threshold
473.00
(-0.09%)
490.93
(96.35%)
📈 view plot
🚷 view threshold
733.00
(-0.40%)
759.92
(96.46%)
📈 view plot
🚷 view threshold
6.00
(+20.57%)
11.99
(50.03%)
📈 view plot
🚷 view threshold
40.00
(+3.73%)
41.64
(96.07%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
8.32
(+1.22%)
8.39
(99.21%)
📈 view plot
🚷 view threshold
2,137.00
(-0.00%)
2,139.44
(99.89%)
📈 view plot
🚷 view threshold
3,152.00
(-0.22%)
3,168.66
(99.47%)
📈 view plot
🚷 view threshold
40.00
(+12.45%)
41.95
(95.35%)
📈 view plot
🚷 view threshold
142.00
(+1.75%)
144.18
(98.49%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
6.39
(+1.47%)
6.44
(99.17%)
📈 view plot
🚷 view threshold
1,750.00
(-0.03%)
1,767.95
(98.98%)
📈 view plot
🚷 view threshold
2,546.00
(-0.23%)
2,576.36
(98.82%)
📈 view plot
🚷 view threshold
20.00
(+16.68%)
24.57
(81.40%)
📈 view plot
🚷 view threshold
107.00
(+2.30%)
108.64
(98.49%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
14.83
(+0.72%)
14.93
(99.32%)
📈 view plot
🚷 view threshold
4,694.00
(-0.01%)
4,711.95
(99.62%)
📈 view plot
🚷 view threshold
6,743.00
(-0.20%)
6,786.81
(99.35%)
📈 view plot
🚷 view threshold
56.00
(+24.27%)
61.67
(90.81%)
📈 view plot
🚷 view threshold
223.00
(+0.83%)
226.18
(98.59%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
27.85
(+0.94%)
28.02
(99.39%)
📈 view plot
🚷 view threshold
10,645.00
(+0.39%)
10,690.93
(99.57%)
📈 view plot
🚷 view threshold
15,496.00
(+0.40%)
15,580.19
(99.46%)
📈 view plot
🚷 view threshold
97.00
(+16.33%)
98.97
(98.01%)
📈 view plot
🚷 view threshold
339.00
(+1.10%)
342.49
(98.98%)
client_sv2_open_channel📈 view plot
🚷 view threshold
4.53
(+3.00%)
4.56
(99.20%)
📈 view plot
🚷 view threshold
1,461.00
(-0.03%)
1,478.93
(98.79%)
📈 view plot
🚷 view threshold
2,152.00
(-0.40%)
2,185.35
(98.47%)
📈 view plot
🚷 view threshold
13.00
(+60.00%)
14.05
(92.49%)
📈 view plot
🚷 view threshold
66.00
(+5.30%)
67.24
(98.15%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
14.16
(+1.00%)
14.20
(99.74%)
📈 view plot
🚷 view threshold
5,064.00
(-0.01%)
5,081.93
(99.65%)
📈 view plot
🚷 view threshold
7,313.00
(-0.18%)
7,353.08
(99.45%)
📈 view plot
🚷 view threshold
46.00
(+27.25%)
47.78
(96.28%)
📈 view plot
🚷 view threshold
189.00
(+1.60%)
190.93
(98.99%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
22.88
(+0.83%)
23.01
(99.42%)
📈 view plot
🚷 view threshold
8,040.00
(+0.11%)
8,056.59
(99.79%)
📈 view plot
🚷 view threshold
11,683.00
(-0.01%)
11,713.72
(99.74%)
📈 view plot
🚨 view alert (🔔)
🚷 view threshold
90.00
(+19.25%)
89.76
(100.27%)
📈 view plot
🚷 view threshold
307.00
(+1.09%)
311.23
(98.64%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
4.75
(+1.29%)
4.79
(99.16%)
📈 view plot
🚷 view threshold
1,502.00
(-0.03%)
1,519.93
(98.82%)
📈 view plot
🚷 view threshold
2,274.00
(-0.20%)
2,301.78
(98.79%)
📈 view plot
🚷 view threshold
12.00
(+27.15%)
15.58
(77.01%)
📈 view plot
🚷 view threshold
69.00
(+2.21%)
70.06
(98.48%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
16.29
(+0.89%)
16.31
(99.87%)
📈 view plot
🚷 view threshold
5,963.00
(-0.01%)
5,980.93
(99.70%)
📈 view plot
🚷 view threshold
8,649.00
(-0.18%)
8,692.93
(99.49%)
📈 view plot
🚷 view threshold
52.00
(+29.77%)
54.75
(94.98%)
📈 view plot
🚷 view threshold
211.00
(+1.36%)
212.00
(99.53%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
35.83
(+0.67%)
35.92
(99.75%)
📈 view plot
🚷 view threshold
14,888.00
(+0.15%)
14,915.48
(99.82%)
📈 view plot
🚷 view threshold
21,863.00
(+0.10%)
21,914.19
(99.77%)
📈 view plot
🚷 view threshold
112.00
(+19.84%)
117.69
(95.17%)
📈 view plot
🚷 view threshold
383.00
(+0.93%)
385.23
(99.42%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Dec 21, 2024

🐰 Bencher Report

Branchfeature/updateProxyConfigName
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
45.20
(+0.11%)
57.96
(77.99%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
85.48
(+9.59%)
104.14
(82.08%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
14.67
(+0.05%)
14.71
(99.71%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
251.27
(-5.36%)
290.86
(86.39%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
598.62
(-2.25%)
646.11
(92.65%)
client_sv2_open_channel📈 view plot
🚷 view threshold
164.55
(-0.28%)
176.67
(93.14%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
284.07
(-0.34%)
308.05
(92.22%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
385.50
(+0.53%)
407.42
(94.62%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
164.80
(+2.88%)
171.43
(96.14%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
465.98
(-0.91%)
548.76
(84.91%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
1,031.50
(+3.03%)
1,139.53
(90.52%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Dec 21, 2024

🐰 Bencher Report

Branchfeature/updateProxyConfigName
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.38
(-0.86%)
8.67
(96.63%)
📈 view plot
🚷 view threshold
3.66
(-1.80%)
3.86
(94.87%)
📈 view plot
🚷 view threshold
5.11
(-2.16%)
5.45
(93.84%)
📈 view plot
🚷 view threshold
10.00
(+22.02%)
15.64
(63.94%)
📈 view plot
🚷 view threshold
92.00
(+0.97%)
96.15
(95.69%)
get_submit📈 view plot
🚷 view threshold
95.29
(-0.08%)
95.65
(99.62%)
📈 view plot
🚷 view threshold
59.26
(-0.25%)
59.70
(99.26%)
📈 view plot
🚷 view threshold
85.08
(-0.30%)
85.81
(99.14%)
📈 view plot
🚷 view threshold
47.00
(+5.95%)
59.86
(78.51%)
📈 view plot
🚷 view threshold
285.00
(+1.66%)
290.32
(98.17%)
get_subscribe📈 view plot
🚷 view threshold
7.90
(-1.29%)
8.23
(95.90%)
📈 view plot
🚷 view threshold
2.76
(-2.11%)
2.94
(93.70%)
📈 view plot
🚷 view threshold
3.83
(-2.54%)
4.14
(92.48%)
📈 view plot
🚷 view threshold
15.00
(+22.06%)
20.36
(73.69%)
📈 view plot
🚷 view threshold
114.00
(-0.42%)
117.78
(96.79%)
serialize_authorize📈 view plot
🚷 view threshold
12.17
(-0.73%)
12.51
(97.30%)
📈 view plot
🚷 view threshold
5.24
(-1.19%)
5.43
(96.57%)
📈 view plot
🚷 view threshold
7.28
(-1.47%)
7.60
(95.77%)
📈 view plot
🚷 view threshold
12.00
(+20.19%)
18.51
(64.84%)
📈 view plot
🚷 view threshold
138.00
(+0.18%)
142.39
(96.92%)
serialize_deserialize_authorize📈 view plot
🚷 view threshold
24.57
(-0.58%)
25.18
(97.56%)
📈 view plot
🚷 view threshold
9.79
(-0.78%)
10.01
(97.74%)
📈 view plot
🚷 view threshold
13.79
(-0.94%)
14.17
(97.28%)
📈 view plot
🚷 view threshold
35.00
(-2.12%)
45.63
(76.71%)
📈 view plot
🚷 view threshold
303.00
(-0.09%)
313.03
(96.79%)
serialize_deserialize_handle_authorize📈 view plot
🚷 view threshold
30.16
(-0.55%)
30.73
(98.16%)
📈 view plot
🚷 view threshold
11.99
(-0.55%)
12.19
(98.37%)
📈 view plot
🚷 view threshold
16.95
(-0.67%)
17.30
(98.02%)
📈 view plot
🚷 view threshold
58.00
(+4.11%)
67.17
(86.35%)
📈 view plot
🚷 view threshold
369.00
(-0.49%)
379.12
(97.33%)
serialize_deserialize_handle_submit📈 view plot
🚷 view threshold
126.43
(-0.01%)
126.78
(99.73%)
📈 view plot
🚷 view threshold
73.12
(-0.19%)
73.53
(99.44%)
📈 view plot
🚷 view threshold
104.76
(-0.24%)
105.49
(99.30%)
📈 view plot
🚷 view threshold
114.00
(+7.36%)
125.43
(90.89%)
📈 view plot
🚷 view threshold
603.00
(+0.95%)
608.35
(99.12%)
serialize_deserialize_handle_subscribe📈 view plot
🚷 view threshold
27.79
(-0.43%)
28.40
(97.85%)
📈 view plot
🚷 view threshold
9.58
(-0.61%)
9.76
(98.13%)
📈 view plot
🚷 view threshold
13.52
(-0.75%)
13.84
(97.72%)
📈 view plot
🚷 view threshold
68.00
(+5.70%)
77.49
(87.75%)
📈 view plot
🚷 view threshold
398.00
(-0.26%)
410.09
(97.05%)
serialize_deserialize_submit📈 view plot
🚷 view threshold
115.14
(-0.09%)
115.71
(99.51%)
📈 view plot
🚷 view threshold
67.89
(-0.25%)
68.41
(99.24%)
📈 view plot
🚷 view threshold
97.36
(-0.32%)
98.27
(99.07%)
📈 view plot
🚷 view threshold
70.00
(+8.40%)
85.83
(81.55%)
📈 view plot
🚷 view threshold
498.00
(+1.05%)
502.08
(99.19%)
serialize_deserialize_subscribe📈 view plot
🚷 view threshold
23.17
(-0.65%)
23.83
(97.25%)
📈 view plot
🚷 view threshold
8.13
(-0.75%)
8.32
(97.76%)
📈 view plot
🚷 view threshold
11.43
(-0.89%)
11.74
(97.30%)
📈 view plot
🚷 view threshold
39.00
(+0.93%)
50.39
(77.40%)
📈 view plot
🚷 view threshold
330.00
(-0.43%)
342.50
(96.35%)
serialize_submit📈 view plot
🚷 view threshold
99.75
(-0.04%)
100.11
(99.64%)
📈 view plot
🚷 view threshold
61.33
(-0.23%)
61.73
(99.34%)
📈 view plot
🚷 view threshold
87.93
(-0.28%)
88.64
(99.20%)
📈 view plot
🚷 view threshold
53.00
(+11.34%)
66.04
(80.26%)
📈 view plot
🚷 view threshold
330.00
(+1.53%)
335.67
(98.31%)
serialize_subscribe📈 view plot
🚷 view threshold
11.38
(-0.20%)
11.60
(98.09%)
📈 view plot
🚷 view threshold
4.11
(-1.33%)
4.28
(95.97%)
📈 view plot
🚷 view threshold
5.69
(-1.70%)
6.00
(94.90%)
📈 view plot
🚷 view threshold
17.00
(+25.20%)
23.34
(72.83%)
📈 view plot
🚷 view threshold
160.00
(+1.06%)
163.61
(97.80%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Dec 21, 2024

🐰 Bencher Report

Branchfeature/updateProxyConfigName
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,386.90
(-2.89%)
6,931.69
(92.14%)
client-submit-serialize-deserialize📈 view plot
🚷 view threshold
7,312.70
(-1.51%)
7,830.60
(93.39%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle📈 view plot
🚷 view threshold
7,976.80
(-1.46%)
9,227.65
(86.44%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle📈 view plot
🚷 view threshold
864.12
(-0.31%)
938.23
(92.10%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize📈 view plot
🚷 view threshold
674.89
(+0.08%)
716.76
(94.16%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize📈 view plot
🚷 view threshold
250.71
(+0.55%)
269.55
(93.01%)
client-sv1-get-authorize/client-sv1-get-authorize📈 view plot
🚷 view threshold
156.10
(-0.84%)
165.90
(94.09%)
client-sv1-get-submit📈 view plot
🚷 view threshold
6,217.90
(-2.08%)
6,780.98
(91.70%)
client-sv1-get-subscribe/client-sv1-get-subscribe📈 view plot
🚷 view threshold
280.40
(-0.62%)
322.18
(87.03%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle📈 view plot
🚷 view threshold
727.46
(-0.03%)
774.65
(93.91%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize📈 view plot
🚷 view threshold
598.16
(+1.37%)
625.73
(95.59%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize📈 view plot
🚷 view threshold
205.65
(-0.29%)
223.03
(92.21%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

@jbesraa jbesraa left a comment

Choose a reason for hiding this comment

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

Thanks for working on this!

Please go to all of the main.rs files inside roles/[role_name] and there you can that each different role have its own config. We should change the name in each role to reflect the name of the role. For example, in translator role we should change to TranslatorConfig, in jd-server role we should change to JDSConfig and so on.

@devworlds
Copy link
Author

Thanks for working on this!

Please go to all of the main.rs files inside roles/[role_name] and there you can that each different role have its own config. We should change the name in each role to reflect the name of the role. For example, in translator role we should change to TranslatorConfig, in jd-server role we should change to JDSConfig and so on.

got it!

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