Skip to content

Commit

Permalink
Performance and Congestion improvements. 1.14 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
austbot authored Feb 9, 2023
1 parent c4a7a3d commit 99a2fdc
Show file tree
Hide file tree
Showing 24 changed files with 1,784 additions and 378 deletions.
170 changes: 84 additions & 86 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@ on:
push:
tags:
- "v*"
pull_request:
paths:
- ".github/workflows/release.yml"

env:
CARGO_TERM_COLOR: always
IMAGE_NAME: plerkle-test-validator
RUST_VERSION: 1.59.0
SOLANA_VERSION_STABLE: v1.13.6
RUST_VERSION_REGRET: 1.64.0
SOLANA_VERSION_REGRET: v1.14.13
RUST_VERSION: 1.64.0
SOLANA_VERSION_STABLE: v1.14.14
RUST_VERSION_REGRET: 1.66.0
SOLANA_VERSION_REGRET: v1.15.0
jobs:
release-stable:
runs-on: buildjet-8vcpu-ubuntu-2004
Expand Down Expand Up @@ -67,59 +64,60 @@ jobs:
rust ${{ env.RUST_VERSION }}
files: |
${{ env.GEYSER_PLUGIN_NAME }}-release-*
release-regret:
runs-on: buildjet-8vcpu-ubuntu-2004
steps:
- uses: actions/checkout@v2
- name: Set env vars
run: |
source ci/env.sh
echo "GEYSER_PLUGIN_NAME=$plugin_name" | tee -a $GITHUB_ENV
echo "GEYSER_PLUGIN_LIB=lib${plugin_lib_name}" | tee -a $GITHUB_ENV
- if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get upgrade
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
sudo apt-get update
sudo apt-get install -y libudev-dev libssl-dev libsasl2-dev libzstd-dev
sudo apt-get install -y openssl --allow-unauthenticated
sudo apt-get install -y libssl1.1 --allow-unauthenticated
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION_REGRET }}
override: true
profile: minimal
components: rustfmt
- name: Build Plugin
run: |
echo "CI_TAG=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
echo "CI_OS_NAME=linux" >> "$GITHUB_ENV"
cargo build --release
- name: Build release tarball
run: ./ci/create-tarball.sh
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.RUST_VERSION_REGRET }}
override: true
profile: minimal
components: rustfmt
- name: Build release tarball
run: ./ci/create-tarball.sh
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: UNSTABLE ${{ env.CI_TAG }}
body: |
## UNSTABLE VERSION:
Reccomended for Devnet, Testnet
${{ env.GEYSER_PLUGIN_NAME }} ${{ env.CI_TAG }}
solana ${{ env.SOLANA_VERSION_REGRET }}
rust ${{ env.RUST_VERSION_REGRET }}
files: |
${{ env.GEYSER_PLUGIN_NAME }}-release-*
# release-regret:
# runs-on: buildjet-8vcpu-ubuntu-2004
# steps:
# - uses: actions/checkout@v2
# - name: Set env vars
# run: |
# source ci/env.sh
# echo "GEYSER_PLUGIN_NAME=$plugin_name" | tee -a $GITHUB_ENV
# echo "GEYSER_PLUGIN_LIB=lib${plugin_lib_name}" | tee -a $GITHUB_ENV
# - if: runner.os == 'Linux'
# run: |
# sudo apt-get update
# sudo apt-get upgrade
# wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
# sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"
# sudo apt-get update
# sudo apt-get install -y libudev-dev libssl-dev libsasl2-dev libzstd-dev
# sudo apt-get install -y openssl --allow-unauthenticated
# sudo apt-get install -y libssl1.1 --allow-unauthenticated
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ env.RUST_VERSION_REGRET }}
# override: true
# profile: minimal
# components: rustfmt
# - name: Build Plugin
# run: |
# rm plerkle-release-x86_64-unknown-linux-gnu.tar.bz2
# echo "CI_TAG=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
# echo "CI_OS_NAME=linux" >> "$GITHUB_ENV"
# cargo build --release
# - name: Build release tarball
# run: ./ci/create-tarball.sh
# - uses: actions-rs/toolchain@v1
# with:
# toolchain: ${{ env.RUST_VERSION_REGRET }}
# override: true
# profile: minimal
# components: rustfmt
# - name: Build release tarball
# run: ./ci/create-tarball.sh
# - name: Release
# uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# name: UNSTABLE ${{ env.CI_TAG }}
# body: |
# ## UNSTABLE VERSION:
# Reccomended for Devnet, Testnet
# ${{ env.GEYSER_PLUGIN_NAME }} ${{ env.CI_TAG }}
# solana ${{ env.SOLANA_VERSION_REGRET }}
# rust ${{ env.RUST_VERSION_REGRET }}
# files: |
# ${{ env.GEYSER_PLUGIN_NAME }}-release-*
push-stable:
runs-on: ubuntu-latest
needs: release-stable
Expand All @@ -146,29 +144,29 @@ jobs:
echo VERSION=$TAG
docker tag $IMAGE_NAME $IMAGE_ID:$TAG
docker push $IMAGE_ID:$TAG
push-regret:
runs-on: ubuntu-latest
needs: release-regret
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v3
- name: Build image
run: docker build --build-arg RUST_VERSION=${{ env.RUST_VERSION_REGRET }} --build-arg SOLANA_VERSION=v${{ env.SOLANA_VERSION_REGRET }} . --file Solana.Dockerfile --tag $IMAGE_NAME --label 'runnumber=${GITHUB_RUN_ID}'
- name: Log in to registry
run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login ghcr.io -u $ --password-stdin
- name: Push image Stable
if: startsWith(github.ref, 'refs/tags/')
run: |
CI_TAG=${GITHUB_REF#refs/*/}
IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# Change all uppercase to lowercase
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# Strip git ref prefix from version
VERSION=$CI_TAG
echo IMAGE_ID=$IMAGE_ID
export TAG=$VERSION-${{ env.RUST_VERSION_REGRET }}-${{ env.SOLANA_VERSION_REGRET }}
echo VERSION=$TAG
docker tag $IMAGE_NAME $IMAGE_ID:$TAG
docker push $IMAGE_ID:$TAG
# push-regret:
# runs-on: ubuntu-latest
# needs: release-regret
# permissions:
# packages: write
# contents: read
# steps:
# - uses: actions/checkout@v3
# - name: Build image
# run: docker build --build-arg RUST_VERSION=${{ env.RUST_VERSION_REGRET }} --build-arg SOLANA_VERSION=v${{ env.SOLANA_VERSION_REGRET }} . --file Solana.Dockerfile --tag $IMAGE_NAME --label 'runnumber=${GITHUB_RUN_ID}'
# - name: Log in to registry
# run: echo '${{ secrets.GITHUB_TOKEN }}' | docker login ghcr.io -u $ --password-stdin
# - name: Push image Stable
# if: startsWith(github.ref, 'refs/tags/')
# run: |
# CI_TAG=${GITHUB_REF#refs/*/}
# IMAGE_ID=ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME
# # Change all uppercase to lowercase
# IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
# # Strip git ref prefix from version
# VERSION=$CI_TAG
# echo IMAGE_ID=$IMAGE_ID
# export TAG=$VERSION-${{ env.RUST_VERSION_REGRET }}-${{ env.SOLANA_VERSION_REGRET }}
# echo VERSION=$TAG
# docker tag $IMAGE_NAME $IMAGE_ID:$TAG
# docker push $IMAGE_ID:$TAG
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
env:
CARGO_TERM_COLOR: always
IMAGE_NAME: plerkle-test-validator
RUST_VERSION: 1.59.0
SOLANA_VERSION_STABLE: v1.13.6
RUST_VERSION: 1.64.0
SOLANA_VERSION_STABLE: v1.14.14
RUST_VERSION_REGRET: 1.64.0
SOLANA_VERSION_REGRET: v1.14.13
SOLANA_VERSION_REGRET: v1.14.14

jobs:
test-stable:
Expand Down
Loading

0 comments on commit 99a2fdc

Please sign in to comment.