Skip to content

Commit

Permalink
Merge branch 'GoogleCloudPlatform:main' into wbi-cc-payload
Browse files Browse the repository at this point in the history
  • Loading branch information
bcreddy-gcp authored Jan 10, 2025
2 parents e34667e + 38b6682 commit 728c295
Show file tree
Hide file tree
Showing 259 changed files with 8,066 additions and 1,330 deletions.
4 changes: 3 additions & 1 deletion .ci/gcb-pr-downstream-generation-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ steps:
- name: 'gcr.io/graphite-docker-images/go-plus'
id: gcb-tpg-vcr-test
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GITHUB_TOKEN_DOWNSTREAMS", "GITHUB_TOKEN_MAGIC_MODULES", "GOOGLE_BILLING_ACCOUNT", "GOOGLE_CHRONICLE_INSTANCE_ID", "GOOGLE_CUST_ID", "GOOGLE_IDENTITY_USER", "GOOGLE_MASTER_BILLING_ACCOUNT", "GOOGLE_ORG", "GOOGLE_ORG_2", "GOOGLE_ORG_DOMAIN", "GOOGLE_PROJECT", "GOOGLE_PROJECT_NUMBER", "GOOGLE_SERVICE_ACCOUNT", "SA_KEY", "GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION"]
secretEnv: ["GITHUB_TOKEN_DOWNSTREAMS", "GITHUB_TOKEN_MAGIC_MODULES", "GOOGLE_BILLING_ACCOUNT", "GOOGLE_CHRONICLE_INSTANCE_ID", "GOOGLE_CUST_ID", "GOOGLE_IDENTITY_USER", "GOOGLE_MASTER_BILLING_ACCOUNT", "GOOGLE_ORG", "GOOGLE_ORG_2", "GOOGLE_ORG_DOMAIN", "GOOGLE_PROJECT", "GOOGLE_PROJECT_NUMBER", "GOOGLE_SERVICE_ACCOUNT", "SA_KEY", "GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION", "GOOGLE_VMWAREENGINE_PROJECT"]
waitFor: ["diff"]
env:
- BASE_BRANCH=$_BASE_BRANCH
Expand Down Expand Up @@ -314,3 +314,5 @@ availableSecrets:
env: SA_KEY
- versionName: projects/673497134629/secrets/ci-test-public-advertised-prefix-description/versions/latest
env: GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION
- versionName: projects/673497134629/secrets/ci-test-vmwareengine-project/versions/latest
env: GOOGLE_VMWAREENGINE_PROJECT
3 changes: 3 additions & 0 deletions .ci/gcb-push-downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ steps:
- "GOOGLE_SERVICE_ACCOUNT"
- "SA_KEY"
- "GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION"
- "GOOGLE_VMWAREENGINE_PROJECT"
env:
- "COMMIT_SHA=$COMMIT_SHA"
- "GOOGLE_REGION=us-central1"
Expand Down Expand Up @@ -249,3 +250,5 @@ availableSecrets:
env: SA_KEY
- versionName: projects/673497134629/secrets/ci-test-public-advertised-prefix-description/versions/latest
env: GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION
- versionName: projects/673497134629/secrets/ci-test-vmwareengine-project/versions/latest
env: GOOGLE_VMWAREENGINE_PROJECT
4 changes: 3 additions & 1 deletion .ci/gcb-vcr-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ steps:
- name: 'gcr.io/graphite-docker-images/go-plus'
id: gcb-vcr-nightly
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
secretEnv: ["GOOGLE_BILLING_ACCOUNT", "GOOGLE_CHRONICLE_INSTANCE_ID", "GOOGLE_CUST_ID", "GOOGLE_IDENTITY_USER", "GOOGLE_MASTER_BILLING_ACCOUNT", "GOOGLE_ORG", "GOOGLE_ORG_2", "GOOGLE_ORG_DOMAIN", "GOOGLE_PROJECT", "GOOGLE_PROJECT_NUMBER", "GOOGLE_SERVICE_ACCOUNT", "SA_KEY", "GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION", "GITHUB_TOKEN_CLASSIC"]
secretEnv: ["GOOGLE_BILLING_ACCOUNT", "GOOGLE_CHRONICLE_INSTANCE_ID", "GOOGLE_CUST_ID", "GOOGLE_IDENTITY_USER", "GOOGLE_MASTER_BILLING_ACCOUNT", "GOOGLE_ORG", "GOOGLE_ORG_2", "GOOGLE_ORG_DOMAIN", "GOOGLE_PROJECT", "GOOGLE_PROJECT_NUMBER", "GOOGLE_SERVICE_ACCOUNT", "SA_KEY", "GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION", "GITHUB_TOKEN_CLASSIC", "GOOGLE_VMWAREENGINE_PROJECT"]
env:
- "GOOGLE_REGION=us-central1"
- "GOOGLE_ZONE=us-central1-a"
Expand Down Expand Up @@ -48,3 +48,5 @@ availableSecrets:
env: GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION
- versionName: projects/673497134629/secrets/github-classic--repo-workflow/versions/latest
env: GITHUB_TOKEN_CLASSIC
- versionName: projects/673497134629/secrets/ci-test-vmwareengine-project/versions/latest
env: GOOGLE_VMWAREENGINE_PROJECT
1 change: 1 addition & 0 deletions .ci/magician/cmd/check_cassettes.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ var ccRequiredEnvironmentVariables = [...]string{

var ccOptionalEnvironmentVariables = [...]string{
"GOOGLE_CHRONICLE_INSTANCE_ID",
"GOOGLE_VMWAREENGINE_PROJECT",
}

var checkCassettesCmd = &cobra.Command{
Expand Down
1 change: 1 addition & 0 deletions .ci/magician/cmd/test_eap_vcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var tevOptionalEnvironmentVariables = [...]string{
"GOOGLE_ORG_2",
"GOOGLE_PUBLIC_AVERTISED_PREFIX_DESCRIPTION",
"GOOGLE_SERVICE_ACCOUNT",
"GOOGLE_VMWAREENGINE_PROJECT",
}

var testEAPVCRCmd = &cobra.Command{
Expand Down
1 change: 1 addition & 0 deletions .ci/magician/cmd/test_terraform_vcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ var ttvRequiredEnvironmentVariables = [...]string{

var ttvOptionalEnvironmentVariables = [...]string{
"GOOGLE_CHRONICLE_INSTANCE_ID",
"GOOGLE_VMWAREENGINE_PROJECT",
}

type analytics struct {
Expand Down
1 change: 1 addition & 0 deletions .ci/magician/cmd/vcr_cassette_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ var vcuRequiredEnvironmentVariables = [...]string{

var vcuOptionalEnvironmentVariables = [...]string{
"GOOGLE_CHRONICLE_INSTANCE_ID",
"GOOGLE_VMWAREENGINE_PROJECT",
}

var (
Expand Down
4 changes: 2 additions & 2 deletions .ci/magician/github/REVIEWER_ASSIGNMENT_COMMENT.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Hello! I am a robot. Tests will require approval from a repository maintainer to run.

@{{.reviewer}}, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.
@{{.reviewer}}, a repository maintainer, has been assigned to [review your changes](https://googlecloudplatform.github.io/magic-modules/contribute/review-pr/). If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look.

You can help make sure that review is quick by [doing a self-review](https://googlecloudplatform.github.io/magic-modules/contribute/review-pr/) and by [running impacted tests locally](https://googlecloudplatform.github.io/magic-modules/get-started/run-provider-tests/).
You can help make sure that review is quick by [doing a self-review](https://googlecloudplatform.github.io/magic-modules/contribute/review-pr/) and by [running impacted tests locally](https://googlecloudplatform.github.io/magic-modules/get-started/run-provider-tests/).
4 changes: 2 additions & 2 deletions .ci/magician/github/membership_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ var (
},
{
id: "roaks3",
startDate: newDate(2024, 12, 6, pdtLoc),
endDate: newDate(2024, 12, 8, pdtLoc),
startDate: newDate(2024, 12, 27, pdtLoc),
endDate: newDate(2025, 1, 5, pdtLoc),
},
}
)
2 changes: 1 addition & 1 deletion .ci/magician/github/reviewer_assignment.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func FormatReviewerComment(newPrimaryReviewer string) string {
return sb.String()
}

var reviewerCommentRegex = regexp.MustCompile("@(?P<reviewer>[^,]*), a repository maintainer, has been assigned to review your changes.")
var reviewerCommentRegex = regexp.MustCompile("@(?P<reviewer>[^,]*), a repository maintainer, has been assigned")

// FindReviewerComment returns the comment which mentions the current primary reviewer and the reviewer's login,
// or an empty comment and empty string if no such comment is found.
Expand Down
5 changes: 2 additions & 3 deletions .ci/magician/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ require (
)

require (
cloud.google.com/go/compute v1.19.1 // indirect
cloud.google.com/go/compute/metadata v0.2.3 // indirect
cloud.google.com/go/compute/metadata v0.3.0 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/golang/glog v1.1.1 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
Expand All @@ -36,7 +35,7 @@ require (
github.com/pmezard/go-difflib v1.0.0 // indirect
go.opencensus.io v0.24.0 // indirect
golang.org/x/net v0.23.0 // indirect
golang.org/x/oauth2 v0.7.0 // indirect
golang.org/x/oauth2 v0.24.0 // indirect
golang.org/x/sys v0.18.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
Expand Down
10 changes: 4 additions & 6 deletions .ci/magician/go.sum
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
cloud.google.com/go v0.110.0 h1:Zc8gqp3+a9/Eyph2KDmcGaPtbKRIoqq4YTlL4NMD0Ys=
cloud.google.com/go/compute v1.19.1 h1:am86mquDUgjGNWxiGn+5PGLbmgiWXlE/yNWpIpNvuXY=
cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE=
cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY=
cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA=
cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc=
cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k=
cloud.google.com/go/longrunning v0.4.1 h1:v+yFJOfKC3yZdY6ZUI933pIYdhyhV8S3NpWrXWmg7jM=
cloud.google.com/go/longrunning v0.4.1/go.mod h1:4iWDqhBZ70CvZ6BfETbvam3T8FMvLK+eFj0E6AaRQTo=
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
Expand Down Expand Up @@ -109,8 +107,8 @@ golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwY
golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs=
golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.7.0 h1:qe6s0zUXlPX80/dITx3440hWZ7GwMwgDDyrSGTPJG/g=
golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
golang.org/x/oauth2 v0.24.0 h1:KTBBxWqUa0ykRPLtV69rRto9TLXcqYkeswu48x/gvNE=
golang.org/x/oauth2 v0.24.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
1 change: 1 addition & 0 deletions .ci/magician/vcr/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ var safeToLog = map[string]bool{
"GOOGLE_REGION": true,
"GOOGLE_SERVICE_ACCOUNT": true,
"GOOGLE_TEST_DIRECTORY": true,
"GOOGLE_VMWAREENGINE_PROJECT": true,
"GOOGLE_ZONE": true,
"GOPATH": true,
"HOME": true,
Expand Down
198 changes: 0 additions & 198 deletions .ci/scripts/go-plus/vcr-cassette-update/vcr_cassette_update.sh

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: 'ubuntu-latest'
runs-on: ubuntu-22.04
timeout-minutes: 360
permissions:
# required for all workflows
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/ensure-service-team-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: ensure-service-team-labels

permissions:
issues: write

on:
schedule:
# Runs at 00:00 UTC every day
- cron: '0 0 * * *'
workflow_call:

jobs:
modify-labels:
if: github.repository == 'GoogleCloudPlatform/magic-modules' || github.repository == 'hashicorp/terraform-provider-google'
runs-on: ubuntu-22.04
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.2
with:
repository: GoogleCloudPlatform/magic-modules
- name: Set up Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version: '^1.23.0'
- name: Build issue-labeler
run: |
cd tools/issue-labeler
go build
- name: Run issue-labeler
run: |
cd tools/issue-labeler
./issue-labeler setup-labels ${{ github.repository }}
Loading

0 comments on commit 728c295

Please sign in to comment.