Skip to content

Fix ambiguous naming on Integration Tests Sniffer API (next_upstream_message vs next_downstream_message)#1236

Merged
plebhash merged 1 commit into
stratum-mining:mainfrom
plebhash:fix_sniffer_ambiguity
Oct 29, 2024
Merged

Fix ambiguous naming on Integration Tests Sniffer API (next_upstream_message vs next_downstream_message)#1236
plebhash merged 1 commit into
stratum-mining:mainfrom
plebhash:fix_sniffer_ambiguity

Conversation

@plebhash

Copy link
Copy Markdown
Member

close #1235

@plebhash plebhash requested a review from jbesraa October 25, 2024 21:58
@plebhash plebhash changed the title Fix ambiguous naming on Integration Tests Sniffer API (next_upstream_message vs next_downstream_message) Fix ambiguous naming on Integration Tests Sniffer API (next_upstream_message vs next_downstream_message) Oct 25, 2024
@plebhash plebhash force-pushed the fix_sniffer_ambiguity branch from b3af780 to 46b32ca Compare October 25, 2024 21:59
@codecov

codecov Bot commented Oct 25, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.36%. Comparing base (0a8c17e) to head (19d1559).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1236   +/-   ##
=======================================
  Coverage   19.36%   19.36%           
=======================================
  Files         164      164           
  Lines       10811    10811           
=======================================
  Hits         2094     2094           
  Misses       8717     8717           
Flag Coverage Δ
binary_codec_sv2-coverage 0.00% <ø> (ø)
binary_serde_sv2-coverage 3.65% <ø> (ø)
binary_sv2-coverage 5.46% <ø> (ø)
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% <ø> (ø)
jd_server-coverage 8.13% <ø> (ø)
job_declaration_sv2-coverage 0.00% <ø> (ø)
key-utils-coverage 2.39% <ø> (ø)
mining-coverage 2.51% <ø> (ø)
mining_device-coverage 0.00% <ø> (ø)
mining_proxy_sv2-coverage 0.70% <ø> (ø)
noise_sv2-coverage 4.35% <ø> (ø)
pool_sv2-coverage 1.38% <ø> (ø)
protocols 24.72% <ø> (ø)
roles 6.63% <ø> (ø)
roles_logic_sv2-coverage 8.06% <ø> (ø)
sv1-mining-device-coverage 0.00% <ø> (ø)
sv2_ffi-coverage 0.00% <ø> (ø)
template_distribution_sv2-coverage 0.00% <ø> (ø)
translator_sv2-coverage 9.61% <ø> (ø)
utils ?
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.

@github-actions

github-actions Bot commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branch1236/merge
Testbedsv1

