Skip to content

Commit

Permalink
Bump from 1.0.1 to 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Garfield committed Aug 15, 2022
1 parent b4a812b commit 9b28e65
Show file tree
Hide file tree
Showing 19 changed files with 74 additions and 66 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
run: |
echo "CI_TAG=${GITHUB_REF#refs/*/}" >> "$GITHUB_ENV"
echo "CI_OS_NAME=linux" >> "$GITHUB_ENV"
SOLANA_VERSION="$(./scripts/ci/solana-version.sh)"
SOLANA_VERSION="v${SOLANA_VERSION#=}"
echo "SOLANA_VERSION=$SOLANA_VERSION" >> "$GITHUB_ENV"
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Note: When building Docker images on an M1 Mac, you should use the `--platform linux/amd64` flag.
#

FROM ubuntu:18.04
FROM projectserum/build

# Set dependency versions.
ENV SOLANA_VERSION=v1.10.34
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.1
1.0.2
4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-cli"
version = "1.0.1"
version = "1.0.2"
description = "Command line instruction scheduler for Solana"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand All @@ -15,7 +15,7 @@ keywords = ["solana"]
[dependencies]
anyhow = "1.0.61"
clap = { version = "3.1.2", features = ["derive"] }
clockwork-client = { path = "../client", version = "1.0.1" }
clockwork-client = { path = "../client", version = "1.0.2" }
dirs-next = "2.0.0"
serde = { version = "1.0.136", features = ["derive"] }
serde_json = "1.0.79"
Expand Down
4 changes: 2 additions & 2 deletions cli/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ pub enum CliError {
CommandNotRecognized(String),
#[error("Transaction failed with error: {0}")]
FailedTransaction(String),
#[error("Failed to start localnet")]
FailedLocalnet,
#[error("Failed to start localnet with error: {0}")]
FailedLocalnet(String),
}
4 changes: 2 additions & 2 deletions cli/src/processor/localnet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use {

pub fn start(client: &Client) -> Result<(), CliError> {
// Start the validator
let validator_process =
&mut start_test_validator(client).map_err(|_| CliError::FailedLocalnet)?;
let validator_process = &mut start_test_validator(client)
.map_err(|err| CliError::FailedLocalnet(err.to_string()))?;

// Initialize Clockwork
let mint_pubkey =
Expand Down
12 changes: 6 additions & 6 deletions client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-client"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
description = "Clockwork client"
license = "AGPL-3.0-or-later"
Expand All @@ -19,11 +19,11 @@ anchor-lang = "0.25.0"
anchor-spl = { features = ["mint", "token"], version = "0.25.0" }
bincode = "1.3.3"
borsh = "0.9.3"
clockwork-health = { path = "../programs/health", features = ["no-entrypoint"], version = "1.0.1" }
clockwork-http = { path = "../programs/http", features = ["no-entrypoint"], version = "1.0.1" }
clockwork-network = { path = "../programs/network", features = ["no-entrypoint"], version = "1.0.1" }
clockwork-pool = { path = "../programs/pool", features = ["no-entrypoint"], version = "1.0.1" }
clockwork-scheduler = { path = "../programs/scheduler", features = ["no-entrypoint"], version = "1.0.1" }
clockwork-health = { path = "../programs/health", features = ["no-entrypoint"], version = "1.0.2" }
clockwork-http = { path = "../programs/http", features = ["no-entrypoint"], version = "1.0.2" }
clockwork-network = { path = "../programs/network", features = ["no-entrypoint"], version = "1.0.2" }
clockwork-pool = { path = "../programs/pool", features = ["no-entrypoint"], version = "1.0.2" }
clockwork-scheduler = { path = "../programs/scheduler", features = ["no-entrypoint"], version = "1.0.2" }
solana-client = "1.10.34"
solana-sdk = "1.10.34"
thiserror = "1.0.31"
2 changes: 1 addition & 1 deletion cron/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-cron"
version = "1.0.1"
version = "1.0.2"
description = "A cron expression parser that's safe to use in the Solana runtime"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand Down
4 changes: 2 additions & 2 deletions metrics/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-metrics"
version = "1.0.1"
version = "1.0.2"
description = "Performance monitoring for Clockwork clusters"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand All @@ -12,7 +12,7 @@ keywords = ["solana"]

[dependencies]
chrono = "0.4.19"
clockwork-client = { path = "../client", version = "1.0.1" }
clockwork-client = { path = "../client", version = "1.0.2" }
dotenv = "0.15.0"
elasticsearch = "7.14.0-alpha.1"
serde_json = "~1"
Expand Down
4 changes: 2 additions & 2 deletions plugin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork_plugin"
version = "1.0.1"
version = "1.0.2"
edition = "2021"
description = "Clockwork plugin for Solana validators"
license = "AGPL-3.0-or-later"
Expand All @@ -18,7 +18,7 @@ bincode = "1.3.3"
bs58 = "0.4.0"
bugsnag = "0.2.1"
cached = "0.34.1"
clockwork-client = { path = "../client", version = "1.0.1" }
clockwork-client = { path = "../client", version = "1.0.2" }
dashmap = "5.3.3"
log = "0.4"
prost = "0.10.0"
Expand Down
2 changes: 1 addition & 1 deletion programs/health/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-health"
version = "1.0.1"
version = "1.0.2"
description = "Clockwork health protocol"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand Down
4 changes: 2 additions & 2 deletions programs/http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-http"
version = "1.0.1"
version = "1.0.2"
description = "Clockwork http protocol"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand All @@ -23,4 +23,4 @@ default = []

[dependencies]
anchor-lang = { features = ["init-if-needed"], version = "0.25.0" }
clockwork-pool = { path = "../pool", features = ["cpi"], version = "1.0.1" }
clockwork-pool = { path = "../pool", features = ["cpi"], version = "1.0.2" }
6 changes: 3 additions & 3 deletions programs/network/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-network"
version = "1.0.1"
version = "1.0.2"
description = "Clockwork networking protocol"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand All @@ -24,5 +24,5 @@ default = []
[dependencies]
anchor-lang = "0.25.0"
anchor-spl = { features = ["mint", "token"], version = "0.25.0" }
clockwork-pool = { path = "../pool", features = ["cpi"], version = "1.0.1" }
clockwork-scheduler = { path = "../scheduler", features = ["cpi"], version = "1.0.1" }
clockwork-pool = { path = "../pool", features = ["cpi"], version = "1.0.2" }
clockwork-scheduler = { path = "../scheduler", features = ["cpi"], version = "1.0.2" }
2 changes: 1 addition & 1 deletion programs/pool/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-pool"
version = "1.0.1"
version = "1.0.2"
description = "Clockwork pool protocol"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand Down
6 changes: 3 additions & 3 deletions programs/scheduler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-scheduler"
version = "1.0.1"
version = "1.0.2"
description = "Clockwork scheduling protocol"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand All @@ -24,5 +24,5 @@ default = []
[dependencies]
anchor-lang = { features = ["init-if-needed"], version = "0.25.0" }
chrono = { version = "0.4.19", default-features = false, features = ["alloc"] }
clockwork-cron = { path = "../../cron", version = "1.0.1" }
clockwork-pool = { path = "../pool", features = ["cpi"], version = "1.0.1" }
clockwork-cron = { path = "../../cron", version = "1.0.2" }
clockwork-pool = { path = "../pool", features = ["cpi"], version = "1.0.2" }
44 changes: 25 additions & 19 deletions scripts/build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,28 @@ done
(
set -x
cargo $maybeRustVersion build $maybeReleaseFlag "${binArgs[@]}" --lib
anchor build
)

# Copy binaries
cp -fv "target/$buildVariant/libclockwork_plugin.$libExt" "$installDir"/lib
for bin in "${BINS}"; do
cp -fv "target/$buildVariant/$bin" "$installDir"/bin
done


# Build programs
if command -v anchor &> /dev/null; then
set -x
anchor build

# Copy program binaries into lib folder
cp -fv "target/deploy/clockwork_health.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_http.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_network.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_pool.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_scheduler.so" "$installDir"/lib
fi

# Create new Geyser plugin config
touch "$installDir"/lib/geyser-plugin-config.json
echo "{
Expand All @@ -89,24 +108,11 @@ echo "{
}" > "$installDir"/lib/geyser-plugin-config.json

# Create a worker keypair
echo
solana-keygen new -f -s --no-bip39-passphrase -o $installDir/lib/clockwork-worker-keypair.json
echo

# Copy bins
for bin in "${BINS}"; do
cp -fv "target/$buildVariant/$bin" "$installDir"/bin
done

# Copy program binaries into lib folder
cp -fv "target/deploy/clockwork_health.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_http.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_network.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_pool.so" "$installDir"/lib
cp -fv "target/deploy/clockwork_scheduler.so" "$installDir"/lib

# Copy plugin
cp -fv "target/$buildVariant/libclockwork_plugin.$libExt" "$installDir"/lib
if command -v solana-keygen &> /dev/null; then
echo
solana-keygen new -f -s --no-bip39-passphrase -o $installDir/lib/clockwork-worker-keypair.json
echo
fi

# Success message
echo "Done after $SECONDS seconds"
Expand Down
9 changes: 6 additions & 3 deletions scripts/ci/create-tarball.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -e

cd "$(dirname "$0")/../.."
# cd "$(dirname "$0")/../.."

case "$CI_OS_NAME" in
osx)
Expand All @@ -25,15 +25,18 @@ TARBALL_BASENAME="${TARBALL_BASENAME:="$RELEASE_BASENAME"}"

