Skip to content

Commit 2dc7c2c

Browse files
authored
Add Python 3.13 to Our EC2 and EKS Workflows (#415)
## What does this pull request do? Updates our EC2 and EKS workflows to build Python 3.13 so our main build [stops failing](https://github.com/aws-observability/aws-otel-python-instrumentation/actions/runs/15712902907/job/44284038473) [adding support](aws-observability/aws-otel-python-instrumentation#395) for this runtime version in ADOT Python. We can safely revert these changes. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 3f43a73 commit 2dc7c2c

File tree

11 files changed

+15
-15
lines changed

11 files changed

+15
-15
lines changed

.github/workflows/python-ec2-adot-sigv4-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
required: true
1313
type: string
1414
python-version:
15-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
15+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
1616
required: false
1717
type: string
1818
default: '3.9'

.github/workflows/python-ec2-asg-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
required: true
1616
type: string
1717
python-version:
18-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
18+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
1919
required: false
2020
type: string
2121
default: '3.9'

.github/workflows/python-ec2-default-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
required: true
1616
type: string
1717
python-version:
18-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
18+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
1919
required: false
2020
type: string
2121
default: '3.9'

.github/workflows/python-ecs-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
required: true
1616
type: string
1717
python-version:
18-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
18+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
1919
required: false
2020
type: string
2121
default: '3.10'

.github/workflows/python-eks-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
required: true
1919
type: string
2020
python-version:
21-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
21+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
2222
required: false
2323
type: string
2424
default: '3.10'

.github/workflows/python-k8s-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818
required: false
1919
type: string
2020
python-version:
21-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
21+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
2222
required: false
2323
type: string
2424
default: '3.10'

.github/workflows/python-lambda-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
required: true
1616
type: string
1717
python-version:
18-
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12"
18+
description: "Currently support version 3.8, 3.9, 3.10, 3.11, 3.12, 3.13"
1919
required: false
2020
type: string
2121
default: '3.9'

.github/workflows/python-sample-app-ecr-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# This workflow is for building and uploading the Python sample application to ECR.
55
# Python 3.10 will be built and uploaded to all regions to be used by the canary while
6-
# other versions (3.8, 3.9, 3.11, 3.12) will be uploaded to us-east-1 for the purpose of
6+
# other versions (3.8, 3.9, 3.11, 3.12, 3.13) will be uploaded to us-east-1 for the purpose of
77
# testing ADOT Python
88
name: Sample App Deployment - Python ECR
99
on:
@@ -75,7 +75,7 @@ jobs:
7575
strategy:
7676
fail-fast: false
7777
matrix:
78-
python-version: [ '3.8', '3.9', '3.11', '3.12' ]
78+
python-version: [ '3.8', '3.9', '3.11', '3.12', '3.13' ]
7979
runs-on: ubuntu-latest
8080
steps:
8181
- uses: actions/checkout@v4

terraform/python/ec2/adot-sigv4/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ resource "null_resource" "main_service_setup" {
116116
sudo yum install wget -y
117117
sudo yum install unzip -y
118118
119-
# Dnf does not have the module for python 3.10, 3,10, 3.12, therefore we need to manually install it by downloading the package from the python website.
119+
# Dnf does not have the module for python 3.8, 3.10, 3.12, 3.13, therefore we need to manually install it by downloading the package from the python website.
120120
# Building and installing the package takes longer then installing it through dnf, so a seperate installation process was made.
121121
# The canary should run on a version without the manual installation process
122-
if [ "${var.language_version}" == "3.8" ] || [ "${var.language_version}" = "3.10" ] || [ "${var.language_version}" = "3.12" ]; then
122+
if [ "${var.language_version}" == "3.8" ] || [ "${var.language_version}" = "3.10" ] || [ "${var.language_version}" = "3.12" ] || [ "${var.language_version}" = "3.13" ]; then
123123
# Install modules required to compile Python and also run the sample app
124124
sudo dnf groupinstall "Development Tools" -y
125125
sudo dnf install openssl-devel sqlite-devel libffi-devel -y

terraform/python/ec2/asg/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ resource "aws_launch_configuration" "launch_configuration" {
103103
sudo yum install wget -y
104104
sudo yum install unzip -y
105105
106-
# Dnf does not have the module for python 3.10, 3,10, 3.12, therefore we need to manually install it by downloading the package from the python website.
106+
# Dnf does not have the module for python 3.8, 3.10, 3.12, 3.13, therefore we need to manually install it by downloading the package from the python website.
107107
# Building and installing the package takes longer then installing it through dnf, so a seperate installation process was made.
108108
# The canary should run on a version without the manual installation process
109-
if [ "${var.language_version}" == "3.8" ] || [ "${var.language_version}" = "3.10" ] || [ "${var.language_version}" = "3.12" ]; then
109+
if [ "${var.language_version}" == "3.8" ] || [ "${var.language_version}" = "3.10" ] || [ "${var.language_version}" = "3.12" ] || [ "${var.language_version}" = "3.13" ]; then
110110
# Install modules required to compile Python and also run the sample app
111111
sudo dnf groupinstall "Development Tools" -y
112112
sudo dnf install openssl-devel sqlite-devel libffi-devel -y

0 commit comments

Comments
 (0)