lite-rpc/.github/workflows/clippy_test.yml

53 lines
1.4 KiB
YAML
Raw Normal View History

name: Cargo Nightly Clippy
2023-03-03 13:24:09 -08:00
on:
push:
branches:
- main
2023-03-03 13:24:09 -08:00
pull_request:
2023-09-19 02:03:12 -07:00
env:
2023-03-03 13:24:09 -08:00
CARGO_TERM_COLOR: always
2023-09-19 02:03:12 -07:00
SCCACHE_GHA_ENABLED: true
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: "1G"
2023-03-03 13:24:09 -08:00
jobs:
build_and_test:
2023-09-19 02:03:12 -07:00
name: lite-rpc full build
runs-on: ubuntu-22.04
2023-03-03 13:24:09 -08:00
steps:
2023-09-19 02:03:12 -07:00
- name: Install Linux Packages
2023-03-17 06:44:13 -07:00
run: |
2023-03-18 03:04:55 -07:00
sudo apt-get update -y
sudo apt-get install libssl-dev openssl -y
2023-03-03 13:24:09 -08:00
2023-09-19 02:03:12 -07:00
- uses: actions/checkout@v4
# The toolchain action should definitely be run before the cache action
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# use toolchain version from rust-toolchain.toml
Merge production main 2024 03 27 (#374) * Use jemalloc * Solving issue of finalized meta after processed block (#365) * Solving issue of finalized meta after processed block * Fixing the broken test * Removing unwanted logs * Add logs on block queues and reception time * reduce level of block reception log * Revert "Solving issue of finalized meta after processed block (#365)" This reverts commit c09700fd7963f0946d282a25ffd07f90e9384b46. Production runs show more stable memory use but worse performance on landing transactions. * use yellowstone grpc with hacked-windowsize * upgraded geyser-grpc-connector + increased timeout * Fix block stream throughput problems By temporarily pasting in a function to connect to block streams via a more generously configured endpoint. * Enabling unstable tokio on fly * Fixing prioritization heap metrics (#370) * Fixing prioritization heap metrics * Fixing transaction sizes tests * Correctly ending the block streams instead of aborting them * Replacing exit signal with exit notification (#372) * Replacing exit signal with exit notification * Deprecitating nightly version * Increase connection size * Fixing issue with multiple notify channels * Joining heap task instead of aborting * fix postgres ssl algo issue - RC2-40-CBC (#373) * fix 373: openssl-legacy.cnf * Remove replace console subscriber with tracing subscriber --------- Co-authored-by: Christian Kamm <mail@ckamm.de> Co-authored-by: GroovieGermanikus <groovie@mango.markets> Co-authored-by: Groovie | Mango <95291500+grooviegermanikus@users.noreply.github.com>
2024-03-27 09:09:38 -07:00
toolchain: nightly-2023-10-05
2023-09-19 02:03:12 -07:00
components: rustfmt, clippy
cache: true
# avoid the default "-D warnings" which thrashes cache
rustflags: ""
- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.3
2023-07-25 05:15:43 -07:00
2023-09-19 02:03:12 -07:00
# https://github.com/actions/cache/blob/main/examples.md#rust---cargo
# https://blog.arriven.wtf/posts/rust-ci-cache/
- uses: Swatinem/rust-cache@v2
with:
# will be covered by sscache
cache-targets: false
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run fmt+clippy
run: |
Merge production main 2024 03 27 (#374) * Use jemalloc * Solving issue of finalized meta after processed block (#365) * Solving issue of finalized meta after processed block * Fixing the broken test * Removing unwanted logs * Add logs on block queues and reception time * reduce level of block reception log * Revert "Solving issue of finalized meta after processed block (#365)" This reverts commit c09700fd7963f0946d282a25ffd07f90e9384b46. Production runs show more stable memory use but worse performance on landing transactions. * use yellowstone grpc with hacked-windowsize * upgraded geyser-grpc-connector + increased timeout * Fix block stream throughput problems By temporarily pasting in a function to connect to block streams via a more generously configured endpoint. * Enabling unstable tokio on fly * Fixing prioritization heap metrics (#370) * Fixing prioritization heap metrics * Fixing transaction sizes tests * Correctly ending the block streams instead of aborting them * Replacing exit signal with exit notification (#372) * Replacing exit signal with exit notification * Deprecitating nightly version * Increase connection size * Fixing issue with multiple notify channels * Joining heap task instead of aborting * fix postgres ssl algo issue - RC2-40-CBC (#373) * fix 373: openssl-legacy.cnf * Remove replace console subscriber with tracing subscriber --------- Co-authored-by: Christian Kamm <mail@ckamm.de> Co-authored-by: GroovieGermanikus <groovie@mango.markets> Co-authored-by: Groovie | Mango <95291500+grooviegermanikus@users.noreply.github.com>
2024-03-27 09:09:38 -07:00
cargo +nightly-2023-10-05 fmt --all --check
cargo +nightly-2023-10-05 clippy --locked --workspace --all-targets -- -D warnings