⚠️ WARNING: The following Measures do not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkEstimated Cyclesestimated cyclesInstructionsinstructionsL1 AccessesaccessesL2 AccessesaccessesRAM Accessesaccesses
get_authorize📈 view plot
⚠️ NO THRESHOLD
8,338.00📈 view plot
⚠️ NO THRESHOLD
3,655.00📈 view plot
⚠️ NO THRESHOLD
5,098.00📈 view plot
⚠️ NO THRESHOLD
11.00📈 view plot
⚠️ NO THRESHOLD
91.00
get_submit📈 view plot
⚠️ NO THRESHOLD
95,156.00📈 view plot
⚠️ NO THRESHOLD
59,255.00📈 view plot
⚠️ NO THRESHOLD
85,071.00📈 view plot
⚠️ NO THRESHOLD
43.00📈 view plot
⚠️ NO THRESHOLD
282.00
get_subscribe📈 view plot
⚠️ NO THRESHOLD
7,867.00📈 view plot
⚠️ NO THRESHOLD
2,750.00📈 view plot
⚠️ NO THRESHOLD
3,817.00📈 view plot
⚠️ NO THRESHOLD
19.00📈 view plot
⚠️ NO THRESHOLD
113.00
serialize_authorize📈 view plot
⚠️ NO THRESHOLD
12,093.00📈 view plot
⚠️ NO THRESHOLD
5,232.00📈 view plot
⚠️ NO THRESHOLD
7,268.00📈 view plot
⚠️ NO THRESHOLD
13.00📈 view plot
⚠️ NO THRESHOLD
136.00
serialize_deserialize_authorize📈 view plot
⚠️ NO THRESHOLD
24,432.00📈 view plot
⚠️ NO THRESHOLD
9,778.00📈 view plot
⚠️ NO THRESHOLD
13,777.00📈 view plot
⚠️ NO THRESHOLD
38.00📈 view plot
⚠️ NO THRESHOLD
299.00
serialize_deserialize_handle_authorize📈 view plot
⚠️ NO THRESHOLD
30,201.00📈 view plot
⚠️ NO THRESHOLD
11,981.00📈 view plot
⚠️ NO THRESHOLD
16,936.00📈 view plot
⚠️ NO THRESHOLD
63.00📈 view plot
⚠️ NO THRESHOLD
370.00
serialize_deserialize_handle_submit📈 view plot
⚠️ NO THRESHOLD
126,142.00📈 view plot
⚠️ NO THRESHOLD
73,117.00📈 view plot
⚠️ NO THRESHOLD
104,772.00📈 view plot
⚠️ NO THRESHOLD
109.00📈 view plot
⚠️ NO THRESHOLD
595.00
serialize_deserialize_handle_subscribe📈 view plot
⚠️ NO THRESHOLD
27,745.00📈 view plot
⚠️ NO THRESHOLD
9,569.00📈 view plot
⚠️ NO THRESHOLD
13,510.00📈 view plot
⚠️ NO THRESHOLD
68.00📈 view plot
⚠️ NO THRESHOLD
397.00
serialize_deserialize_submit📈 view plot
⚠️ NO THRESHOLD
114,793.00📈 view plot
⚠️ NO THRESHOLD
67,894.00📈 view plot
⚠️ NO THRESHOLD
97,378.00📈 view plot
⚠️ NO THRESHOLD
60.00📈 view plot
⚠️ NO THRESHOLD
489.00
serialize_deserialize_subscribe📈 view plot
⚠️ NO THRESHOLD
23,036.00📈 view plot
⚠️ NO THRESHOLD
8,121.00📈 view plot
⚠️ NO THRESHOLD
11,416.00📈 view plot
⚠️ NO THRESHOLD
42.00📈 view plot
⚠️ NO THRESHOLD
326.00
serialize_submit📈 view plot
⚠️ NO THRESHOLD
99,469.00📈 view plot
⚠️ NO THRESHOLD
61,317.00📈 view plot
⚠️ NO THRESHOLD
87,934.00📈 view plot
⚠️ NO THRESHOLD
46.00📈 view plot
⚠️ NO THRESHOLD
323.00
serialize_subscribe📈 view plot
⚠️ NO THRESHOLD
11,202.00📈 view plot
⚠️ NO THRESHOLD
4,103.00📈 view plot
⚠️ NO THRESHOLD
5,682.00📈 view plot
⚠️ NO THRESHOLD
19.00📈 view plot
⚠️ NO THRESHOLD
155.00
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branch1236/merge
Testbedsv1

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
client-submit-serialize📈 view plot
⚠️ NO THRESHOLD
6,617.80
client-submit-serialize-deserialize📈 view plot
⚠️ NO THRESHOLD
7,509.10
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle📈 view plot
⚠️ NO THRESHOLD
8,009.90
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle📈 view plot
⚠️ NO THRESHOLD
864.29
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize📈 view plot
⚠️ NO THRESHOLD
672.69
client-sv1-authorize-serialize/client-sv1-authorize-serialize📈 view plot
⚠️ NO THRESHOLD
248.93
client-sv1-get-authorize/client-sv1-get-authorize📈 view plot
⚠️ NO THRESHOLD
156.72
client-sv1-get-submit📈 view plot
⚠️ NO THRESHOLD
6,411.10
client-sv1-get-subscribe/client-sv1-get-subscribe📈 view plot
⚠️ NO THRESHOLD
281.95
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle📈 view plot
⚠️ NO THRESHOLD
728.63
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize📈 view plot
⚠️ NO THRESHOLD
603.01
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize📈 view plot
⚠️ NO THRESHOLD
201.19
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branch1236/merge
Testbedsv2

⚠️ WARNING: The following Measure does not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkLatencynanoseconds (ns)
client_sv2_handle_message_common📈 view plot
⚠️ NO THRESHOLD
44.20
client_sv2_handle_message_mining📈 view plot
⚠️ NO THRESHOLD
75.24
client_sv2_mining_message_submit_standard📈 view plot
⚠️ NO THRESHOLD
14.67
client_sv2_mining_message_submit_standard_serialize📈 view plot
⚠️ NO THRESHOLD
268.82
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
⚠️ NO THRESHOLD
586.04
client_sv2_open_channel📈 view plot
⚠️ NO THRESHOLD
148.52
client_sv2_open_channel_serialize📈 view plot
⚠️ NO THRESHOLD
283.78
client_sv2_open_channel_serialize_deserialize📈 view plot
⚠️ NO THRESHOLD
375.86
client_sv2_setup_connection📈 view plot
⚠️ NO THRESHOLD
157.99
client_sv2_setup_connection_serialize📈 view plot
⚠️ NO THRESHOLD
484.08
client_sv2_setup_connection_serialize_deserialize📈 view plot
⚠️ NO THRESHOLD
944.49
🐰 View full continuous benchmarking report in Bencher

@github-actions

github-actions Bot commented Oct 25, 2024

Copy link
Copy Markdown
Contributor

🐰 Bencher Report

Branch1236/merge
Testbedsv2

⚠️ WARNING: The following Measures do not have a Threshold. Without a Threshold, no Alerts will ever be generated!

Click here to create a new Threshold
For more information, see the Threshold documentation.
To only post results if a Threshold exists, set the --ci-only-thresholds CLI flag.

