Skip to content

Commit 75444cb

Browse files
authored
chore(ci): retire Python 3.9 layer automation (#8439)
Remove Python 3.9 from active deployment and bootstrap matrices so new layer releases no longer request nonexistent artifacts. Keep partition verification for the final Python 3.9 layer pinned to version 27. Fixes GH-8434
1 parent 1991180 commit 75444cb

5 files changed

Lines changed: 8 additions & 12 deletions

File tree

.github/workflows/bootstrap_region.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,13 +80,11 @@ jobs:
8080
strategy:
8181
matrix:
8282
layer:
83-
- AWSLambdaPowertoolsPythonV3-python39-arm64
8483
- AWSLambdaPowertoolsPythonV3-python310-arm64
8584
- AWSLambdaPowertoolsPythonV3-python311-arm64
8685
- AWSLambdaPowertoolsPythonV3-python312-arm64
8786
- AWSLambdaPowertoolsPythonV3-python313-arm64
8887
- AWSLambdaPowertoolsPythonV3-python314-arm64
89-
- AWSLambdaPowertoolsPythonV3-python39-x86_64
9088
- AWSLambdaPowertoolsPythonV3-python310-x86_64
9189
- AWSLambdaPowertoolsPythonV3-python311-x86_64
9290
- AWSLambdaPowertoolsPythonV3-python312-x86_64

.github/workflows/layer_govcloud.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
strategy:
5353
matrix:
5454
layer:
55-
- AWSLambdaPowertoolsPythonV3-python39
5655
- AWSLambdaPowertoolsPythonV3-python310
5756
- AWSLambdaPowertoolsPythonV3-python311
5857
- AWSLambdaPowertoolsPythonV3-python312
@@ -98,7 +97,6 @@ jobs:
9897
strategy:
9998
matrix:
10099
layer:
101-
- AWSLambdaPowertoolsPythonV3-python39
102100
- AWSLambdaPowertoolsPythonV3-python310
103101
- AWSLambdaPowertoolsPythonV3-python311
104102
- AWSLambdaPowertoolsPythonV3-python312
@@ -167,7 +165,6 @@ jobs:
167165
strategy:
168166
matrix:
169167
layer:
170-
- AWSLambdaPowertoolsPythonV3-python39
171168
- AWSLambdaPowertoolsPythonV3-python310
172169
- AWSLambdaPowertoolsPythonV3-python311
173170
- AWSLambdaPowertoolsPythonV3-python312

.github/workflows/layer_govcloud_verify.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
strategy:
2929
matrix:
3030
layer:
31-
- AWSLambdaPowertoolsPythonV3-python39
3231
- AWSLambdaPowertoolsPythonV3-python310
3332
- AWSLambdaPowertoolsPythonV3-python311
3433
- AWSLambdaPowertoolsPythonV3-python312
@@ -59,7 +58,6 @@ jobs:
5958
strategy:
6059
matrix:
6160
layer:
62-
- AWSLambdaPowertoolsPythonV3-python39
6361
- AWSLambdaPowertoolsPythonV3-python310
6462
- AWSLambdaPowertoolsPythonV3-python311
6563
- AWSLambdaPowertoolsPythonV3-python312
@@ -91,7 +89,6 @@ jobs:
9189
strategy:
9290
matrix:
9391
layer:
94-
- AWSLambdaPowertoolsPythonV3-python39
9592
- AWSLambdaPowertoolsPythonV3-python310
9693
- AWSLambdaPowertoolsPythonV3-python311
9794
- AWSLambdaPowertoolsPythonV3-python312

.github/workflows/layers_partition_verify.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ jobs:
7777
strategy:
7878
matrix:
7979
layer:
80+
# Python 3.9 remains here to verify its final layer version.
8081
- AWSLambdaPowertoolsPythonV3-python39
8182
- AWSLambdaPowertoolsPythonV3-python310
8283
- AWSLambdaPowertoolsPythonV3-python311
@@ -94,9 +95,11 @@ jobs:
9495
aws-region: us-east-1
9596
mask-aws-account-id: true
9697
- name: Output ${{ matrix.layer }}-${{ matrix.arch }}
98+
env:
99+
VERSION: ${{ matrix.layer == 'AWSLambdaPowertoolsPythonV3-python39' && '27' || inputs.version }}
97100
# fetch the specific layer version information from the us-east-1 commercial region
98101
run: |
99-
aws --region us-east-1 lambda get-layer-version-by-arn --arn 'arn:aws:lambda:us-east-1:017000801446:layer:${{ matrix.layer }}-${{ matrix.arch }}:${{ inputs.version }}' > '${{ matrix.layer }}-${{ matrix.arch }}.json'
102+
aws --region us-east-1 lambda get-layer-version-by-arn --arn "arn:aws:lambda:us-east-1:017000801446:layer:${{ matrix.layer }}-${{ matrix.arch }}:${VERSION}" > '${{ matrix.layer }}-${{ matrix.arch }}.json'
100103
- name: Store Metadata
101104
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
102105
with:
@@ -120,6 +123,7 @@ jobs:
120123
matrix:
121124
region: ${{ fromJson(needs.setup.outputs.regions) }}
122125
layer:
126+
# Python 3.9 remains here to verify its final layer version.
123127
- AWSLambdaPowertoolsPythonV3-python39
124128
- AWSLambdaPowertoolsPythonV3-python310
125129
- AWSLambdaPowertoolsPythonV3-python311
@@ -146,8 +150,10 @@ jobs:
146150
audience: ${{ needs.setup.outputs.aud }}
147151
- id: partition_version
148152
name: Partition Layer Version
153+
env:
154+
VERSION: ${{ matrix.layer == 'AWSLambdaPowertoolsPythonV3-python39' && '27' || inputs.partition_version || inputs.version }}
149155
run: |
150-
echo 'partition_version=$([[ -n "${{ inputs.partition_version}}" ]] && echo ${{ inputs.partition_version}} || echo ${{ inputs.version }} )' >> "$GITHUB_OUTPUT"
156+
echo "partition_version=$VERSION" >> "$GITHUB_OUTPUT"
151157
- name: Verify Layer
152158
run: |
153159
export layer_output='${{ matrix.layer }}-${{ matrix.arch }}-${{matrix.region}}.json'

.github/workflows/layers_partitions.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ jobs:
7878
strategy:
7979
matrix:
8080
layer:
81-
- AWSLambdaPowertoolsPythonV3-python39
8281
- AWSLambdaPowertoolsPythonV3-python310
8382
- AWSLambdaPowertoolsPythonV3-python311
8483
- AWSLambdaPowertoolsPythonV3-python312
@@ -150,7 +149,6 @@ jobs:
150149
matrix:
151150
region: ${{ fromJson(needs.setup.outputs.regions) }}
152151
layer:
153-
- AWSLambdaPowertoolsPythonV3-python39
154152
- AWSLambdaPowertoolsPythonV3-python310
155153
- AWSLambdaPowertoolsPythonV3-python311
156154
- AWSLambdaPowertoolsPythonV3-python312

0 commit comments

Comments
 (0)