echo --- Creating release tarball
(
var=$(pwd)
echo "The current working directory $var."

set -x
rm -rf "${RELEASE_BASENAME:?}"/
mkdir "${RELEASE_BASENAME}"/

COMMIT="$(git rev-parse HEAD)"
# COMMIT="$(git rev-parse HEAD)"

(
echo "channel: $CI_TAG"
echo "commit: $COMMIT"
# echo "commit: $COMMIT"
echo "target: $TARGET"
) > "${RELEASE_BASENAME}"/version.yml

Expand Down
6 changes: 3 additions & 3 deletions stress/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "clockwork-stress"
version = "1.0.1"
version = "1.0.2"
description = "A stress testing tool for Clockwork"
edition = "2021"
license = "AGPL-3.0-or-later"
Expand All @@ -14,8 +14,8 @@ keywords = ["solana"]
base64 = "0.13.0"
chrono = { version = "0.4.19", default-features = false, features = ["alloc"] }
clap = { version = "3.1.2", features = ["derive"] }
clockwork-client = { path = "../client", version = "1.0.1" }
clockwork-cron = { path = "../cron", version = "1.0.1" }
clockwork-client = { path = "../client", version = "1.0.2" }
clockwork-cron = { path = "../cron", version = "1.0.2" }
serde_json = "1.0.79"
serde = { version = "1.0.136", features = ["derive"] }
solana-clap-utils = "1.10.34"
Expand Down

0 comments on commit 9b28e65

Please sign in to comment.