Skip to content

Commit

Permalink
prep 0.9.1 release (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmc-msft authored Nov 18, 2022
1 parent af182de commit b5bfd18
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 48 deletions.
58 changes: 29 additions & 29 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "avml"
version = "0.9.0"
version = "0.9.1"
license = "MIT"
description = "A portable volatile memory acquisition tool"
authors = ["[email protected]"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ The testing scripts will create, use, and cleanup a number of resource groups, v
1. Install [az cli](https://docs.microsoft.com/en-us/cli/azure/install-azure-cli)
2. Login to your Azure subscription using: `az login`
3. Build avml (see above)
4. ./eng/run.sh
4. ./eng/test-on-azure.sh

# Contributing

Expand Down
3 changes: 2 additions & 1 deletion eng/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ DEBIAN_FRONTEND=noninteractive sudo apt-get install musl-dev musl-tools musl

rustup component add rustfmt
rustup target add x86_64-unknown-linux-musl
rustup update stable

cargo fmt -- --check
cargo build --release --no-default-features --target x86_64-unknown-linux-musl --locked
cp target/x86_64-unknown-linux-musl/release/avml target/x86_64-unknown-linux-musl/release/avml-minimal
cargo build --release --target x86_64-unknown-linux-musl --locked
cargo build --release --target x86_64-unknown-linux-musl --locked --bin avml-upload --features "put blobstore status"
cargo test --release --target x86_64-unknown-linux-musl --locked
cargo clippy -- -D clippy::pedantic -A clippy::missing_errors_doc
cargo clippy --locked --all-targets --all-features -- -D warnings -D clippy::pedantic -A clippy::missing_errors_doc
strip target/x86_64-unknown-linux-musl/release/avml
strip target/x86_64-unknown-linux-musl/release/avml-minimal
strip target/x86_64-unknown-linux-musl/release/avml-convert
Expand Down
9 changes: 2 additions & 7 deletions eng/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

set -ex

rustup update
cargo update
cargo test --target x86_64-unknown-linux-musl --release
cargo build --target x86_64-unknown-linux-musl --release --locked --no-default-features
cp target/x86_64-unknown-linux-musl/release/avml target/x86_64-unknown-linux-musl/release/avml-minimal
cargo build --target x86_64-unknown-linux-musl --release --locked
./eng/run.sh
./eng/build.sh
./eng/test-on-azure.sh
cargo package --locked
11 changes: 6 additions & 5 deletions eng/test-azure-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,16 @@

set -e

CONFIG=/tmp/test-config.json.`date '+%Y-%m-%d-%H-%M-%S'`.$$
INSTANCE=$(uuidgen)
LOG=/tmp/avml-test-${INSTANCE}.log
CONFIG=/tmp/test-config.json.${INSTANCE}
GROUP=vm-capture-test-${INSTANCE}
VM=${INSTANCE}
REGION=eastus
TOOL_URL=${1}
SKU=${2:-RedHat:RHEL:8:8.0.2019050711}
SIZE=${3:-Standard_B1ls}
REGION=eastus
GROUP=vm-capture-test-`date '+%Y-%m-%d-%H-%M-%S'`-$$
VM=$(uuidgen)

LOG=/tmp/avml-test-$(dd if=/dev/urandom | tr -dc 'a-z0-9' | fold -w 24 | head -n 1).log
function fail {
echo ERROR
cat "${LOG}"
Expand Down
11 changes: 7 additions & 4 deletions eng/run.sh → eng/test-on-azure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@

set -e

LOG=/tmp/.log_$$.txt

INSTANCE=$(uuidgen)
LOG=/tmp/avml-test-log-${INSTANCE}.txt
GROUP=vm-capture-test-${INSTANCE}
REGION=eastus


IMAGES_TXT=${1:-eng/images.txt}
FILE=${2:-target/x86_64-unknown-linux-musl/release/avml}
GROUP=vm-capture-test-`date '+%Y-%m-%d-%H-%M-%S'`-$$
REGION=eastus
STORAGE=$(dd if=/dev/urandom | tr -dc 'a-z0-9' | fold -w 24 | head -n 1)
DST_PATH=$(dd if=/dev/urandom | tr -dc 'a-z0-9' | fold -w 24 | head -n 1)/avml
CONTAINER=tools
URL=https://${STORAGE}.blob.core.windows.net/${CONTAINER}/${DST_PATH}

LOG=/tmp/$(dd if=/dev/urandom | tr -dc 'a-z0-9' | fold -w 24 | head -n 1).log
LOG=/tmp/avml-run-${INSTANCE}.log
function fail {
echo ERROR
cat "${LOG}"
Expand Down

0 comments on commit b5bfd18

Please sign in to comment.