Skip to content

Change SUBMIT_SOLUTION_JD to PUSH_SOLUTION#1629

Merged
plebhash merged 3 commits into
stratum-mining:mainfrom
jbesraa:2025-04-09/push-solution
Apr 22, 2025
Merged

Change SUBMIT_SOLUTION_JD to PUSH_SOLUTION#1629
plebhash merged 3 commits into
stratum-mining:mainfrom
jbesraa:2025-04-09/push-solution

Conversation

@jbesraa

@jbesraa jbesraa commented Apr 10, 2025

Copy link
Copy Markdown
Contributor

resolves #1452

@codecov

codecov Bot commented Apr 10, 2025

Copy link
Copy Markdown

Codecov Report

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

Project coverage is 21.14%. Comparing base (8e22b4c) to head (26956a4).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
protocols/v2/roles-logic-sv2/src/parsers.rs 0.00% 5 Missing ⚠️
...v2/roles-logic-sv2/src/handlers/job_declaration.rs 0.00% 4 Missing ⚠️
...d-server/src/lib/job_declarator/message_handler.rs 0.00% 4 Missing ⚠️
roles/jd-server/src/lib/job_declarator/mod.rs 0.00% 2 Missing ⚠️
roles/jd-client/src/lib/job_declarator/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    stratum-mining/stratum#1629   +/-   ##
=======================================
  Coverage   21.14%   21.14%           
=======================================
  Files         135      135           
  Lines        9966     9966           
=======================================
  Hits         2107     2107           
  Misses       7859     7859           
Flag Coverage Δ
binary_codec_sv2-coverage 0.00% <0.00%> (ø)
binary_sv2-coverage 10.13% <0.00%> (ø)
bip32_derivation-coverage 0.00% <ø> (ø)
buffer_sv2-coverage 37.68% <ø> (ø)
codec_sv2-coverage 0.03% <0.00%> (ø)
common_messages_sv2-coverage 0.25% <0.00%> (ø)
const_sv2-coverage 0.00% <0.00%> (ø)
error_handling-coverage 0.00% <ø> (ø)
framing_sv2-coverage 0.54% <0.00%> (ø)
jd_client-coverage 0.39% <0.00%> (ø)
jd_server-coverage 12.42% <0.00%> (ø)
job_declaration_sv2-coverage 0.00% <0.00%> (ø)
key-utils-coverage 3.61% <ø> (ø)
mining-coverage 5.02% <0.00%> (ø)
mining_device-coverage 0.00% <ø> (ø)
mining_proxy_sv2-coverage 1.18% <ø> (ø)
noise_sv2-coverage 8.64% <0.00%> (ø)
pool_sv2-coverage 5.81% <0.00%> (ø)
protocols 30.60% <0.00%> (ø)
roles 11.44% <0.00%> (ø)
roles_logic_sv2-coverage 15.20% <0.00%> (ø)
sv2_ffi-coverage 0.00% <0.00%> (ø)
template_distribution_sv2-coverage 0.00% <0.00%> (ø)
translator_sv2-coverage 9.07% <ø> (ø)
utils 36.39% <ø> (ø)
v1-coverage 4.37% <0.00%> (ø)

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jbesraa jbesraa changed the title Change SUBMIT_SOLUTION_JD to PUSH_SOLUTION Change SUBMIT_SOLUTION_JD to PUSH_SOLUTION Apr 12, 2025
@jbesraa jbesraa marked this pull request as ready for review April 14, 2025 17:37
Comment thread protocols/v2/subprotocols/job-declaration/src/push_solution.rs Outdated
@plebhash plebhash mentioned this pull request Apr 15, 2025
Comment thread protocols/v2/codec-sv2/Cargo.toml
Comment thread roles/jd-server/src/lib/job_declarator/message_handler.rs Outdated
Comment thread test/integration-tests/lib/template_provider.rs Outdated
Comment thread test/integration-tests/tests/jdc_block_propogation.rs
Comment thread test/integration-tests/tests/jdc_block_propogation.rs Outdated
Comment thread test/integration-tests/tests/jds_block_propogation.rs Outdated
Comment thread test/integration-tests/tests/jds_block_propogation.rs
@plebhash plebhash added the ready-to-be-merged triggers auto rebase bot label Apr 22, 2025
@plebhash

Copy link
Copy Markdown
Member

@GitGab19 final approval?

@plebhash plebhash merged commit b772cf3 into stratum-mining:main Apr 22, 2025
@jbesraa jbesraa mentioned this pull request Apr 24, 2025
plebhash added a commit that referenced this pull request Apr 24, 2025

// Block propogated from JDS to TP
#[tokio::test]
async fn propogated_from_jds_to_tp() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

After reading stratum-mining/sv2-spec@9ddd616#diff-9c580b154d81392af22d529877e33b6680d514cb5edc755882eab2a001133fbbR56
I wonder if I should have taken that into account in this PR

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

yeah perhaps we should take that into the scope of #1653

but for now, we should consider every testing scenario as operating under Full-Template mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-be-merged triggers auto rebase bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

upgrade/rename SubmitSolution (JDP)

3 participants