Skip to content

Conversation

@lucasbalieiro
Copy link
Contributor

@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
Contributor 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
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
Contributor 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

@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
Contributor 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
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
Contributor 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
Member

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

@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 4 times, most recently from 6ecc652 to 16b860b Compare October 23, 2025 23:47
Copy link
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
Contributor

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

@GitGab19
Copy link
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 😉

@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 3 times, most recently from 5aa0423 to f309fdb Compare October 24, 2025 18:30
@lucasbalieiro
Copy link
Contributor Author

rebased with the changes from #1966

@plebhash
Copy link
Member

plebhash commented Oct 24, 2025

sorry guys, I just realized this #1967

should be fixed via #1968

@GitGab19
Copy link
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
Collaborator

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

- 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
@lucasbalieiro lucasbalieiro force-pushed the sv2-core-structure branch 2 times, most recently from 03d56c4 to 217639b Compare October 27, 2025 20:22
@GitGab19 GitGab19 merged commit 81f0d43 into stratum-mining:main Oct 28, 2025
12 checks passed
@lucasbalieiro lucasbalieiro deleted the sv2-core-structure branch December 5, 2025 16:09
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