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

Release 1.0.1 #925

Merged
merged 39 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
5b856a8
Improve sv2 cpuminer
ftrtyfytfjh Mar 28, 2024
2c6fc33
Add user identifier as cli arg
ftrtyfytfjh Mar 29, 2024
9dd78b0
Add hashrate estimation for cpuminer
ftrtyfytfjh Apr 2, 2024
8f1d849
Fix fmt and clippy
ftrtyfytfjh Apr 5, 2024
cd7d420
Translators readme (#805)
ikeogu Apr 5, 2024
a94ac34
modified the README in roles/pool dir (#802)
ikeogu Apr 5, 2024
062edbc
JD Client README file retouched (#800)
ikeogu Apr 5, 2024
2ecc9cb
Fix typo
ftrtyfytfjh Apr 6, 2024
1e4552e
Improve sv2 cpuminer
ftrtyfytfjh Mar 28, 2024
51e14f9
Fix fmt and clippy
ftrtyfytfjh Apr 5, 2024
71443c8
Update proxy-config-example.toml
star-gazer111 Apr 8, 2024
7ca9fbc
Update pool-config-local-tp-example.toml
star-gazer111 Apr 8, 2024
821a0e0
Update tproxy-config-local-jdc-example.toml
star-gazer111 Apr 8, 2024
00a2038
Update tproxy-config-local-pool-example.toml
star-gazer111 Apr 8, 2024
8981a25
Fix roles add error en no config file
ftrtyfytfjh May 3, 2024
f2913e8
Fix tproxy panic when no config
ftrtyfytfjh May 3, 2024
214b227
Add support for ARM binaries
ftrtyfytfjh May 3, 2024
f951edd
Add sha256 dep
ftrtyfytfjh May 3, 2024
54ba468
Fix network helper panic if peer close connection
ftrtyfytfjh May 7, 2024
c7cf4f5
Bump network helpers version
ftrtyfytfjh May 7, 2024
fd485c2
chore: refactor update_mempool function in the jds mempool
NonsoAmadi10 May 3, 2024
b46355b
fix error handling
lorbax May 7, 2024
2aa71f1
Fix deprecation notice on CI (#879)
xyephy May 8, 2024
5e48904
Fix cpu miner hashrate measurement (#866)
Fi3 May 9, 2024
0b13191
run benchmarks on dev PRs (#898)
GitGab19 May 10, 2024
a803f1a
docs `framing_sv2` (#848)
plebhash May 10, 2024
73a7850
better import for libsecp256k1 (#894)
rockcoolsaint May 13, 2024
7bbffd4
tproxy-config-hosted-pool-example (#875)
plebhash May 14, 2024
bd494af
Fix cpu miner panic when not header (#908)
Fi3 May 16, 2024
eea5655
Discard old ProvideMissingTransactionsSuccess messages in JDS (#900)
GitGab19 May 17, 2024
9374607
bump framing_sv2 version (#913)
plebhash May 19, 2024
8ccc4d6
Every MG test in a separate action (#905)
lorbax May 20, 2024
1f289e4
Better management of LastDeclareJobs - no more wrong fallback-system …
GitGab19 May 21, 2024
c8424b6
patch RELEASE.md (#924)
plebhash May 23, 2024
296938a
patch check-versioning-lib-release.sh (#926)
plebhash May 23, 2024
d432fa8
bump codec_sv2 version (#927)
plebhash May 23, 2024
87f60ec
improve check-versioning-lib-release (#929)
plebhash May 24, 2024
5fef39e
bump crate versions for release (#930)
plebhash May 24, 2024
d613473
Update `Cargo.lock` files with version updates (#933)
plebhash May 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
75 changes: 59 additions & 16 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
options: --security-opt seccomp=unconfined
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Generate code coverage
run: |
./tarpaulin.sh

- name: Archive Tarpaulin code coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: tarpaulin-report
path: |
Expand All @@ -56,7 +56,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
Expand All @@ -70,26 +70,69 @@ jobs:
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Pre build everything
run: |
cargo build --manifest-path=benches/Cargo.toml
cargo build --manifest-path=common/Cargo.toml
cargo build --manifest-path=protocols/Cargo.toml
cargo build --manifest-path=roles/Cargo.toml
cargo build --manifest-path=utils/Cargo.toml
- name: Run bad-pool-config-test
run: sh ./test/message-generator/test/bad-pool-config-test/bad-pool-config-test.sh

- name: Run interop-jd-translator
run: sh ./test/message-generator/test/interop-jd-translator/interop-jd-translator.sh

#- name: Run interop-jdc-change-upstream
# run: sh ./test/message-generator/test/interop-jdc-change-upstream/interop-jdc-change-upstream.sh

- name: Run interop-proxy-with-multi-ups
run: sh ./test/message-generator/test/interop-proxy-with-multi-ups/interop-proxy-with-multi-ups.sh

- name: Run interop-proxy-with-multi-ups-extended
run: sh ./test/message-generator/test/interop-proxy-with-multi-ups-extended/interop-proxy-with-multi-ups-extended.sh

- name: Run jds-do-not-fail-on-wrong-tsdatasucc
run: sh ./test/message-generator/test/jds-do-not-fail-on-wrong-tsdatasucc/jds-do-not-fail-on-wrong-tsdatasucc.sh

- name: Run jds-do-not-panic-if-jdc-close-connection
run: sh ./test/message-generator/test/jds-do-not-panic-if-jdc-close-connection/jds-do-not-panic-if-jdc-close-connection.sh

- name: Run jds-do-not-stackoverflow-when-no-token
run: sh ./test/message-generator/test/jds-do-not-stackoverflow-when-no-token/jds-do-not-stackoverflow-when-no-token.sh

- name: Run pool-sri-test-1-standard
run: sh ./test/message-generator/test/pool-sri-test-1-standard/pool-sri-test-1-standard.sh

- name: Run pool-sri-test-close-channel
run: sh ./test/message-generator/test/pool-sri-test-close-channel/pool-sri-test-close-channel.sh

- name: Run pool-sri-test-extended_0
run: sh ./test/message-generator/test/pool-sri-test-extended_0/pool-sri-test-extended_0.sh

- name: Run pool-sri-test-extended_1
run: sh ./test/message-generator/test/pool-sri-test-extended_1/pool-sri-test-extended_1.sh

- name: Run pool-sri-test-reject-auth
run: sh ./test/message-generator/test/pool-sri-test-reject-auth/pool-sri-test-reject-auth.sh

- name: Run standard-coverage
run: sh ./test/message-generator/test/standard-coverage-test/standard-coverage-test.sh

- name: Run sv1-test
run: sh ./test/message-generator/test/sv1-test/sv1-test.sh

- name: Run translation-proxy-broke-pool
run: sh ./test/message-generator/test/translation-proxy-broke-pool/translation-proxy-broke-pool.sh

- name: Run translation-proxy
run: sh ./test/message-generator/test/translation-proxy/translation-proxy.sh

- name: Run message generator tests
run: sh ./message-generator-tests.sh
- name: Coverage report
run: sh ./code-coverage-report.sh

- name: Archive MG code coverage results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: 'target/*.xml'

- name: Archive log files
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: logs
path: './utils/message-generator/*.log'
Expand All @@ -103,10 +146,10 @@ jobs:
# steps:

# - name: Checkout repository
# uses: actions/checkout@v3
# uses: actions/checkout@v4

# - name: Download all workflow run artifacts
# uses: actions/download-artifact@v3
# uses: actions/download-artifact@v4

# - name: Display structure of downloaded files
# run: ls -R
Expand Down
159 changes: 152 additions & 7 deletions .github/workflows/release-bin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,26 @@ jobs:
matrix:
os: [ubuntu-20.04, macos-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/pool/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/pool/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/pool/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
run: rustup target add aarch64-apple-darwin
Expand All @@ -49,6 +60,24 @@ jobs:
file: roles/target/release/pool_sv2
asset_name: pool_sv2-x86_64-apple-darwin
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/pool_sv2
asset_name: pool_sv2-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/pool_sv2
asset_name: pool_sv2-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS ARM64 binaries to release
if: matrix.os == 'macos-latest'
Expand All @@ -65,14 +94,25 @@ jobs:
matrix:
os: [ ubuntu-20.04, macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/jd-client/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-client/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-client/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -90,6 +130,24 @@ jobs:
file: roles/target/release/jd_client
asset_name: jd_client-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/jd_client
asset_name: jd_client-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/jd_client
asset_name: jd_client-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
Expand All @@ -115,14 +173,25 @@ jobs:
matrix:
os: [ ubuntu-20.04, macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/jd-server/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-server/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/jd-server/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -140,6 +209,24 @@ jobs:
file: roles/target/release/jd_server
asset_name: jd_server-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/jd_server
asset_name: jd_server-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/jd_server
asset_name: jd_server-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
Expand All @@ -165,14 +252,25 @@ jobs:
matrix:
os: [ ubuntu-20.04, macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/mining-proxy/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/mining-proxy/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/mining-proxy/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -190,6 +288,24 @@ jobs:
file: roles/target/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/mining_proxy_sv2
asset_name: mining_proxy_sv2-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
Expand All @@ -215,14 +331,25 @@ jobs:
matrix:
os: [ ubuntu-20.04, macos-latest ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Compile Native
run: cargo build --release --locked --manifest-path=roles/translator/Cargo.toml

- name: Install cross
run: cargo install cross

- name: Compile Binaries for aarch64-unknown-linux-gnu
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/translator/Cargo.toml --target aarch64-unknown-linux-gnu

- name: Compile Binaries for arm-unknown-linux-gnueabi
if: matrix.os == 'ubuntu-20.04'
run: cross build --release --locked --manifest-path=roles/translator/Cargo.toml --target arm-unknown-linux-gnueabi

- name: Install aarch64-apple-darwin target
if: matrix.os == 'macos-latest'
Expand All @@ -240,6 +367,24 @@ jobs:
file: roles/target/release/translator_sv2
asset_name: translator_sv2-x86_64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux aarch64 binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/aarch64-unknown-linux-gnu/release/translator_sv2
asset_name: translator_sv2-aarch64-linux-gnu
tag: ${{ github.ref }}

- name: Upload Linux ARM binaries to release
if: matrix.os == 'ubuntu-20.04'
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/arm-unknown-linux-gnueabi/release/translator_sv2
asset_name: translator_sv2-arm-linux-gnueabi
tag: ${{ github.ref }}

- name: Upload MacOS x86-64 binaries to release
if: matrix.os == 'macos-latest'
Expand All @@ -257,4 +402,4 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: roles/target/aarch64-apple-darwin/release/translator_sv2
asset_name: translator_sv2-aarch64-apple-darwin
tag: ${{ github.ref }}
tag: ${{ github.ref }}
Loading
Loading