Skip to content

Commit

Permalink
revert solana version
Browse files Browse the repository at this point in the history
  • Loading branch information
austbot committed Feb 1, 2023
1 parent cc9a893 commit 7fa24a8
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 33 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
env:
CARGO_TERM_COLOR: always
IMAGE_NAME: plerkle-test-validator
SOLANA_VERSION_STABLE: 1.36.6
SOLANA_VERSION_REGRET: 1.14.13
jobs:
release:
runs-on: buildjet-4vcpu-ubuntu-2004
Expand All @@ -19,7 +21,6 @@ jobs:
export RUST_STABLE_VERSION=1.65.0
source ci/rust-version.sh
echo "RUST_STABLE=$rust_stable" | tee -a $GITHUB_ENV
- name: Set env vars
run: |
source ci/env.sh
Expand Down Expand Up @@ -48,8 +49,6 @@ jobs:
run: |
echo "CI_TAG=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
echo "CI_OS_NAME=linux" >> "$GITHUB_ENV"
SOLANA_VERSION="$(./ci/solana-version.sh)"
SOLANA_VERSION="v${SOLANA_VERSION#=}"
echo "SOLANA_VERSION=$SOLANA_VERSION" >> "$GITHUB_ENV"
Expand Down Expand Up @@ -97,6 +96,6 @@ jobs:
# Strip git ref prefix from version
VERSION=$CI_TAG
echo IMAGE_ID=$IMAGE_ID
echo VERSION=$VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION
echo VERSION=$VERSION-$RUST_STABLE-$SOLANA_VERSION
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION-$RUST_STABLE-$SOLANA_VERSION
docker push $IMAGE_ID:$VERSION-$RUST_STABLE-$SOLANA_VERSION
6 changes: 4 additions & 2 deletions Solana.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM rust:1.64-bullseye as builder
ARG SOLANA_VERSION=1.13.6
ARG RUST_VERSION=1.65
FROM rust:$RUST_VERSION-bullseye as builder
RUN apt-get update \
&& apt-get -y install \
wget \
Expand All @@ -24,7 +26,7 @@ COPY Cargo.lock /rust/
WORKDIR /rust
RUN cargo build --release

FROM solanalabs/solana:v1.14.10
FROM solanalabs/solana:$SOLANA_VERSION
COPY --from=builder /rust/target/release/libplerkle.so /plugin/plugin.so
COPY ./docker .
RUN chmod +x ./*.sh
Expand Down
2 changes: 1 addition & 1 deletion ci/rust-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
if [[ -n $RUST_STABLE_VERSION ]]; then
stable_version="$RUST_STABLE_VERSION"
else
stable_version=1.59.0
stable_version=1.64.0
fi

if [[ -n $RUST_NIGHTLY_VERSION ]]; then
Expand Down
11 changes: 0 additions & 11 deletions ci/solana-version.sh

This file was deleted.

14 changes: 7 additions & 7 deletions plerkle/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "plerkle"
description = "Geyser plugin with dynamic config reloading, message bus agnostic abstractions and a whole lot of fun."
version = "1.3.0"
version = "1.3.1"
authors = ["Metaplex Developers <[email protected]>"]
repository = "https://github.com/metaplex-foundation/digital-asset-validator-plugin"
license = "AGPL-3.0"
Expand All @@ -14,10 +14,10 @@ crate-type = ["cdylib", "rlib"]
[dependencies]
log = "0.4.11"
async-trait = "0.1.53"
solana-sdk = { version =">=1.10.41" }
solana-transaction-status = { version = ">=1.10.41" }
solana-geyser-plugin-interface = { version = ">=1.10.41" }
solana-logger = { version = ">=1.10.41" }
solana-sdk = { version =">=1.13.6" }
solana-transaction-status = { version = ">=1.13.6" }
solana-geyser-plugin-interface = { version = ">=1.13.6" }
solana-logger = { version = ">=1.13.6" }
thiserror = "1.0.30"
base64 = "0.13.0"
lazy_static = "1.4.0"
Expand All @@ -31,9 +31,9 @@ cadence-macros = "0.29.0"
chrono = "0.4.19"
tracing = "0.1.35"
hex = "0.4.3"
plerkle_messenger = { path = "../plerkle_messenger", version = "1.3.0", features = ["redis"] }
plerkle_messenger = { path = "../plerkle_messenger", version = "1.3.1", features = ["redis"] }
flatbuffers = "22.10.26"
plerkle_serialization = { path = "../plerkle_serialization", version = "1.3.0" }
plerkle_serialization = { path = "../plerkle_serialization", version = "1.3.1" }
tokio = { version = "1.23.0", features = ["full"] }
figment = { version = "0.10.6", features = ["env", "test"] }

Expand Down
2 changes: 1 addition & 1 deletion plerkle_messenger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "plerkle_messenger"
description = "Metaplex Messenger trait for Geyser plugin producer/consumer patterns."
version = "1.3.0"
version = "1.3.1"
authors = ["Metaplex Developers <[email protected]>"]
repository = "https://github.com/metaplex-foundation/digital-asset-validator-plugin"
license = "AGPL-3.0"
Expand Down
3 changes: 1 addition & 2 deletions plerkle_messenger/src/redis_messenger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,7 @@ impl Messenger for RedisMessenger {
.and_then(|r| {
r.clone()
.to_u128()
.map(|n| n as usize)
.min(Some(PIPELINE_SIZE_BYTES))
.map(|n| (n as usize).min(PIPELINE_SIZE_BYTES))
})
.unwrap_or(PIPELINE_SIZE_BYTES);

Expand Down
6 changes: 3 additions & 3 deletions plerkle_serialization/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "plerkle_serialization"
description = "Metaplex Flatbuffers Plerkle Serialization for Geyser plugin producer/consumer patterns."
version = "1.3.0"
version = "1.3.1"
authors = ["Metaplex Developers <[email protected]>"]
repository = "https://github.com/metaplex-foundation/digital-asset-validator-plugin"
license = "AGPL-3.0"
Expand All @@ -10,8 +10,8 @@ readme = "Readme.md"

[dependencies]
flatbuffers = "22.10.26"
solana-geyser-plugin-interface = { version = ">=1.10.41" }
solana-runtime = ">=1.10.41"
solana-geyser-plugin-interface = { version = ">=1.13.6" }
solana-runtime = ">=1.13.6"
chrono = "0.4.22"
serde = { version = "1.0.149"}
[package.metadata.docs.rs]
Expand Down

0 comments on commit 7fa24a8

Please sign in to comment.