From 7c6edd14fbe8a26613bc26b1bbdc0b956132ef8c Mon Sep 17 00:00:00 2001 From: Alexei Mochalov Date: Thu, 4 Apr 2024 14:33:59 +0200 Subject: [PATCH] py-shared: cross-region chunksums support (pass scratch bucket map to lambdas) (#3922) --- py-shared/CHANGELOG.md | 2 ++ py-shared/src/quilt_shared/pkgpush.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/py-shared/CHANGELOG.md b/py-shared/CHANGELOG.md index 52888c50a6d..49eccd14c81 100644 --- a/py-shared/CHANGELOG.md +++ b/py-shared/CHANGELOG.md @@ -16,5 +16,7 @@ where verb is one of ## Changes +- [Changed] **BREAKING**: Add `scratch_buckets` required field to `S3HashLambdaParams` ([#3922](https://github.com/quiltdata/quilt/pull/3922)) +- [Added] Introduce `PackageConstructParams` ([#3922](https://github.com/quiltdata/quilt/pull/3922)) - [Changed] Tweak checksum types ([#3888](https://github.com/quiltdata/quilt/pull/3888)) - [Added] Bootstrap `quilt_shared` package ([#3849](https://github.com/quiltdata/quilt/pull/3849)) diff --git a/py-shared/src/quilt_shared/pkgpush.py b/py-shared/src/quilt_shared/pkgpush.py index 902ea3a3ba5..7a0a106f59c 100644 --- a/py-shared/src/quilt_shared/pkgpush.py +++ b/py-shared/src/quilt_shared/pkgpush.py @@ -62,6 +62,7 @@ def boto_args(self): class S3HashLambdaParams(pydantic.BaseModel): credentials: AWSCredentials + scratch_buckets: T.Dict[str, str] location: S3ObjectSource @@ -146,6 +147,10 @@ class PackagePromoteParams(PackagePushParams): src: PackagePromoteSource +class PackageConstructParams(PackagePushParams): + scratch_buckets: T.Dict[str, str] + + class PackageConstructEntry(pydantic.BaseModel): logical_key: NonEmptyStr physical_key: NonEmptyStr