Skip to content

Fix: filesystem e2e flakiness #8362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions run/filesystem/cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,31 @@
# limitations under the License.

steps:
- id: "Docker build"
name: "gcr.io/cloud-builders/docker"
args:
["build", "-t", "${_AR_REPO_URL}/filesystem-e2e-test:${BUILD_ID}", "."]
- id: "Docker push to Artifact Registry"
name: "gcr.io/cloud-builders/docker"
args: ["push", "${_AR_REPO_URL}/filesystem-e2e-test:${BUILD_ID}"]
- id: "Deploy to Cloud Run"
name: "gcr.io/cloud-builders/gcloud:latest"
entrypoint: /bin/bash
args:
- "-c"
- |
./retry.sh "gcloud alpha run deploy ${_SERVICE_NAME} \
--source . \
--execution-environment gen2 \
--vpc-connector ${_CONNECTOR} \
--update-env-vars FILESTORE_IP_ADDRESS=${_FILESTORE_IP_ADDRESS},FILE_SHARE_NAME=${_FILESHARE} \
--region ${_DEPLOY_REGION} \
--no-allow-unauthenticated"
- beta
- run
- deploy
- ${_SERVICE_NAME}
- --image=${_AR_REPO_URL}/filesystem-e2e-test:${BUILD_ID}
- --execution-environment=gen2
- --vpc-connector=${_CONNECTOR}
- --update-env-vars=FILESTORE_IP_ADDRESS=${_FILESTORE_IP_ADDRESS},FILE_SHARE_NAME=${_FILESHARE}
- --region=${_DEPLOY_REGION}
- --no-allow-unauthenticated

substitutions:
_SERVICE_NAME: filesystem
_DEPLOY_REGION: us-central1
_FILESHARE: vol1
_CONNECTOR: my-run-connector
_FILESTORE_IP_ADDRESS: 0.0.0.0
_AR_REPO_URL: us-central1-docker.pkg.dev/${PROJECT_ID}/cloud-run-source-deploy

options:
dynamic_substitutions: true