Skip to content

Commit

Permalink
Merge branch 'GoogleCloudPlatform:main' into vibansal_privateCAFR
Browse files Browse the repository at this point in the history
  • Loading branch information
vivzbansal authored May 10, 2024
2 parents 6a17c9a + 9c51999 commit 274329c
Show file tree
Hide file tree
Showing 191 changed files with 8,304 additions and 733 deletions.
71 changes: 38 additions & 33 deletions .ci/gcb-push-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,42 @@ steps:
- $BRANCH_NAME
- $COMMIT_SHA

# TPGB
- name: 'gcr.io/graphite-docker-images/bash-plus'
entrypoint: '/workspace/.ci/scripts/bash-plus/downstream-waiter/wait_for_commit.sh'
id: tpgb-sync
waitFor: ["checkout"]
args:
- 'tpgb-sync'
- $BRANCH_NAME
- $COMMIT_SHA

# TGC
- name: 'gcr.io/graphite-docker-images/bash-plus'
entrypoint: '/workspace/.ci/scripts/bash-plus/downstream-waiter/wait_for_commit.sh'
id: tgc-sync
waitFor: ["checkout"]
args:
- 'tgc-sync'
- $BRANCH_NAME
- $COMMIT_SHA

# TF-OICS
- name: 'gcr.io/graphite-docker-images/bash-plus'
entrypoint: '/workspace/.ci/scripts/bash-plus/downstream-waiter/wait_for_commit.sh'
id: tf-oics-sync
waitFor: ["checkout"]
args:
- 'tf-oics-sync'
- $BRANCH_NAME
- $COMMIT_SHA

# TPG
- name: 'gcr.io/graphite-docker-images/build-environment'
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GITHUB_TOKEN_CLASSIC"]
id: tpg-push
waitFor: ["tpg-sync", "build-magician-binary"]
waitFor: ["tpg-sync", "tpgb-sync", "tgc-sync", "tf-oics-sync", "build-magician-binary"]
env:
- BASE_BRANCH=$BRANCH_NAME
args:
Expand All @@ -67,20 +98,11 @@ steps:
fi
# TPGB
- name: 'gcr.io/graphite-docker-images/bash-plus'
entrypoint: '/workspace/.ci/scripts/bash-plus/downstream-waiter/wait_for_commit.sh'
id: tpgb-sync
waitFor: ["checkout"]
args:
- 'tpgb-sync'
- $BRANCH_NAME
- $COMMIT_SHA

- name: 'gcr.io/graphite-docker-images/build-environment'
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GITHUB_TOKEN_CLASSIC"]
id: tpgb-push
waitFor: ["tpgb-sync", "build-magician-binary"]
waitFor: ["tpg-sync", "tpgb-sync", "tgc-sync", "tf-oics-sync", "build-magician-binary"]
env:
- BASE_BRANCH=$BRANCH_NAME
args:
Expand All @@ -104,20 +126,11 @@ steps:
fi
# TGC
- name: 'gcr.io/graphite-docker-images/bash-plus'
entrypoint: '/workspace/.ci/scripts/bash-plus/downstream-waiter/wait_for_commit.sh'
id: tgc-sync
waitFor: ["checkout"]
args:
- 'tgc-sync'
- $BRANCH_NAME
- $COMMIT_SHA

- name: 'gcr.io/graphite-docker-images/build-environment'
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GITHUB_TOKEN_CLASSIC"]
id: tgc-push
waitFor: ["tgc-sync", "tpgb-push"]
waitFor: ["tpgb-push"]
env:
- BASE_BRANCH=$BRANCH_NAME
args:
Expand All @@ -141,20 +154,11 @@ steps:
fi
# TF-OICS
- name: 'gcr.io/graphite-docker-images/bash-plus'
entrypoint: '/workspace/.ci/scripts/bash-plus/downstream-waiter/wait_for_commit.sh'
id: tf-oics-sync
waitFor: ["checkout"]
args:
- 'tf-oics-sync'
- $BRANCH_NAME
- $COMMIT_SHA

- name: 'gcr.io/graphite-docker-images/build-environment'
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GITHUB_TOKEN_CLASSIC"]
id: tf-oics-push
waitFor: ["tf-oics-sync", "build-magician-binary"]
waitFor: ["tpg-sync", "tpgb-sync", "tgc-sync", "tf-oics-sync", "build-magician-binary"]
env:
- BASE_BRANCH=$BRANCH_NAME
args:
Expand All @@ -178,14 +182,15 @@ steps:
fi
- name: 'gcr.io/graphite-docker-images/go-plus'
entrypoint: '/workspace/.ci/scripts/go-plus/vcr-cassette-merger/vcr_merge.sh'
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GITHUB_TOKEN_CLASSIC", "GOOGLE_PROJECT"]
id: vcr-merge
waitFor: ["tpg-push", "tpgb-push", "tgc-push", "tf-oics-push"]
env:
- BASE_BRANCH=$BRANCH_NAME
args:
- $COMMIT_SHA
- "vcr-merge"
- $COMMIT_SHA

- name: 'gcr.io/graphite-docker-images/go-plus'
id: magician-check-vcr-cassettes
Expand Down
11 changes: 11 additions & 0 deletions .ci/magician/cmd/SCHEDULED_PR_WAITING_FOR_CONTRIBUTOR.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{{ if lt .SinceDays 42 -}}
@{{.PullRequest.User.Login}}, this PR is waiting for action from you. Please address any comments or change requests, or [re-request review](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/requesting-a-pull-request-review) from a core reviewer if no action is required.

![Image showing the re-request review button](https://docs.github.com/assets/cb-28785/mw-1440/images/help/pull_requests/request-re-review.webp)

If no action is taken, this PR will be closed in {{minus 42 .SinceDays}} days.

This notification can be disabled with the `disable-automatic-closure` label.
{{ else -}}
@{{.PullRequest.User.Login}}, this PR is being closed due to inactivity.
{{ end -}}
1 change: 1 addition & 0 deletions .ci/magician/cmd/SCHEDULED_PR_WAITING_FOR_MERGE.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This PR is approved and has been waiting for merge for {{.SinceDays}} days. Is it ready to merge? Use the label `disable-review-reminders` to disable these notifications.
1 change: 1 addition & 0 deletions .ci/magician/cmd/SCHEDULED_PR_WAITING_FOR_REVIEW.md.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{{if ge .SinceDays 7}}@terraform-team {{end}}This PR has been waiting for review for {{.SinceDays}} days. Please take a look! Use the label `disable-review-reminders` to disable these notifications.
Loading

0 comments on commit 274329c

Please sign in to comment.