Skip to content

Commit d0cb680

Browse files
chore(ci): replace Busy Engineer's Workshop validation with in-repo install-and-import smoke test
The Busy Engineer's Document Bucket workshop (https://github.com/aws-samples/busy-engineers-document-bucket and its host https://document-bucket.awssecworkshops.com) is being torn down (ticket P417981931). The release-validate CodeBuild step depended on cloning that repo and running its mocked pytest suite to confirm the freshly-published aws-encryption-sdk wheel still works for a downstream consumer. The workshop tests are fully mocked (KMS, S3, DDB, and decrypt are all mock.Mock/MagicMock), so the only real signal the step produced was: 1. the published wheel installs on a supported Python, and 2. `aws_encryption_sdk` imports, including legacy public symbols like `StrictAwsKmsMasterKeyProvider`. This change reproduces exactly that signal without the workshop dependency: pip install the released $VERSION, then import the package and the legacy symbol. Retry behavior is preserved.
1 parent d45ed4d commit d0cb680

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

codebuild/release/validate.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,20 @@ version: 0.2
22

33
phases:
44
install:
5-
commands:
6-
- pip install "tox < 4.0"
75
runtime-versions:
86
python: latest
9-
pre_build:
107
commands:
11-
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
12-
- cd busy-engineers-document-bucket/exercises/python/encryption-context-complete
13-
- sed -i "s/aws_encryption_sdk/aws_encryption_sdk==$VERSION/" requirements-dev.txt
14-
- pyenv install --skip-existing 3.8.12
15-
- pyenv local 3.8.12
16-
- pip install "tox < 4.0"
8+
- python -m pip install --upgrade pip
179
build:
1810
commands:
1911
- NUM_RETRIES=3
2012
- |
2113
while [ $NUM_RETRIES -gt 0 ]
2214
do
23-
tox -re test
15+
pip install "aws-encryption-sdk==$VERSION" \
16+
&& python -c "import aws_encryption_sdk; \
17+
from aws_encryption_sdk import StrictAwsKmsMasterKeyProvider; \
18+
print('aws-encryption-sdk', aws_encryption_sdk.__version__, 'installed and imports cleanly')"
2419
if [ $? -eq 0 ]; then
2520
break
2621
fi

0 commit comments

Comments
 (0)