-
Notifications
You must be signed in to change notification settings - Fork 16
chore: create Rust release runbook #1488
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a3187cf
chore: automate release
ajewellamz 9b46b01
chore: create Rust release runbook
ajewellamz 38b0f3f
m
ajewellamz b26f3e3
Merge branch 'main' into ajewell/release-scripts
ajewellamz 7a43c49
m
ajewellamz e42879a
Merge branch 'ajewell/release-scripts' of github.com:aws/aws-database…
ajewellamz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
To publish a new version of the aws-db-esdk, version 1.2.3 | ||
|
||
1. Acquire the appropriate permissions | ||
1. Ensure git checkout of main is fresh and clean | ||
1. ./start_release.sh 1.2.3 | ||
1. cd ../../../releases/rust/db_esdk | ||
1. Create a PR with changes | ||
ajewellamz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
1. cargo publish | ||
1. cd ../../../DynamoDbEncryption/runtimes/rust/ # i.e. return here | ||
ajewellamz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
1. ./test_published.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/bash -eu | ||
|
||
cd $( dirname ${BASH_SOURCE[0]} ) | ||
|
||
REGEX_VERSION='^\d+\.\d+\.\d+$' | ||
|
||
echo "$1" | egrep -q $REGEX_VERSION | ||
if [ $? -ne 0 ]; then | ||
echo 1>&2 "Version \"$1\" must be N.N.N" | ||
exit 1 | ||
fi | ||
|
||
perl -pe "s/^version = .*$/version = \"$1\"/" < Cargo.toml > new_Cargo.toml | ||
mv new_Cargo.toml Cargo.toml | ||
|
||
find src -depth 1 | egrep -v '(intercept.rs|lib.rs|software_externs.rs)' | xargs rm -rf | ||
cd ../.. | ||
make polymorph_rust transpile_rust test_rust | ||
cd runtimes/rust | ||
rm -rf target | ||
rm -rf ../../../releases/rust/db_esdk | ||
cp -r . ../../../releases/rust/db_esdk | ||
cd ../../../releases/rust/db_esdk | ||
git checkout dafny_runtime_rust | ||
rm -rf *~ copy_externs.sh start_release.sh test_published.sh test_examples *.pem RELEASE.md | ||
echo Cargo.lock > .gitignore | ||
echo target >> .gitignore | ||
|
||
cargo test | ||
cargo run --example main | ||
rm -f Cargo.lock *.pem | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*~ | ||
*.pem | ||
src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[package] | ||
name = "aws-db-esdk-examples" | ||
version = "0.1.0" | ||
edition = "2021" | ||
rust-version = "1.80.0" | ||
keywords = ["cryptography", "security", "dynamodb", "encryption", "client-side"] | ||
license = "ISC AND (Apache-2.0 OR ISC)" | ||
description = "aws-db-esdk is a library for implementing client side encryption with DynamoDB." | ||
homepage = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk" | ||
repository = "https://github.com/aws/aws-database-encryption-sdk-dynamodb/tree/main/releases/rust/db_esdk" | ||
authors = ["AWS-CryptoTools"] | ||
documentation = "https://docs.rs/crate/aws-db-esdk" | ||
readme = "README.md" | ||
ajewellamz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
aws-config = "1.5.10" | ||
aws-lc-rs = "1.11.1" | ||
aws-lc-sys = "0.23.1" | ||
aws-sdk-dynamodb = "1.54.0" | ||
aws-sdk-kms = "1.50.0" | ||
aws-smithy-runtime-api = {version = "1.7.3", features = ["client"] } | ||
aws-smithy-types = "1.2.9" | ||
chrono = "0.4.38" | ||
dafny-runtime = "0.1.1" | ||
dashmap = "6.1.0" | ||
pem = "3.0.4" | ||
tokio = {version = "1.41.1", features = ["full"] } | ||
uuid = { version = "1.11.0", features = ["v4"] } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -eu | ||
|
||
cd $( dirname ${BASH_SOURCE[0]} ) | ||
|
||
rm -rf test_examples/src | ||
cp -r examples test_examples/src/ | ||
cd test_examples | ||
cargo add aws-db-esdk | ||
cargo run |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.