Files
gRPC Team Bot 4ea0370137 Removed no-gen2 flag to allow support for Python313 runtime (#39327)
Python313 is a new Cloud Run functions runtime that was added yesterday as a preview feature: https://cloud.google.com/functions/docs/release-notes#April_21_2025

However, checking using `gcloud functions runtimes list` it is only supported for 2nd Gen
```
$ gcloud functions runtimes list
NAME       STAGE       ENVIRONMENTS
python38   DEPRECATED  1st gen, 2nd gen
python39   GA          1st gen, 2nd gen
python310  GA          1st gen, 2nd gen
python311  GA          1st gen, 2nd gen
python312  GA          1st gen, 2nd gen
python313  BETA        2nd gen
```
However, the script currently uses the flag --no-gen2 which is probably preventing it to not use 2nd gen and hence throwing the error:
```
ERROR: (gcloud.functions.deploy) argument `--runtime`: python313 is not a supported runtime on GCF 1st gen. Use `gcloud functions runtimes list` to get a list of available runtimes
```

This PR hence removes the `--no-gen2` flag. Also given all Python versions are supported in 2nd gen, it is probably safe to remove the `--no-gen2` flag to support Python313 as well as older runtimes.

Closes #39327

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/39327 from sreenithi:fix_gcp_distribtest 30729065afd8702fc294aee79071e52e7cb773b6
PiperOrigin-RevId: 750235525
2025-04-22 10:10:22 -07:00
..
2022-04-07 11:51:07 -07:00
2022-04-07 11:51:07 -07:00
2022-04-07 11:51:07 -07:00
2022-04-07 11:51:07 -07:00

Python Google Cloud Functions Distribtest

This distribtest acts as a smoke test for usage of the grpcio Python wheel in the GCF environment. This test is dependent on two long-lived GCP resources:

  • gcf-distribtest-topic Pub Sub Topic with default configuration.
  • grpc-gcf-distribtest GCS Bucket. This bucket has 1 day TTL on all artifacts.

All Functions should be deleted by the test under normal circumstances. In case anything goes wrong with this process, a cleanup.sh script is provided to delete any dangling test functions.