Skip to content

Commit 000dc1f

Browse files
authored
enforce python3.11 as cloudsdk_python (#5044)
Even after setting the $CLOUDSDK_PYTHON correctly to be persisted on the image on #5039, the gsutil command continues to try to use python3.8. The screenshot below shows that the env var is set and the gsutil is getting the correct Python version. <img width="910" height="369" alt="image" src="https://github.com/user-attachments/assets/70cc8c51-3534-4091-b451-690b6b598f3a" /> But in this [Batch log](https://pantheon.corp.google.com/batch/jobsDetail/regions/us-central1/jobs/j-221811e7-1ec3-4571-8195-beb65a5b666d/logs?e=-13802955&mods=logs_tg_prod&project=clusterfuzz-development), the gsutil is still using python3.8 and failing. It seems that for some reason the env var is being unset or overriden before reaching the gsutil command. This PR explicitly set the env var in the only file that performs the gcloud/gsutil command for python3.11. Signed-off-by: Javan Lacerda <[email protected]>
1 parent 44e99b1 commit 000dc1f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docker/base/setup_clusterfuzz.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16+
export CLOUDSDK_PYTHON=python3.11
17+
1618
if [ -z "$DEPLOYMENT_BUCKET" ]; then
1719
# Get deployment bucket from project metadata.
1820
export DEPLOYMENT_BUCKET=$(curl -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/project/attributes/deployment-bucket)

0 commit comments

Comments
 (0)