Add infra to publish metrics tarball
This commit is contained in:
parent
470debef16
commit
a016bc2736
|
@ -3,7 +3,9 @@
|
|||
/book/src/tests.ok
|
||||
/farf/
|
||||
/solana-release/
|
||||
solana-release.tar.bz2
|
||||
/solana-release.tar.bz2
|
||||
/solana-metrics/
|
||||
/solana-metrics.tar.bz2
|
||||
/target/
|
||||
|
||||
**/*.rs.bk
|
||||
|
|
|
@ -113,6 +113,13 @@ EOF
|
|||
cp solana-release/bin/solana-install-init solana-install-init-$TARGET
|
||||
)
|
||||
|
||||
# Metrics tarball is platform agnostic, only publish it from Linux
|
||||
MAYBE_METRICS_TARBALL=
|
||||
if [[ "$CI_OS_NAME" = linux ]]; then
|
||||
metrics/create-metrics-tarball.sh
|
||||
MAYBE_METRICS_TARBALL=solana-metrics.tar.bz2
|
||||
fi
|
||||
|
||||
echo --- Saving build artifacts
|
||||
source ci/upload-ci-artifact.sh
|
||||
upload-ci-artifact solana-release-$TARGET.tar.bz2
|
||||
|
@ -122,7 +129,7 @@ if [[ -n $DO_NOT_PUBLISH_TAR ]]; then
|
|||
exit 0
|
||||
fi
|
||||
|
||||
for file in solana-release-$TARGET.tar.bz2 solana-install-init-"$TARGET"*; do
|
||||
for file in solana-release-$TARGET.tar.bz2 solana-install-init-"$TARGET"* $MAYBE_METRICS_TARBALL; do
|
||||
if [[ -n $BUILDKITE ]]; then
|
||||
echo --- AWS S3 Store: "$file"
|
||||
(
|
||||
|
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
echo --- Creating metrics tarball
|
||||
(
|
||||
set -x
|
||||
rm -rf solana-metrics/
|
||||
mkdir solana-metrics/
|
||||
|
||||
COMMIT="$(git rev-parse HEAD)"
|
||||
|
||||
(
|
||||
echo "commit: $COMMIT"
|
||||
) > solana-metrics/version.yml
|
||||
|
||||
cp -a metrics/scripts/* solana-metrics
|
||||
|
||||
tar jvcf solana-metrics.tar.bz2 solana-metrics/
|
||||
)
|
||||
|
||||
ls -hl "$PWD"/solana-metrics.tar.bz2
|
Loading…
Reference in New Issue