Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
722fb20
Monitoring monitored project (#8322)
trodge Jul 12, 2023
e3ebcc3
Add making a breaking change guide (#8326)
rileykarson Jul 13, 2023
e4325d9
Fix tpg-transport unit tests for local runs (#8325)
ScottSuarez Jul 13, 2023
860d734
Add support for complexDataTypeReferenceParsing in FHIR Stores (#8316)
FaithfulZhening Jul 13, 2023
49f36b3
Add provider packages to the teamcity (#8330)
zli82016 Jul 13, 2023
c6ecf9c
Generate DCL tests to service packages (#8257)
zli82016 Jul 13, 2023
214a377
feat: add bigtable change stream retention documentation (#8335)
tonytanger Jul 13, 2023
2604552
increase max_sizes for EdgeCacheService (#8333)
edwardmedia Jul 13, 2023
a3e513f
Revert "Generate DCL tests to service packages (#8257)" (#8340)
zli82016 Jul 13, 2023
85ff1c2
Add Update Connector Support for VPC Access Connectors (#8205)
jashansudan Jul 14, 2023
bce8215
Update TF registry docs to have user_labels nested under settings and…
AmandaHassoun Jul 14, 2023
5b6cfe3
Adding enableConfidentialCompute field for Hyperdisk (#8324)
NA2047 Jul 14, 2023
ad99390
Support named databases for Firestore (#8341)
bw-yuhogg Jul 14, 2023
1a6fb11
feat(google_container_node_pool): support gpu driver version (#8348)
toVersus Jul 14, 2023
180a20c
Num nodess doc update (#8358)
ron-gal Jul 14, 2023
7cac461
Add support for creating Apigee Organization without VPC peering (#8317)
baskaran-md Jul 14, 2023
1905ea9
add most_recent option to google_compute_image datasource (#8309)
darkweaver87 Jul 14, 2023
e449971
Add Looker product and Instance resource support (#8110)
kppk Jul 14, 2023
7a7bab5
Add mutex to google_tags_location_tag_binding (#8329)
edwardmedia Jul 14, 2023
a779650
Normalize name field (#8360)
trodge Jul 15, 2023
35bbe5e
bigquery table - add json and parquet options (#8296)
DrFaust92 Jul 17, 2023
39202d4
Modify the doc for google_compute_resource_policy (#8339)
zli82016 Jul 17, 2023
b08129e
gkebackup backupplan: Add State and StateReason fields (#8227)
neha-vellanki12 Jul 17, 2023
75f76bc
fix: Update workflow_basic.tf.erb (#8369)
averikitsch Jul 18, 2023
f19559e
Changed order of updates for min_cpu_platform and machine_type (#8249)
melinath Jul 18, 2023
8be40a0
Made unused async fields optional (#8331)
melinath Jul 18, 2023
f98df39
breaking-change file name changed (#8375)
ScottSuarez Jul 18, 2023
5f586e1
Simplify network reference in AlloyDB examples (#8367)
wiktorn Jul 18, 2023
d2ca0e1
Properly handle AutomatedBackupPolicy midnight start time (hours = 0)…
GoogleMarcfont Jul 18, 2023
a04bb05
Shortened reviewer assignment comment (#8380)
melinath Jul 19, 2023
d637a19
Add tool to generate services.kt file that contains mmv1 and tpgtools…
SarahFrench Jul 19, 2023
d70fc72
Terraform Support for Dataplex Tasks. (#8124)
sachitjaggi156 Jul 19, 2023
4713a03
feature branches (#8298)
shuyama1 Jul 19, 2023
229c367
Fixed alloydb cluster and instance sweeping (#8374)
melinath Jul 19, 2023
6e28038
Subnetnetwork: replaced ipv6CidrRange with internalIpV6Prefix (#8370)
simonebruzzechesse Jul 19, 2023
4d20213
Stop creating new, second VCS Root. Instead use a single manually-cre…
SarahFrench Jul 19, 2023
e357f74
fix CI for feature branches (#8397)
shuyama1 Jul 19, 2023
0040570
Added note about resource id prefixes for tests to review-pr doc (#8399)
melinath Jul 19, 2023
23f0024
Added a not that failover_target is not supported for Postgres Databa…
ibhaskar2 Jul 20, 2023
353dbb9
Generate DCL tests to service packages (#8349)
zli82016 Jul 20, 2023
c9cc162
cloud_tasks_queue: supress permadiffs on backoff settings (#8359)
wyardley Jul 20, 2023
8202745
Fix issue labeler to use service/ prefix instead of services/ (#8403)
roaks3 Jul 20, 2023
3cb954e
Adding Cloud Composer Support For Resilience Mode Updates (#8263)
Khaledmohamedrefaat Jul 20, 2023
eadb7f1
Parallelize mmv1 build time (#8381)
ScottSuarez Jul 20, 2023
c5aa608
Fixed tf-test prefixes for compute addresses (#8398)
melinath Jul 20, 2023
37c93c6
Fix documentation formatting (#8365)
trodge Jul 20, 2023
779c348
adding security_policy field in regionBackendService resource (#8208)
felipegc Jul 20, 2023
9faed08
tgc build on tpg-beta (#7797)
iyabchen Jul 20, 2023
4379e91
added contributing to 5.0.0 section (#8404)
shuyama1 Jul 20, 2023
1bd9af8
Add optional_components to documentation (#8407)
trodge Jul 20, 2023
f1284db
Add ability to test feature branches in TeamCity (#8388)
SarahFrench Jul 21, 2023
bea9ac7
fix enforce_on_key_configs (#8165)
edwardmedia Jul 21, 2023
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
43 changes: 25 additions & 18 deletions .ci/containers/downstream-builder/generate_downstream.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -e

function clone_repo() {
SCRATCH_OWNER=modular-magician
UPSTREAM_BRANCH=main
UPSTREAM_BRANCH=$BASE_BRANCH
if [ "$REPO" == "terraform" ]; then
if [ "$VERSION" == "ga" ]; then
UPSTREAM_OWNER=hashicorp
Expand All @@ -25,11 +25,12 @@ function clone_repo() {
LOCAL_PATH=$GOPATH/src/github.com/GoogleCloudPlatform/terraform-google-conversion
elif [ "$REPO" == "terraform-google-conversion" ]; then
UPSTREAM_OWNER=GoogleCloudPlatform
UPSTREAM_BRANCH=main
GH_REPO=terraform-google-conversion
LOCAL_PATH=$GOPATH/src/github.com/GoogleCloudPlatform/terraform-google-conversion
elif [ "$REPO" == "tf-oics" ]; then
UPSTREAM_BRANCH=master
if [ "$UPSTREAM_BRANCH" == "main" ]; then
UPSTREAM_BRANCH=master
fi
UPSTREAM_OWNER=terraform-google-modules
GH_REPO=docs-examples
LOCAL_PATH=$GOPATH/src/github.com/terraform-google-modules/docs-examples
Expand All @@ -45,7 +46,9 @@ function clone_repo() {
GITHUB_PATH=https://modular-magician:$GITHUB_TOKEN@github.com/$UPSTREAM_OWNER/$GH_REPO
SCRATCH_PATH=https://modular-magician:$GITHUB_TOKEN@github.com/$SCRATCH_OWNER/$GH_REPO
mkdir -p "$(dirname $LOCAL_PATH)"
git clone $GITHUB_PATH $LOCAL_PATH

echo "BASE_BRANCH: $BASE_BRANCH"
git clone $GITHUB_PATH $LOCAL_PATH --branch $UPSTREAM_BRANCH
}

if [ $# -lt 4 ]; then
Expand All @@ -67,6 +70,12 @@ mkdir ../mm-$REPO-$VERSION-$COMMAND
cp -rp ./. ../mm-$REPO-$VERSION-$COMMAND
pushd ../mm-$REPO-$VERSION-$COMMAND

# for backwards-compatibility
if [ -z "$BASE_BRANCH" ]; then
BASE_BRANCH=main
fi


clone_repo

git config --local user.name "Modular Magician"
Expand Down Expand Up @@ -112,20 +121,13 @@ if [ "$REPO" == "terraform-google-conversion" ]; then

pushd $LOCAL_PATH

if [ "$VERSION" == "ga" ]; then
if [ "$COMMAND" == "downstream" ]; then
go get -d github.com/hashicorp/terraform-provider-google@main
else
go mod edit -replace github.com/hashicorp/terraform-provider-google=github.com/$SCRATCH_OWNER/terraform-provider-google@$BRANCH
fi
elif [ "$VERSION" == "beta" ]; then
if [ "$COMMAND" == "downstream" ]; then
go get -d github.com/hashicorp/terraform-provider-google-beta@main
else
go mod edit -replace github.com/hashicorp/terraform-provider-google-beta=github.com/$SCRATCH_OWNER/terraform-provider-google-beta@$BRANCH
fi
if [ "$COMMAND" == "downstream" ]; then
go get -d github.com/hashicorp/terraform-provider-google-beta@$BASE_BRANCH
else
go mod edit -replace github.com/hashicorp/terraform-provider-google-beta=github.com/$SCRATCH_OWNER/terraform-provider-google-beta@$BRANCH
fi


go mod tidy

# the following build can fail which results in a subsequent failure to push to tfv repository.
Expand Down Expand Up @@ -155,6 +157,11 @@ else
fi
pushd ../
make tpgtools OUTPUT_PATH=$LOCAL_PATH VERSION=$VERSION

# Only generate TeamCity-related file for TPG and TPGB
if [ "$VERSION" == "ga" ] || [ "$VERSION" == "beta" ]; then
make teamcity-servicemap-generate OUTPUT_PATH=$LOCAL_PATH VERSION=$VERSION
fi
popd
fi
fi
Expand All @@ -177,7 +184,7 @@ if [ "$REPO" == "terraform" ]; then
fi

PR_NUMBER=$(curl -L -s -H "Authorization: token ${GITHUB_TOKEN}" \
"https://api.github.com/repos/GoogleCloudPlatform/magic-modules/pulls?state=closed&base=main&sort=updated&direction=desc" | \
"https://api.github.com/repos/GoogleCloudPlatform/magic-modules/pulls?state=closed&base=$BASE_BRANCH&sort=updated&direction=desc" | \
jq -r ".[] | if .merge_commit_sha == \"$REFERENCE\" then .number else empty end")
if [ "$COMMITTED" == "true" ] && [ "$COMMAND" == "downstream" ] && [ "$CHANGELOG" == "true" ]; then
# Add the changelog entry!
Expand Down Expand Up @@ -222,4 +229,4 @@ if [ "$COMMITTED" == "true" ] && [ "$COMMAND" == "downstream" ]; then
"https://api.github.com/repos/$UPSTREAM_OWNER/$GH_REPO/pulls/$NEW_PR_NUMBER/merge"
fi

popd
popd
12 changes: 10 additions & 2 deletions .ci/containers/downstream-waiter/wait_for_commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,18 @@ if [ $# -lt 3 ]; then
exit 1
fi

SYNC_BRANCH=$1
SYNC_BRANCH_PREFIX=$1
BASE_BRANCH=$2
SHA=$3

if [ "$BASE_BRANCH" == "main" ]; then
SYNC_BRANCH=$SYNC_BRANCH_PREFIX
else
SYNC_BRANCH=$SYNC_BRANCH_PREFIX-$BASE_BRANCH
fi

echo "SYNC_BRANCH: $SYNC_BRANCH"

if git merge-base --is-ancestor $SHA origin/$SYNC_BRANCH; then
echo "Found $SHA in history of $SYNC_BRANCH - dying to avoid double-generating that commit."
exit 1
Expand All @@ -25,4 +33,4 @@ while true; do
git fetch origin $SYNC_BRANCH
fi
sleep 5
done
done
18 changes: 16 additions & 2 deletions .ci/containers/gcb-terraform-vcr-tester/test_terraform_vcr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,25 @@ function update_status {

update_status "pending"

# for backwards-compatibility
if [ -z "$BASE_BRANCH" ]; then
BASE_BRANCH=main
else
echo "BASE_BRANCH: $BASE_BRANCH"
fi

set +e
# cassette retrieval
mkdir fixtures
gsutil -m -q cp gs://ci-vcr-cassettes/beta/fixtures/* fixtures/
# copy branch specific cassettes over master. This might fail but that's ok if the folder doesnt exist
if [ "$BASE_BRANCH" != "FEATURE-BRANCH-major-release-5.0.0" ]; then
# pull main cassettes (major release uses branch specific casssettes as primary ones)
gsutil -m -q cp gs://ci-vcr-cassettes/beta/fixtures/* fixtures/
fi
if [ "$BASE_BRANCH" != "main" ]; then
# copy feature branch specific cassettes over main. This might fail but that's ok if the folder doesnt exist
gsutil -m -q cp gs://ci-vcr-cassettes/beta/refs/branches/$BASE_BRANCH/fixtures/* fixtures/
fi
# copy PR branch specific cassettes over main. This might fail but that's ok if the folder doesnt exist
gsutil -m -q cp gs://ci-vcr-cassettes/beta/refs/heads/auto-pr-$pr_number/fixtures/* fixtures/

echo $SA_KEY > sa_key.json
Expand Down
22 changes: 2 additions & 20 deletions .ci/containers/membership-checker/REVIEWER_ASSIGNMENT_COMMENT.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,3 @@
Hello! I am a robot who works on Magic Modules PRs.
Hello! I am a robot. It looks like you are a community contributor. @{{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.

I've detected that you're a community contributor. @{{reviewer}}, a repository maintainer, has been assigned to assist you and help review your changes.

<details>
<summary>:question: First time contributing? Click here for more details</summary>

---

Your assigned reviewer will help review your code by:
* Ensuring it's backwards compatible, covers common error cases, etc.
* Summarizing the change into a user-facing changelog note.
* Passes tests, either our "VCR" suite, a set of presubmit tests, or with manual test runs.

You can help make sure that review is quick by running local tests and ensuring they're passing in between each push you make to your PR's branch. Also, try to leave a comment with each push you make, as pushes generally don't generate emails.

If your reviewer doesn't get back to you within a week after your most recent change, please feel free to leave a comment on the issue asking them to take a look! In the absence of a dedicated review dashboard most maintainers manage their pending reviews through email, and those will sometimes get lost in their inbox.

---

</details>
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/).
23 changes: 19 additions & 4 deletions .ci/containers/vcr-cassette-merger/vcr_merge.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,40 @@ set -e

REFERENCE=$1

# for backwards-compatibility
if [ -z "$BASE_BRANCH" ]; then
BASE_BRANCH=main
else
echo "BASE_BRANCH: $BASE_BRANCH"
fi

PR_NUMBER=$(curl -s -H "Authorization: token ${GITHUB_TOKEN}" \
"https://api.github.com/repos/GoogleCloudPlatform/magic-modules/pulls?state=closed&base=main&sort=updated&direction=desc" | \
"https://api.github.com/repos/GoogleCloudPlatform/magic-modules/pulls?state=closed&base=$BASE_BRANCH&sort=updated&direction=desc" | \
jq -r ".[] | if .merge_commit_sha == \"$REFERENCE\" then .number else empty end")

set +e
gsutil ls gs://ci-vcr-cassettes/refs/heads/auto-pr-$PR_NUMBER/fixtures/
if [ $? -eq 0 ]; then
# We have recorded new cassettes for this branch
gsutil -m cp gs://ci-vcr-cassettes/refs/heads/auto-pr-$PR_NUMBER/fixtures/* gs://ci-vcr-cassettes/fixtures/
if [ "$BASE_BRANCH" == "main" ]; then
gsutil -m cp gs://ci-vcr-cassettes/refs/heads/auto-pr-$PR_NUMBER/fixtures/* gs://ci-vcr-cassettes/fixtures/
else
gsutil -m cp gs://ci-vcr-cassettes/refs/heads/auto-pr-$PR_NUMBER/fixtures/* gs://ci-vcr-cassettes/refs/branches/$BASE_BRANCH/fixtures/
fi
gsutil -m rm -r gs://ci-vcr-cassettes/refs/heads/auto-pr-$PR_NUMBER/
fi

# Beta cassettes
gsutil ls gs://ci-vcr-cassettes/beta/refs/heads/auto-pr-$PR_NUMBER/fixtures/
if [ $? -eq 0 ]; then
# We have recorded new cassettes for this branch
gsutil -m cp gs://ci-vcr-cassettes/beta/refs/heads/auto-pr-$PR_NUMBER/fixtures/* gs://ci-vcr-cassettes/beta/fixtures/
if [ "$BASE_BRANCH" == "main" ]; then
gsutil -m cp gs://ci-vcr-cassettes/beta/refs/heads/auto-pr-$PR_NUMBER/fixtures/* gs://ci-vcr-cassettes/beta/fixtures/
else
gsutil -m cp gs://ci-vcr-cassettes/beta/refs/heads/auto-pr-$PR_NUMBER/fixtures/* gs://ci-vcr-cassettes/beta/refs/branches/$BASE_BRANCH/fixtures/
fi
gsutil -m rm -r gs://ci-vcr-cassettes/beta/refs/heads/auto-pr-$PR_NUMBER/
fi


set -e
set -e
22 changes: 20 additions & 2 deletions .ci/gcb-generate-diffs-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ steps:
secretEnv: ["GITHUB_TOKEN"]
id: tpg-head
waitFor: ["merged"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'head'
- 'terraform'
Expand All @@ -86,6 +88,8 @@ steps:
id: tpg-base
secretEnv: ["GITHUB_TOKEN"]
waitFor: ["merged"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'base'
- 'terraform'
Expand All @@ -96,6 +100,8 @@ steps:
secretEnv: ["GITHUB_TOKEN"]
id: tpgb-head
waitFor: ["merged"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'head'
- 'terraform'
Expand All @@ -106,6 +112,8 @@ steps:
id: tpgb-base
secretEnv: ["GITHUB_TOKEN"]
waitFor: ["merged"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'base'
- 'terraform'
Expand All @@ -116,25 +124,31 @@ steps:
id: tgc-head
secretEnv: ["GITHUB_TOKEN"]
waitFor: ["merged", "tpg-head"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'head'
- 'terraform-google-conversion'
- 'ga'
- 'beta'
- $_PR_NUMBER

- name: 'gcr.io/graphite-docker-images/downstream-builder'
id: tgc-base
secretEnv: ["GITHUB_TOKEN"]
waitFor: ["merged", "tpg-base"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'base'
- 'terraform-google-conversion'
- 'ga'
- 'beta'
- $_PR_NUMBER

- name: 'gcr.io/graphite-docker-images/downstream-builder'
secretEnv: ["GITHUB_TOKEN"]
waitFor: ["merged"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'head'
- 'tf-oics'
Expand All @@ -144,6 +158,8 @@ steps:
- name: 'gcr.io/graphite-docker-images/downstream-builder'
secretEnv: ["GITHUB_TOKEN"]
waitFor: ["merged"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- 'base'
- 'tf-oics'
Expand Down Expand Up @@ -256,6 +272,8 @@ steps:
id: gcb-tpg-vcr-test
secretEnv: ["GITHUB_TOKEN", "GOOGLE_BILLING_ACCOUNT", "GOOGLE_CUST_ID", "GOOGLE_FIRESTORE_PROJECT", "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"]
waitFor: ["diff"]
env:
- BASE_BRANCH=$_BASE_BRANCH
args:
- $_PR_NUMBER
- $COMMIT_SHA
Expand Down
Loading