Skip to content

New stratum-core structure#1860

Merged
GitGab19 merged 3 commits into
stratum-mining:mainfrom
lucasbalieiro:sv2-core-structure
Oct 28, 2025
Merged

New stratum-core structure#1860
GitGab19 merged 3 commits into
stratum-mining:mainfrom
lucasbalieiro:sv2-core-structure

Conversation

@lucasbalieiro
Copy link
Copy Markdown
Collaborator

@lucasbalieiro lucasbalieiro commented Sep 8, 2025

address #1799 (comment);

  • remove roles, since they moved to sv2-apps repo
  • move protocols/v2 --> sv2/
  • move protocols/v2 --> sv1/
  • move protocols/stratum-translation --> stratum-core/stratum-translation
  • move utils/buffer --> sv2/buffer-sv2
  • adapted scripts and workflows where needed

@lucasbalieiro lucasbalieiro changed the title New stratum-core repository New stratum-core structure Sep 8, 2025
@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 3 times, most recently from b951f8c to ca6b32d Compare September 10, 2025 20:49
@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

@GitGab19 I'm currently making some updates to run-integration-tests.sh, and it now points to the sv2-apps repo.

Could you rebase the sv2-apps repo so I can properly test the script?

Some integration tests are failing because certain changes (like those in #1856) aren’t being picked up.

@GitGab19
Copy link
Copy Markdown
Member

GitGab19 commented Sep 11, 2025

@lucasbalieiro just force-pushed sv2-apps.

Let me know if you need anything else. Also, ping me when you want a review on this PR.

@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 6 times, most recently from 017e99f to bc7184e Compare September 11, 2025 20:19
@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

@GitGab19, thanks for updating the repo.

I got the script working and made a few changes, including updates to the GitHub Workflows.

Right now, the integration test workflow is failing. It seems the reusable workflow from sv2-apps is overriding paths that don’t exist in this PR. You can check the logs for details. I think we’ll need to make some changes there as well.

Also, I’ve noticed that the test jds_should_not_panic_if_jdc_shutsdown sometimes hangs on my local setup (I haven’t investigated this yet).

If you have a chance, it would be really helpful if you could review the overall structure to see if I’ve made any mistakes.

image

Comment thread README.md Outdated
@plebhash plebhash marked this pull request as ready for review September 12, 2025 17:29
@plebhash plebhash marked this pull request as draft September 12, 2025 17:29
@plebhash plebhash marked this pull request as ready for review September 12, 2025 17:29
@plebhash plebhash marked this pull request as draft September 12, 2025 17:30
@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 2 times, most recently from febfaee to 84f1d92 Compare September 15, 2025 16:31
@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

lucasbalieiro commented Sep 15, 2025

force-pushed a modification in the script to run the integration tests with cargo nextest to avoid the flaky tests that I was facing earlier.

Also, rebased with the latest changes on main

@GitGab19
Copy link
Copy Markdown
Member

@GitGab19, thanks for updating the repo.

I got the script working and made a few changes, including updates to the GitHub Workflows.

Right now, the integration test workflow is failing. It seems the reusable workflow from sv2-apps is overriding paths that don’t exist in this PR. You can check the logs for details. I think we’ll need to make some changes there as well.

Also, I’ve noticed that the test jds_should_not_panic_if_jdc_shutsdown sometimes hangs on my local setup (I haven’t investigated this yet).

If you have a chance, it would be really helpful if you could review the overall structure to see if I’ve made any mistakes.
image

Sorry for being late, I'll take a look tomorrow morning and report my findings here!

@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 6 times, most recently from 759075f to b5c1dba Compare September 17, 2025 18:34
@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

@GitGab19 I adapted the CI and tweaked the script to make it cross-compatible.

Could you update sv2-apps? CI need this PR there: #1864

@GitGab19
Copy link
Copy Markdown
Member

Force-pushed sv2-apps repo, triggered again the CI and now IT pass!

@plebhash
Copy link
Copy Markdown
Member

plebhash commented Sep 29, 2025

key-utils is used also by codec_sv2 for its examples

codec_sv2 can point to the published version on crates.io

cc @lucasbalieiro can you change that here?

@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 2 times, most recently from de6edac to dd0c857 Compare September 29, 2025 14:14
Comment thread sv2/codec-sv2/Cargo.toml Outdated
@Shourya742
Copy link
Copy Markdown
Member

Pinning it here, for later reflection: #1947 (comment)

Comment thread stratum-core/stratum-translation/Cargo.toml
Comment thread sv2/codec-sv2/src/decoder.rs Outdated
@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

Updated this PR to catch-up with main.

Adapted to recent changes on sv2-apps repo.

CI Green

Comment thread .github/workflows/docs.yaml
Comment thread scripts/coverage-protocols.sh Outdated
Comment thread scripts/coverage-protocols.sh Outdated
Comment thread fuzz-tests/src/main.rs
Comment thread test/fuzz-tests/.gitignore Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread Cargo.toml
Copy link
Copy Markdown
Member

@GitGab19 GitGab19 left a comment

Choose a reason for hiding this comment

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

ACK.

I would wait for #1902 to get merged before merging this one though, since that PR is touching both protocol crates and apps.

@average-gary
Copy link
Copy Markdown
Contributor

#1966 is preferred to #1902 as it moves persistence concerns to the application layer.

@GitGab19
Copy link
Copy Markdown
Member

Now that #1966 has been merged, and the work about persistence will be done on the application layer, I think we can proceed with this PR.

@lucasbalieiro can you please solve conflicts and rebase it?

I'm pretty sure it will be the last time 😉

Comment thread README.md Outdated
@lucasbalieiro
Copy link
Copy Markdown
Collaborator Author

rebased with the changes from #1966

@plebhash
Copy link
Copy Markdown
Member

plebhash commented Oct 24, 2025

sorry guys, I just realized this #1967

should be fixed via #1968

@GitGab19
Copy link
Copy Markdown
Member

@lucasbalieiro I just merged #1968 and updated sv2-apps repo.

You can rebase this PR and we should be really ready to get it merged :)

@Shourya742
Copy link
Copy Markdown
Member

@lucasbalieiro Can you remove sv2.h from scripts, we don't use it.

Comment thread .github/workflows/clippy-lint.yaml Outdated
- Moved roles to its own repository: https://github.com/stratum-mining/sv2-apps
- Move protocols/v2 --> sv2/
- Move protocols/v2 --> sv1/
- Move protocols/stratum-translation --> stratum-core/stratum-translation
- Move utils/buffer --> sv2/buffer-sv2
- Adapted scripts and workflows where needed
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.

5 participants