Skip to content

Commit c378c2d

Browse files
authored
tests: Move beam under toxgen (#4759)
- move beam under toxgen - lower the waiting time between pypi requests Ref #4506
1 parent ff9b1c3 commit c378c2d

File tree

5 files changed

+17
-20
lines changed

5 files changed

+17
-20
lines changed

.github/workflows/test-integrations-tasks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
strategy:
3030
fail-fast: false
3131
matrix:
32-
python-version: ["3.7","3.8","3.10","3.11","3.12","3.13"]
32+
python-version: ["3.7","3.10","3.11","3.12","3.13"]
3333
# python3.6 reached EOL and is no longer being supported on
3434
# new versions of hosted runners on Github Actions
3535
# ubuntu-20.04 is the last version that supported python3.6

scripts/populate_tox/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
"<=0.23": ["pydantic<2"],
3737
},
3838
},
39+
"beam": {
40+
"package": "apache-beam",
41+
"python": ">=3.7",
42+
},
3943
"bottle": {
4044
"package": "bottle",
4145
"deps": {

scripts/populate_tox/populate_tox.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
lstrip_blocks=True,
4141
)
4242

43-
PYPI_COOLDOWN = 0.15 # seconds to wait between requests to PyPI
43+
PYPI_COOLDOWN = 0.1 # seconds to wait between requests to PyPI
4444

4545
PYPI_PROJECT_URL = "https://pypi.python.org/pypi/{project}/json"
4646
PYPI_VERSION_URL = "https://pypi.python.org/pypi/{project}/{version}/json"
@@ -68,7 +68,6 @@
6868
# Integrations that can be migrated -- we should eventually remove all
6969
# of these from the IGNORE list
7070
"asyncpg",
71-
"beam",
7271
"boto3",
7372
"chalice",
7473
"gcp",

scripts/populate_tox/tox.jinja

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,6 @@ envlist =
4646
# AWS Lambda
4747
{py3.8,py3.9,py3.11,py3.13}-aws_lambda
4848

49-
# Beam
50-
{py3.7}-beam-v{2.12}
51-
{py3.8,py3.11}-beam-latest
52-
5349
# Boto3
5450
{py3.6,py3.7}-boto3-v{1.12}
5551
{py3.7,py3.11,py3.12}-boto3-v{1.23}
@@ -177,10 +173,6 @@ deps =
177173
aws_lambda: requests
178174
aws_lambda: uvicorn
179175
180-
# Beam
181-
beam-v2.12: apache-beam~=2.12.0
182-
beam-latest: apache-beam
183-
184176
# Boto3
185177
boto3-v1.12: boto3~=1.12.0
186178
boto3-v1.23: boto3~=1.23.0

tox.ini

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# The file (and all resulting CI YAMLs) then need to be regenerated via
1111
# "scripts/generate-test-files.sh".
1212
#
13-
# Last generated: 2025-09-04T07:00:53.509946+00:00
13+
# Last generated: 2025-09-04T10:35:13.756355+00:00
1414

1515
[tox]
1616
requires =
@@ -46,10 +46,6 @@ envlist =
4646
# AWS Lambda
4747
{py3.8,py3.9,py3.11,py3.13}-aws_lambda
4848

49-
# Beam
50-
{py3.7}-beam-v{2.12}
51-
{py3.8,py3.11}-beam-latest
52-
5349
# Boto3
5450
{py3.6,py3.7}-boto3-v{1.12}
5551
{py3.7,py3.11,py3.12}-boto3-v{1.23}
@@ -228,6 +224,11 @@ envlist =
228224
{py3.7,py3.10,py3.11}-arq-v0.25.0
229225
{py3.8,py3.11,py3.12}-arq-v0.26.3
230226

227+
{py3.7}-beam-v2.14.0
228+
{py3.7,py3.8}-beam-v2.32.0
229+
{py3.8,py3.10,py3.11}-beam-v2.50.0
230+
{py3.9,py3.12,py3.13}-beam-v2.67.0
231+
231232
{py3.6,py3.7,py3.8}-celery-v4.4.7
232233
{py3.6,py3.7,py3.8}-celery-v5.0.5
233234
{py3.8,py3.12,py3.13}-celery-v5.5.3
@@ -371,10 +372,6 @@ deps =
371372
aws_lambda: requests
372373
aws_lambda: uvicorn
373374

374-
# Beam
375-
beam-v2.12: apache-beam~=2.12.0
376-
beam-latest: apache-beam
377-
378375
# Boto3
379376
boto3-v1.12: boto3~=1.12.0
380377
boto3-v1.23: boto3~=1.23.0
@@ -633,6 +630,11 @@ deps =
633630
arq: fakeredis>=2.2.0,<2.8
634631
arq-v0.23: pydantic<2
635632

633+
beam-v2.14.0: apache-beam==2.14.0
634+
beam-v2.32.0: apache-beam==2.32.0
635+
beam-v2.50.0: apache-beam==2.50.0
636+
beam-v2.67.0: apache-beam==2.67.0
637+
636638
celery-v4.4.7: celery==4.4.7
637639
celery-v5.0.5: celery==5.0.5
638640
celery-v5.5.3: celery==5.5.3

0 commit comments

Comments
 (0)