Click to view all benchmark results
BenchmarkEstimated Cyclesestimated cyclesInstructionsinstructionsL1 AccessesaccessesL2 AccessesaccessesRAM Accessesaccesses
client_sv2_handle_message_common📈 view plot
⚠️ NO THRESHOLD
2,083.00📈 view plot
⚠️ NO THRESHOLD
465.00📈 view plot
⚠️ NO THRESHOLD
723.00📈 view plot
⚠️ NO THRESHOLD
6.00📈 view plot
⚠️ NO THRESHOLD
38.00
client_sv2_handle_message_mining📈 view plot
⚠️ NO THRESHOLD
8,192.00📈 view plot
⚠️ NO THRESHOLD
2,137.00📈 view plot
⚠️ NO THRESHOLD
3,162.00📈 view plot
⚠️ NO THRESHOLD
33.00📈 view plot
⚠️ NO THRESHOLD
139.00
client_sv2_mining_message_submit_standard📈 view plot
⚠️ NO THRESHOLD
6,239.00📈 view plot
⚠️ NO THRESHOLD
1,742.00📈 view plot
⚠️ NO THRESHOLD
2,539.00📈 view plot
⚠️ NO THRESHOLD
19.00📈 view plot
⚠️ NO THRESHOLD
103.00
client_sv2_mining_message_submit_standard_serialize📈 view plot
⚠️ NO THRESHOLD
14,594.00📈 view plot
⚠️ NO THRESHOLD
4,686.00📈 view plot
⚠️ NO THRESHOLD
6,749.00📈 view plot
⚠️ NO THRESHOLD
43.00📈 view plot
⚠️ NO THRESHOLD
218.00
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
⚠️ NO THRESHOLD
27,426.00📈 view plot
⚠️ NO THRESHOLD
10,577.00📈 view plot
⚠️ NO THRESHOLD
15,391.00📈 view plot
⚠️ NO THRESHOLD
83.00📈 view plot
⚠️ NO THRESHOLD
332.00
client_sv2_open_channel📈 view plot
⚠️ NO THRESHOLD
4,291.00📈 view plot
⚠️ NO THRESHOLD
1,453.00📈 view plot
⚠️ NO THRESHOLD
2,151.00📈 view plot
⚠️ NO THRESHOLD
8.00📈 view plot
⚠️ NO THRESHOLD
60.00
client_sv2_open_channel_serialize📈 view plot
⚠️ NO THRESHOLD
13,894.00📈 view plot
⚠️ NO THRESHOLD
5,056.00📈 view plot
⚠️ NO THRESHOLD
7,319.00📈 view plot
⚠️ NO THRESHOLD
34.00📈 view plot
⚠️ NO THRESHOLD
183.00
client_sv2_open_channel_serialize_deserialize📈 view plot
⚠️ NO THRESHOLD
22,571.00📈 view plot
⚠️ NO THRESHOLD
8,019.00📈 view plot
⚠️ NO THRESHOLD
11,661.00📈 view plot
⚠️ NO THRESHOLD
82.00📈 view plot
⚠️ NO THRESHOLD
300.00
client_sv2_setup_connection📈 view plot
⚠️ NO THRESHOLD
4,627.00📈 view plot
⚠️ NO THRESHOLD
1,494.00📈 view plot
⚠️ NO THRESHOLD
2,267.00📈 view plot
⚠️ NO THRESHOLD
10.00📈 view plot
⚠️ NO THRESHOLD
66.00
client_sv2_setup_connection_serialize📈 view plot
⚠️ NO THRESHOLD
16,060.00📈 view plot
⚠️ NO THRESHOLD
5,955.00📈 view plot
⚠️ NO THRESHOLD
8,655.00📈 view plot
⚠️ NO THRESHOLD
39.00📈 view plot
⚠️ NO THRESHOLD
206.00
client_sv2_setup_connection_serialize_deserialize📈 view plot
⚠️ NO THRESHOLD
35,400.00📈 view plot
⚠️ NO THRESHOLD
14,847.00📈 view plot
⚠️ NO THRESHOLD
21,815.00📈 view plot
⚠️ NO THRESHOLD
92.00📈 view plot
⚠️ NO THRESHOLD
375.00
🐰 View full continuous benchmarking report in Bencher

@jbesraa jbesraa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Could please update the docs above the pub struct Sniffer accordingly?

@plebhash plebhash force-pushed the fix_sniffer_ambiguity branch from 46b32ca to 8186d8e Compare October 28, 2024 12:21
@plebhash plebhash force-pushed the fix_sniffer_ambiguity branch from 8186d8e to 19d1559 Compare October 28, 2024 12:23
@plebhash plebhash requested a review from jbesraa October 28, 2024 12:26
@plebhash plebhash merged commit 73f51db into stratum-mining:main Oct 29, 2024
@plebhash plebhash deleted the fix_sniffer_ambiguity branch October 29, 2024 14:24
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.

Ambiguous naming on Integration Tests Sniffer API (next_upstream_message vs next_downstream_message)

3 participants