Skip to content

Conversation

martijnvans
Copy link

@martijnvans martijnvans commented Sep 23, 2025

This is to unblock #402, which will be changing test setup to be multi-project. The kitchen framework does not understand how to deal with a multi-project test setup, so it has to be removed.

deletion_policy = "DELETE"
name = "ci-cloud-run"
random_project_id = "true"
random_project_id_length = 8
Copy link
Author

@martijnvans martijnvans Sep 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is here to help with an "already exists" error I ran into while testing. Without this setting, we were using 16 bits for a "unique" name. After this setting, it will be 41 bits.

I did some calculations and if 50 projects are currently in use, there is a (roughly) 4% chance that there will be a naming clash among them. This gets reduced to a 1 in 10^10 chance with 41 bits.

I don't know whether the "already exists" error I saw was due to a collision, but using a longer project ID length will at least rule out this as a possible issue.

@martijnvans martijnvans marked this pull request as ready for review September 24, 2025 16:49
@@ -0,0 +1,48 @@
// Copyright 2025 Google LLC
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file was just copied from the simple_cloud_run_with_cmek test and lightly edited.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants