Skip to content

Commit

Permalink
0.2.0 (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n authored Dec 23, 2024
1 parent 5bb9cff commit 55cae59
Show file tree
Hide file tree
Showing 124 changed files with 778 additions and 539 deletions.
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ codecov:
ignore:
- core/src/serf/base/tests
- core/src/serf/base/tests.rs
- ruserf/test
- serf/test

coverage:
status:
Expand Down
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: "cargo"
directory: "/"
schedule:
interval: "weekly"
open-pull-requests-limit: 50

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
12 changes: 4 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: net
name: ci

on:
push:
Expand All @@ -20,6 +20,7 @@ on:
- '**.txt'
- 'art'
workflow_dispatch:
schedule: [cron: "40 1 * * *"]

jobs:
test:
Expand All @@ -38,7 +39,7 @@ jobs:
# - native-tls
- tcp
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
run: |
Expand Down Expand Up @@ -74,13 +75,8 @@ jobs:
cargo test --no-default-features --features "metrics,encryption,serde"
working-directory: types

- name: Run Unit Tests for ruserf based on net transport
run: |
cargo test --no-default-features --features "test,encryption,net,metrics,${{ matrix.runtime }}" -- --test-threads=1
working-directory: ruserf

- name: Cache Cargo registry
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ jobs:
include:
- crate: core
features: "test,metrics"
name: "ruserf-core"
name: "serf-core"
- crate: types
features: "metrics,encryption"
name: "ruserf-types"
- crate: ruserf
name: "serf-types"
- crate: serf
features: "test,tokio,tcp,encryption,metrics"
name: "ruserf-tcp-encryption"
name: "serf-tcp-encryption"
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
Expand All @@ -57,7 +57,7 @@ jobs:
working-directory: ${{ matrix.crate }}
continue-on-error: true
- name: Upload Coverage Report as Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.crate }}/cobertura.xml
Expand All @@ -66,17 +66,18 @@ jobs:
needs: coverage-report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download all coverage reports
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: reports/
- name: List contents of the reports directory
run: ls -a reports
- name: Upload to codecov.io
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
with:
directory: reports
fail_ci_if_error: false
slug: ${{ github.repository }}
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/loc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
loc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Rust
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
tokeit
- name: Upload loc to GitHub Gist
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GIST_PAT }}
script: |
Expand All @@ -52,7 +52,7 @@ jobs:
await github.rest.gists.update({
gist_id: gistId,
files: {
"ruserf": {
"serf": {
content: output
}
}
Expand Down
80 changes: 80 additions & 0 deletions .github/workflows/net.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: net

on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
pull_request:
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
workflow_dispatch:
schedule: [cron: "40 1 * * *"]

jobs:
test:
name: ${{ matrix.os }} - ${{ matrix.runtime }} - ${{ matrix.stream_layer }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest,
# - windows-latest
runtime: [tokio, async-std, smol]
stream_layer:
- tls
- native-tls
- tcp
steps:
- uses: actions/checkout@v4

- name: Install Rust
run: |
rustup update stable && rustup default stable
rustup component add clippy
rustup component add rustfmt
- name: Install OpenSSL (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md
- name: Setup loopback interface (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: ci\setup_subnet_windows.ps1
- name: Setup loopback interface (MacOS)
if: matrix.os == 'macos-latest'
run: ci/setup_subnet_macos.sh
- name: Setup loopback interface (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: ci/setup_subnet_ubuntu.sh

- name: Run Unit Tests for serf based on net transport
run: |
cargo test --no-default-features --features "test,encryption,net,metrics,${{ matrix.runtime }}" -- --test-threads=1
working-directory: serf

- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.runtime }}-${{ matrix.stream_layer }}
76 changes: 76 additions & 0 deletions .github/workflows/quinn.yml.bk
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: quinn

on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
pull_request:
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
workflow_dispatch:
schedule: [cron: "40 1 * * *"]

jobs:
test:
name: ${{ matrix.os }} - ${{ matrix.runtime }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest,
# - windows-latest
runtime: [tokio, async-std, smol]
steps:
- uses: actions/checkout@v4

- name: Install Rust
run: |
rustup update stable && rustup default stable
rustup component add clippy
rustup component add rustfmt

- name: Install OpenSSL (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md

- name: Setup loopback interface (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: ci\setup_subnet_windows.ps1
- name: Setup loopback interface (MacOS)
if: matrix.os == 'macos-latest'
run: ci/setup_subnet_macos.sh
- name: Setup loopback interface (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: ci/setup_subnet_ubuntu.sh

- name: Run Unit Tests for serf based on quinn transport
run: |
cargo test --no-default-features --features "test,encryption,quinn,metrics,${{ matrix.runtime }}" -- --test-threads=1
working-directory: serf

- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.runtime }}-quinn
76 changes: 76 additions & 0 deletions .github/workflows/s2n.yml.bk
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: s2n

on:
push:
branches:
- main
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
pull_request:
paths-ignore:
- 'README.md'
- 'COPYRIGHT'
- 'LICENSE*'
- '**.md'
- '**.txt'
- 'art'
workflow_dispatch:
schedule: [cron: "40 1 * * *"]

jobs:
test:
name: ${{ matrix.os }} - ${{ matrix.runtime }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
# - macos-latest,
# - windows-latest
runtime: [tokio]
steps:
- uses: actions/checkout@v4

- name: Install Rust
run: |
rustup update stable && rustup default stable
rustup component add clippy
rustup component add rustfmt

- name: Install OpenSSL (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: |
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append
vcpkg install openssl:x64-windows-static-md

- name: Setup loopback interface (Windows)
if: matrix.os == 'windows-latest'
shell: powershell
run: ci\setup_subnet_windows.ps1
- name: Setup loopback interface (MacOS)
if: matrix.os == 'macos-latest'
run: ci/setup_subnet_macos.sh
- name: Setup loopback interface (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: ci/setup_subnet_ubuntu.sh

- name: Run Unit Tests for serf based on s2n transport
run: |
cargo test --no-default-features --features "test,encryption,s2n,metrics,${{ matrix.runtime }}" -- --test-threads=1
working-directory: serf

- name: Cache Cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.runtime }}-s2n
Loading

0 comments on commit 55cae59

Please sign in to comment.