mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
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
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-topicPub Sub Topic with default configuration.grpc-gcf-distribtestGCS 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.