Commit b0963f4
authored
Drop Python 3.8/3.9 from the Python test framework (OTel floor is now 3.10) (#643)
## Why
The nightly OpenTelemetry dependency bump in
`aws-otel-python-instrumentation` ([PR
#762](aws-observability/aws-otel-python-instrumentation#762),
OTel `1.42.1` / `0.63b1`) raised the ADOT distro's minimum to **Python ≥
3.10**:
- `opentelemetry-api`: `1.41.1` was `requires_python >=3.9` → `1.42.1`
is **`>=3.10`**
- `opentelemetry-instrumentation-*`: `0.62b1` was `>=3.9` → `0.63b1` is
**`>=3.10`**
The `python-ec2-adot-sigv4` and `python-ec2-adaptive-sampling` E2E jobs
default to **Python 3.9**, so after the bump pip on the EC2 host could
no longer resolve the pinned distro:
```
ERROR: Could not find a version that satisfies the requirement opentelemetry-api==1.42.1 ...
ERROR: No matching distribution found for opentelemetry-instrumentation-celery==0.63b1
nohup: failed to run command 'opentelemetry-instrument': No such file or directory
```
This turned the **Python Instrumentation Main Build** red on every run
starting 2026-06-17 01:26 UTC (first failure = the dep-bump commit; the
run immediately before it was green). The `default` EC2 matrix
(3.10–3.14) and container/layer-based jobs were unaffected because they
don't pip-install the pinned distro on a 3.9 interpreter.
> Note: the `k8s-py310-amd64` job also fails intermittently, but that is
a **separate, pre-existing** CloudWatch observability controller-manager
pod-readiness timeout — unrelated to this change.
## What
Removes **all** Python 3.8/3.9 references from the Python test framework
and floors everything at 3.10:
- **Reusable workflows** — `python-version` default `3.9` → `3.10`
(`default`, `asg`, `lambda`, `adot-sigv4`); normalized "currently
supported" description strings to `3.10, 3.11, 3.12, 3.13, 3.14` across
all Python workflows.
- **adaptive-sampling** — hardcoded `python3.9` install command →
`python3.10`.
- **Terraform** — `language_version` default `3.9` → `3.10` (`default`,
`asg`, `adot-sigv4`, `adaptive-sampling`).
- **EC2 user-data scripts** — dropped the now-dead `== "3.8"`
conditional branches and 3.8 comment references; fixed a pre-existing
`3,10` comment typo.
- **ECR sample-app deploy** — removed `3.8` and `3.9` from the build
matrix.
## Testing
- All 9 modified workflow YAML files validated as well-formed.
- `terraform fmt -check` passes on all four modified EC2 dirs (no diff).
- Repo-wide grep confirms no remaining
`3.8`/`3.9`/`python3.8`/`python3.9` references in the Python framework.1 parent 95bf387 commit b0963f4
16 files changed
Lines changed: 37 additions & 37 deletions
File tree
- .github/workflows
- terraform/python/ec2
- adaptive-sampling
- adot-sigv4
- asg
- default
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments