Skip to content

Commit 899af22

Browse files
chore(CI): Build test vectors from source (#724)
1 parent 8a9d97b commit 899af22

24 files changed

+67
-4
lines changed

codebuild/py311/awses_local_mpl.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ phases:
2121
python: 3.11
2222
build:
2323
commands:
24+
# Build Python MPL TestVector runner from source
25+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2426
- pip install "tox < 4.0"
2527
- cd test_vector_handlers
2628
- tox

codebuild/py311/decrypt_dafny_esdk_vectors_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ phases:
2222
python: 3.11
2323
pre_build:
2424
commands:
25+
# Build Python MPL TestVector runner from source
26+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2527
# Fetch test vectors from Dafny ESDK's most recent run
2628
# (Assuming the first result is most recent; seems to be correct...)
2729
- |

codebuild/py311/decrypt_golden_manifest_with_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ phases:
1818
python: 3.11
1919
pre_build:
2020
commands:
21+
# Build Python MPL TestVector runner from source
22+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2123
# Download "golden manifest"
2224
- curl -L -o python-2.3.0.zip https://github.com/awslabs/aws-encryption-sdk-test-vectors/raw/master/vectors/awses-decrypt/python-2.3.0.zip
2325
- unzip python-2.3.0.zip -d python-2.3.0

codebuild/py311/decrypt_golden_manifest_with_masterkey.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: 0.2
22

33
env:
44
variables:
5-
TOXENV: "py311-full_decrypt-mpl"
5+
TOXENV: "py311-full_decrypt"
66
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
77
arn:aws:kms:us-west-2:658956600833:key/b35311ef1-d8dc-4780-9f5a-55776cbb2f7f
88
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-

codebuild/py311/decrypt_keyrings_with_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ phases:
1818
python: 3.11
1919
pre_build:
2020
commands:
21+
# Build Python MPL TestVector runner from source
22+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2123
# Download previously generated vectors
2224
- aws s3 cp s3://generated-vectors-artifacts-bucket/$CODEBUILD_RESOLVED_SOURCE_VERSION/311_keyrings.zip 311_keyrings.zip
2325
- unzip 311_keyrings.zip

codebuild/py311/decrypt_masterkey_with_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ phases:
1818
python: 3.11
1919
pre_build:
2020
commands:
21+
# Build Python MPL TestVector runner from source
22+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2123
# Download previously generated vectors
2224
- aws s3 cp s3://generated-vectors-artifacts-bucket/$CODEBUILD_RESOLVED_SOURCE_VERSION/311_masterkey.zip 311_masterkey.zip
2325
- unzip 311_masterkey.zip

codebuild/py311/decrypt_net_401_vectors_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ phases:
1919
python: 3.11
2020
pre_build:
2121
commands:
22+
# Build Python MPL TestVector runner from source
23+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2224
# Fetch ESDK .NET v4.0.1 Test Vectors
2325
- VECTOR_ZIP=$CODEBUILD_SRC_DIR/v4-Net-4.0.1.zip
2426
- VECTORS_URL=https://github.com/aws/aws-encryption-sdk-dafny/raw/mainline/AwsEncryptionSDK/runtimes/net/TestVectorsNative/TestVectors/resources/v4-Net-4.0.1.zip

codebuild/py311/encrypt_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ phases:
1818
python: 3.11
1919
build:
2020
commands:
21+
# Build Python MPL TestVector runner from source
22+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2123
- pip install "tox < 4.0"
2224
- cd test_vector_handlers
2325
- |

codebuild/py311/generate_decrypt_vectors_keyrings.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ phases:
1818
python: 3.11
1919
build:
2020
commands:
21+
# Build Python MPL TestVector runner from source
22+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2123
- pip install "tox < 4.0"
2224
- cd test_vector_handlers
2325
- |

codebuild/py312/awses_local_mpl.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ phases:
2323
python: 3.12
2424
build:
2525
commands:
26+
# Build Python MPL TestVector runner from source
27+
- sh test_vector_handlers/scripts/install_mpl_test_vector_runner.sh
2628
- cd /root/.pyenv/plugins/python-build/../.. && git pull && cd -
2729
- pyenv install --skip-existing 3.12.0
2830
- pyenv local 3.12.0

0 commit comments

Comments
 (0)