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

chore: combine ci #1312

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

Conversation

devworlds
Copy link

@devworlds devworlds commented Dec 20, 2024

Hello, as required try to combine all asked yamls in only one yaml to ci/cd separated by jobs.

Issue: #1272

Copy link

codecov bot commented Dec 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.29%. Comparing base (651f35a) to head (1bfd171).

Additional details and impacted files
@@            Coverage Diff             @@
##            main    #1312       +/-   ##
==========================================
+ Coverage   0.00%   19.29%   +19.29%     
==========================================
  Files         18      164      +146     
  Lines        982    10852     +9870     
==========================================
+ Hits           0     2094     +2094     
- Misses       982     8758     +7776     
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% <ø> (?)
jd_server-coverage 7.79% <ø> (?)
job_declaration_sv2-coverage 0.00% <ø> (?)
key-utils-coverage 2.39% <ø> (?)
mining-coverage 2.49% <ø> (?)
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.54% <ø> (?)
roles_logic_sv2-coverage 8.08% <ø> (?)
sv2_ffi-coverage 0.00% <ø> (?)
template_distribution_sv2-coverage 0.00% <ø> (?)
translator_sv2-coverage 9.60% <ø> (?)
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 20, 2024

🐰 Bencher Report

Branchfeature/Ci_combine
Testbedsv2
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.13
(+0.99%)
2.23
(95.50%)
📈 view plot
🚷 view threshold
473.00
(-0.12%)
490.74
(96.39%)
📈 view plot
🚷 view threshold
733.00
(-0.41%)
759.43
(96.52%)
📈 view plot
🚷 view threshold
7.00
(+38.27%)
11.82
(59.21%)
📈 view plot
🚷 view threshold
39.00
(+1.05%)
41.63
(93.67%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
8.28
(+0.62%)
8.40
(98.57%)
📈 view plot
🚷 view threshold
2,137.00📈 view plot
🚷 view threshold
3,156.00
(-0.09%)
3,167.55
(99.64%)
📈 view plot
🚷 view threshold
37.00
(+3.93%)
41.79
(88.53%)
📈 view plot
🚷 view threshold
141.00
(+0.96%)
144.46
(97.60%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
6.33
(+0.42%)
6.45
(98.14%)
📈 view plot
🚷 view threshold
1,750.00
(-0.03%)
1,767.74
(99.00%)
📈 view plot
🚷 view threshold
2,547.00
(-0.19%)
2,575.99
(98.87%)
📈 view plot
🚷 view threshold
21.00
(+21.85%)
24.64
(85.23%)
📈 view plot
🚷 view threshold
105.00
(+0.34%)
108.72
(96.58%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
14.79
(+0.42%)
14.93
(99.01%)
📈 view plot
🚷 view threshold
4,694.00
(-0.01%)
4,711.74
(99.62%)
📈 view plot
🚷 view threshold
6,746.00
(-0.15%)
6,786.82
(99.40%)
📈 view plot
🚷 view threshold
54.00
(+18.72%)
62.49
(86.42%)
📈 view plot
🚷 view threshold
222.00
(+0.38%)
226.12
(98.18%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
27.81
(+0.77%)
28.05
(99.15%)
📈 view plot
🚷 view threshold
10,645.00
(+0.37%)
10,695.94
(99.52%)
📈 view plot
🚷 view threshold
15,505.00
(+0.43%)
15,589.49
(99.46%)
📈 view plot
🚷 view threshold
88.00
(+5.24%)
98.76
(89.10%)
📈 view plot
🚷 view threshold
339.00
(+1.06%)
343.03
(98.82%)
client_sv2_open_channel📈 view plot
🚷 view threshold
4.46
(+1.26%)
4.57
(97.43%)
📈 view plot
🚷 view threshold
1,461.00
(-0.04%)
1,478.74
(98.80%)
📈 view plot
🚷 view threshold
2,155.00
(-0.26%)
2,184.96
(98.63%)
📈 view plot
🚷 view threshold
12.00
(+46.70%)
14.00
(85.74%)
📈 view plot
🚷 view threshold
64.00
(+1.92%)
67.49
(94.83%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
14.04
(+0.18%)
14.20
(98.93%)
📈 view plot
🚷 view threshold
5,064.00
(-0.01%)
5,081.74
(99.65%)
📈 view plot
🚷 view threshold
7,319.00
(-0.10%)
7,352.91
(99.54%)
📈 view plot
🚷 view threshold
43.00
(+17.86%)
48.07
(89.45%)
📈 view plot
🚷 view threshold
186.00
(+0.01%)
190.78
(97.49%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
22.92
(+0.96%)
23.05
(99.44%)
📈 view plot
🚷 view threshold
8,040.00
(+0.10%)
8,057.17
(99.79%)
📈 view plot
🚷 view threshold
11,688.00
(+0.03%)
11,713.94
(99.78%)
📈 view plot
🚷 view threshold
83.00
(+9.67%)
89.57
(92.67%)
📈 view plot
🚷 view threshold
309.00
(+1.66%)
312.21
(98.97%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
4.71
(+0.54%)
4.79
(98.45%)
📈 view plot
🚷 view threshold
1,502.00
(-0.04%)
1,519.74
(98.83%)
📈 view plot
🚷 view threshold
2,275.00
(-0.16%)
2,301.29
(98.86%)
📈 view plot
🚷 view threshold
12.00
(+27.05%)
15.41
(77.86%)
📈 view plot
🚷 view threshold
68.00
(+0.68%)
70.06
(97.06%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
16.23
(+0.47%)
16.32
(99.45%)
📈 view plot
🚷 view threshold
5,963.00
(-0.01%)
5,980.74
(99.70%)
📈 view plot
🚷 view threshold
8,650.00
(-0.16%)
8,692.79
(99.51%)
📈 view plot
🚷 view threshold
53.00
(+31.02%)
55.79
(95.01%)
📈 view plot
🚷 view threshold
209.00
(+0.38%)
212.03
(98.57%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
35.81
(+0.60%)
35.95
(99.63%)
📈 view plot
🚷 view threshold
14,888.00
(+0.14%)
14,917.93
(99.80%)
📈 view plot
🚷 view threshold
21,867.00
(+0.11%)
21,917.24
(99.77%)
📈 view plot
🚷 view threshold
108.00
(+14.76%)
118.77
(90.93%)
📈 view plot
🚷 view threshold
383.00
(+0.90%)
385.68
(99.31%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Dec 20, 2024

🐰 Bencher Report

Branchfeature/Ci_combine
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.39
(-0.78%)
8.67
(96.72%)
📈 view plot
🚷 view threshold
3.69
(-1.00%)
3.86
(95.56%)
📈 view plot
🚷 view threshold
5.16
(-1.14%)
5.44
(94.72%)
📈 view plot
🚷 view threshold
9.00
(+7.46%)
16.05
(56.06%)
📈 view plot
🚷 view threshold
91.00
(-0.31%)
96.57
(94.23%)
get_submit📈 view plot
🚷 view threshold
95.18
(-0.19%)
95.62
(99.54%)
📈 view plot
🚷 view threshold
59.35
(-0.10%)
59.70
(99.40%)
📈 view plot
🚷 view threshold
85.23
(-0.10%)
85.81
(99.32%)
📈 view plot
🚷 view threshold
44.00
(-1.18%)
59.94
(73.40%)
📈 view plot
🚷 view threshold
278.00
(-0.90%)
291.23
(95.46%)
get_subscribe📈 view plot
🚷 view threshold
7.86
(-1.65%)
8.23
(95.53%)
📈 view plot
🚷 view threshold
2.77
(-1.74%)
2.94
(93.96%)
📈 view plot
🚷 view threshold
3.85
(-1.95%)
4.14
(92.92%)
📈 view plot
🚷 view threshold
12.00
(-3.52%)
20.57
(58.35%)
📈 view plot
🚷 view threshold
113.00
(-1.32%)
117.88
(95.86%)
serialize_authorize📈 view plot
🚷 view threshold
12.10
(-1.25%)
12.50
(96.80%)
📈 view plot
🚷 view threshold
5.27
(-0.63%)
5.43
(97.07%)
📈 view plot
🚷 view threshold
7.33
(-0.71%)
7.60
(96.44%)
📈 view plot
🚷 view threshold
10.00
(-1.23%)
18.68
(53.54%)
📈 view plot
🚷 view threshold
135.00
(-2.07%)
142.98
(94.42%)
serialize_deserialize_authorize📈 view plot
🚷 view threshold
24.60
(-0.47%)
25.18
(97.68%)
📈 view plot
🚷 view threshold
9.84
(-0.21%)
10.01
(98.30%)
📈 view plot
🚷 view threshold
13.88
(-0.24%)
14.17
(97.94%)
📈 view plot
🚷 view threshold
37.00
(+2.87%)
45.95
(80.53%)
📈 view plot
🚷 view threshold
301.00
(-0.82%)
313.27
(96.08%)
serialize_deserialize_handle_authorize📈 view plot
🚷 view threshold
30.11
(-0.72%)
30.73
(97.98%)
📈 view plot
🚷 view threshold
12.02
(-0.30%)
12.18
(98.61%)
📈 view plot
🚷 view threshold
17.00
(-0.35%)
17.29
(98.31%)
📈 view plot
🚷 view threshold
59.00
(+5.58%)
67.63
(87.23%)
📈 view plot
🚷 view threshold
366.00
(-1.34%)
379.23
(96.51%)
serialize_deserialize_handle_submit📈 view plot
🚷 view threshold
126.21
(-0.19%)
126.78
(99.55%)
📈 view plot
🚷 view threshold
73.20
(-0.07%)
73.53
(99.55%)
📈 view plot
🚷 view threshold
104.92
(-0.08%)
105.50
(99.45%)
📈 view plot
🚷 view threshold
108.00
(+1.44%)
125.56
(86.02%)
📈 view plot
🚷 view threshold
593.00
(-0.76%)
609.71
(97.26%)
serialize_deserialize_handle_subscribe📈 view plot
🚷 view threshold
27.70
(-0.76%)
28.39
(97.59%)
📈 view plot
🚷 view threshold
9.58
(-0.50%)
9.76
(98.20%)
📈 view plot
🚷 view threshold
13.54
(-0.59%)
13.84
(97.83%)
📈 view plot
🚷 view threshold
68.00
(+5.27%)
78.09
(87.08%)
📈 view plot
🚷 view threshold
395.00
(-1.06%)
409.64
(96.43%)
serialize_deserialize_submit📈 view plot
🚷 view threshold
115.10
(-0.12%)
115.71
(99.47%)
📈 view plot
🚷 view threshold
68.06
(-0.00%)
68.42
(99.48%)
📈 view plot
🚷 view threshold
97.65
(-0.00%)
98.28
(99.36%)
📈 view plot
🚷 view threshold
66.00
(+1.29%)
86.96
(75.90%)
📈 view plot
🚷 view threshold
489.00
(-0.84%)
504.00
(97.02%)
serialize_deserialize_subscribe📈 view plot
🚷 view threshold
23.13
(-0.82%)
23.82
(97.12%)
📈 view plot
🚷 view threshold
8.14
(-0.54%)
8.32
(97.93%)
📈 view plot
🚷 view threshold
11.45
(-0.61%)
11.75
(97.52%)
📈 view plot
🚷 view threshold
40.00
(+2.81%)
50.87
(78.63%)
📈 view plot
🚷 view threshold
328.00
(-1.09%)
342.27
(95.83%)
serialize_submit📈 view plot
🚷 view threshold
99.56
(-0.22%)
100.09
(99.47%)
📈 view plot
🚷 view threshold
61.41
(-0.08%)
61.73
(99.48%)
📈 view plot
🚷 view threshold
88.09
(-0.09%)
88.64
(99.37%)
📈 view plot
🚷 view threshold
48.00
(+0.20%)
66.46
(72.22%)
📈 view plot
🚷 view threshold
321.00
(-1.29%)
336.85
(95.29%)
serialize_subscribe📈 view plot
🚷 view threshold
11.31
(-0.78%)
11.60
(97.52%)
📈 view plot
🚷 view threshold
4.12
(-1.08%)
4.28
(96.15%)
📈 view plot
🚷 view threshold
5.71
(-1.29%)
6.00
(95.20%)
📈 view plot
🚷 view threshold
14.00
(+1.59%)
23.78
(58.87%)
📈 view plot
🚷 view threshold
158.00
(-0.28%)
164.21
(96.22%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Dec 20, 2024

🐰 Bencher Report

Branchfeature/Ci_combine
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
44.40
(-1.65%)
59.59
(74.52%)
client_sv2_handle_message_mining📈 view plot
🚷 view threshold
72.42
(-6.46%)
106.62
(67.93%)
client_sv2_mining_message_submit_standard📈 view plot
🚷 view threshold
14.66
(-0.02%)
14.72
(99.56%)
client_sv2_mining_message_submit_standard_serialize📈 view plot
🚷 view threshold
261.18
(-1.76%)
290.80
(89.82%)
client_sv2_mining_message_submit_standard_serialize_deserialize📈 view plot
🚷 view threshold
616.24
(+0.27%)
652.27
(94.48%)
client_sv2_open_channel📈 view plot
🚷 view threshold
164.24
(-1.09%)
179.24
(91.63%)
client_sv2_open_channel_serialize📈 view plot
🚷 view threshold
287.34
(+0.79%)
310.82
(92.45%)
client_sv2_open_channel_serialize_deserialize📈 view plot
🚷 view threshold
386.44
(+1.16%)
400.18
(96.57%)
client_sv2_setup_connection📈 view plot
🚷 view threshold
159.11
(-0.62%)
171.78
(92.62%)
client_sv2_setup_connection_serialize📈 view plot
🚷 view threshold
486.68
(+3.33%)
555.67
(87.58%)
client_sv2_setup_connection_serialize_deserialize📈 view plot
🚷 view threshold
990.73
(-0.93%)
1,184.34
(83.65%)
🐰 View full continuous benchmarking report in Bencher

Copy link
Contributor

github-actions bot commented Dec 20, 2024

🐰 Bencher Report

Branchfeature/Ci_combine
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,512.00
(-0.89%)
6,929.23
(93.98%)
client-submit-serialize-deserialize📈 view plot
🚷 view threshold
7,251.30
(-2.18%)
7,874.70
(92.08%)
client-submit-serialize-deserialize-handle/client-submit-serialize-deserialize-handle📈 view plot
🚷 view threshold
7,981.50
(-1.60%)
9,378.40
(85.11%)
client-sv1-authorize-serialize-deserialize-handle/client-sv1-authorize-serialize-deserialize-handle📈 view plot
🚷 view threshold
863.49
(-0.70%)
943.64
(91.51%)
client-sv1-authorize-serialize-deserialize/client-sv1-authorize-serialize-deserialize📈 view plot
🚷 view threshold
669.15
(-0.83%)
716.44
(93.40%)
client-sv1-authorize-serialize/client-sv1-authorize-serialize📈 view plot
🚷 view threshold
245.08
(-1.59%)
265.72
(92.23%)
client-sv1-get-authorize/client-sv1-get-authorize📈 view plot
🚷 view threshold
156.96
(-0.48%)
166.88
(94.05%)
client-sv1-get-submit📈 view plot
🚷 view threshold
6,311.20
(-0.69%)
6,793.11
(92.91%)
client-sv1-get-subscribe/client-sv1-get-subscribe📈 view plot
🚷 view threshold
278.73
(-1.62%)
326.69
(85.32%)
client-sv1-subscribe-serialize-deserialize-handle/client-sv1-subscribe-serialize-deserialize-handle📈 view plot
🚷 view threshold
727.46
(-0.09%)
778.36
(93.46%)
client-sv1-subscribe-serialize-deserialize/client-sv1-subscribe-serialize-deserialize📈 view plot
🚷 view threshold
592.46
(+0.05%)
625.29
(94.75%)
client-sv1-subscribe-serialize/client-sv1-subscribe-serialize📈 view plot
🚷 view threshold
208.87
(+0.84%)
226.80
(92.10%)
🐰 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 looking into this. i'am yet to give it a thorough review but can you please fix ci https://github.com/stratum-mining/stratum/actions/runs/12425379179/workflow ?

@devworlds
Copy link
Author

Thanks for looking into this. i'am yet to give it a thorough review but can you please fix ci https://github.com/stratum-mining/stratum/actions/runs/12425379179/workflow ?

sure, i do it as a syntax test and forgot to fix

@devworlds
Copy link
Author

you think that we can set some pattern to the jobs names? i made just a "draft" to bring to table

@devworlds devworlds requested a review from jbesraa December 20, 2024 13:30
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.

Is there anyway to make this shorter?
Can we try to avoid repeating this following part?

   runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os:
          - macos-latest
          - ubuntu-latest
        include:
          - os: macos-latest
            target: x86_64-apple-darwin
          - os: ubuntu-latest
            target: x86_64-unknown-linux-musl

    steps:
      - uses: actions/checkout@v4
      - uses: actions-rs/toolchain@v1
        with:
          profile: minimal
          toolchain: 1.75.0
          override: true
          components: clippy

@devworlds devworlds requested a review from jbesraa December 23, 2024 21:10
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.

This is going in the right direction but currently it does not seem to be fully working https://github.com/stratum-mining/stratum/actions/runs/12472789699/workflow

@jbesraa
Copy link
Contributor

jbesraa commented Dec 24, 2024

You can take some inspiration from here https://github.com/lightningdevkit/rust-lightning/tree/main/ci If you feel the need to move things to a shell script and just invoke it in the GH action. I think that would be also great for local dev env where devs can just call the shell script to replicate the GH action flow.

Edit: Maybe this is a bit too much for this PR and can happen in a subsequent one.

@devworlds
Copy link
Author

devworlds commented Dec 31, 2024

You think that is good? @jbesraa

@devworlds devworlds requested a review from jbesraa December 31, 2024 17:32
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.

Looks great! Added a few sugg's for the naming in order to make them consistent.
I would also create a sub-folder inside scripts folder and call it workflows, and also align the files names: build.sh, clippy.sh, format.sh and semver.sh

.github/workflows/general-check.yaml Outdated Show resolved Hide resolved
.github/workflows/general-check.yaml Outdated Show resolved Hide resolved
.github/workflows/general-check.yaml Outdated Show resolved Hide resolved
.github/workflows/general-check.yaml Outdated Show resolved Hide resolved
@devworlds devworlds requested a review from jbesraa January 6, 2025 13:03
@devworlds
Copy link
Author

Looks great! Added a few sugg's for the naming in order to make them consistent. I would also create a sub-folder inside scripts folder and call it workflows, and also align the files names: build.sh, clippy.sh, format.sh and semver.sh

Greats sugg's, i hope this help to make the code more clean, and easy to understand to others, and ourselfs too

Copy link
Contributor

@Shourya742 Shourya742 left a comment

Choose a reason for hiding this comment

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

Great work on streamlining the CI! I noticed that test.yaml seems to have been deleted, and it might have been missed. Could you kindly add the corresponding action to it, named ci? Once that’s done, we’ll be all set.

.github/workflows/general-check.yaml Outdated Show resolved Hide resolved
.github/workflows/general-check.yaml Outdated Show resolved Hide resolved
@jbesraa
Copy link
Contributor

jbesraa commented Jan 6, 2025

I think we should change general-check.yml to rust-checks

@plebhash
Copy link
Collaborator

plebhash commented Jan 6, 2025

I haven't really looked into the contents of the PR, but overall I feel the commit history is getting really dirty

we are introducing changes and later adding new commits to fix things from previous commits

if we merged this PR as it is, our commit history on main would be a mess

I highly recommend to the PR author to study how to do rebase and squash on git

@devworlds
Copy link
Author

I haven't really looked into the contents of the PR, but overall I feel the commit history is getting really dirty

we are introducing changes and later adding new commits to fix things from previous commits

if we merged this PR as it is, our commit history on main would be a mess

I highly recommend to the PR author to study how to do rebase and squash on git

thanks for advise, i'll look into this!

@devworlds
Copy link
Author

before foward with PR, can you guys leave a tip to improve the commits like the plebhash said, it just rebase and squash all my commits to only one? @Shourya742 @jbesraa

@devworlds devworlds requested a review from Shourya742 January 6, 2025 16:32
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.

Note that by default we want each job to run on both stable and our-msrv versions unless we specify something different, like for cargo fmt we only use nightly. Moreover, some of the jobs have OS switch but not others, we should be consistent with this.

Yea I would squash it all into a single commit and add as much context as possible in the commit body while leaving the commit title under ~80 chars.

scripts/workflows/test.sh Outdated Show resolved Hide resolved
scripts/workflows/format.sh Show resolved Hide resolved
@devworlds
Copy link
Author

Note that by default we want each job to run on both stable and our-msrv versions unless we specify something different, like for cargo fmt we only use nightly. Moreover, some of the jobs have OS switch but not others, we should be consistent with this.

Yea I would squash it all into a single commit and add as much context as possible in the commit body while leaving the commit title under ~80 chars.

nice, before forward with pr, i will try to make it, i only have fear to break something and can't recover

scripts/workflows/test.sh Outdated Show resolved Hide resolved
scripts/workflows/build.sh Outdated Show resolved Hide resolved
@jbesraa
Copy link
Contributor

jbesraa commented Jan 6, 2025

Note that by default we want each job to run on both stable and our-msrv versions unless we specify something different, like for cargo fmt we only use nightly. Moreover, some of the jobs have OS switch but not others, we should be consistent with this.
Yea I would squash it all into a single commit and add as much context as possible in the commit body while leaving the commit title under ~80 chars.

nice, before forward with pr, i will try to make it, i only have fear to break something and can't recover

We are here to help, just post any problem you get stuck on

@devworlds devworlds requested a review from jbesraa January 6, 2025 18:02
@devworlds
Copy link
Author

devworlds commented Jan 7, 2025

i made a rebase but i think that is not what i was expecting, this week i'll focus on understand better how to work with, to be better in nexts issue, sorry about that, but thanks for all help and patience.

devworlds and others added 24 commits January 7, 2025 12:06
….yaml, fmt.yaml, clippy-lint.yaml, and add general-check.yaml to combine all in one file.
… lower case, and create bash script to ci job.
….yaml, fmt.yaml, clippy-lint.yaml, and add general-check.yaml to combine all in one file.

chore: fix MSRV incorrect job syntax

chore: update general-check to be more clean
…stribution_sv2`: remove the `no_std` feature and make them `#![no_std]` as they never use `std` anywhere.

- bump their MAJOR version because of feature removal
- bump the dependant crates PATCH version
- updates docs

chore: create shell script to make general-check.yaml more clean.

chore: move shell scripts to /scripts

chore: fix path to script on general-check.yaml

chore: fix path to script on general-check.yaml
chore: update names to a pattern, and also organize bash scripts to github inside a workflows directory

chore: adjust wrong clippy.sh file.

chore: update general-check.yaml to rust-check.yaml, and job names to lower case, and create bash script to ci job.

chore: remove comments, and add perm to test.sh
…d create a new script with examples with new job ci-example.
….yaml, fmt.yaml, clippy-lint.yaml, and add general-check.yaml to combine all in one file.

chore: fix MSRV incorrect job syntax

chore: update general-check to be more clean
…stribution_sv2`: remove the `no_std` feature and make them `#![no_std]` as they never use `std` anywhere.

- bump their MAJOR version because of feature removal
- bump the dependant crates PATCH version
- updates docs

chore: create shell script to make general-check.yaml more clean.

chore: move shell scripts to /scripts

chore: fix path to script on general-check.yaml

chore: fix path to script on general-check.yaml
chore: update names to a pattern, and also organize bash scripts to github inside a workflows directory

chore: adjust wrong clippy.sh file.

chore: update general-check.yaml to rust-check.yaml, and job names to lower case, and create bash script to ci job.

chore: remove comments, and add perm to test.sh

chore: remove test.yaml, rust-msrv.yaml, semver-check.yaml, lockfiles.yaml, fmt.yaml, clippy-lint.yaml, and add general-check.yaml to combine all in one  file.

chore: fix MSRV incorrect job syntax

chore: update general-check to be more clean
chore: update names to a pattern, and also organize bash scripts to github inside a workflows directory

chore: adjust wrong clippy.sh file.

chore: update general-check.yaml to rust-check.yaml, and job names to lower case, and create bash script to ci job.

chore: remove comments, and add perm to test.sh

chore: add condition to check if directory exist

chore: fix path to test.sh

chore: try to fix path to test.sh
@devworlds
Copy link
Author

i can't see your comment mate @GitGab19, only that you reviewed something

@devworlds devworlds requested a review from GitGab19 January 8, 2025 13:59
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.

6 participants