Skip to content

Commit 3a622e5

Browse files
Merge remote-tracking branch 'upstream/main'
2 parents d56fa50 + 9db0387 commit 3a622e5

File tree

3,853 files changed

+295805
-81416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,853 files changed

+295805
-81416
lines changed

.ci/README.md

Lines changed: 43 additions & 69 deletions
Large diffs are not rendered by default.

.ci/changelog2.tmpl

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{{- if .NotesByType.unknown -}}
2+
UNKNOWN CHANGELOG TYPE:
3+
{{range .NotesByType.unknown -}}
4+
* {{ template "note" .}}
5+
{{ end -}}
6+
{{- end -}}
7+
8+
{{- if .NotesByType.note -}}
9+
NOTES:
10+
{{range .NotesByType.note -}}
11+
* {{ template "note" .}}
12+
{{ end -}}
13+
{{- end -}}
14+
15+
{{- if .NotesByType.deprecation -}}
16+
DEPRECATIONS:
17+
{{range .NotesByType.deprecation -}}
18+
* {{ template "note" .}}
19+
{{ end -}}
20+
{{- end -}}
21+
22+
{{- if index .NotesByType "breaking-change" -}}
23+
BREAKING CHANGES:
24+
{{range index .NotesByType "breaking-change" -}}
25+
* {{ template "note" .}}
26+
{{ end -}}
27+
{{- end -}}
28+
29+
{{- $features := combineTypes .NotesByType.feature (index .NotesByType "new-resource" ) (index .NotesByType "new-datasource") (index .NotesByType "new-data-source") (index .NotesByType "new-function" ) (index .NotesByType "new-ephemeral" ) -}}
30+
{{- if $features }}
31+
FEATURES:
32+
{{range $features | sort -}}
33+
* {{ template "note" . }}
34+
{{ end -}}
35+
{{- end -}}
36+
37+
{{- $improvements := combineTypes .NotesByType.improvement .NotesByType.enhancement -}}
38+
{{- if $improvements }}
39+
IMPROVEMENTS:
40+
{{range $improvements | sort -}}
41+
* {{ template "note" . }}
42+
{{ end -}}
43+
{{- end -}}
44+
45+
{{- if .NotesByType.bug }}
46+
BUG FIXES:
47+
{{range .NotesByType.bug -}}
48+
* {{ template "note" . }}
49+
{{ end -}}
50+
{{- end -}}
Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
# Stage 1: Building Go dependencies
2-
FROM golang:1.23-bullseye AS builder
1+
FROM golang:1.24-bullseye AS builder
32

43
# Set working directory
54
WORKDIR /app
@@ -11,39 +10,25 @@ ADD "https://raw.githubusercontent.com/GoogleCloudPlatform/magic-modules/main/tp
1110
# Install the go dependencies
1211
RUN go mod download
1312

14-
# Stage 2: Creating the final imag
15-
FROM ruby:3.1-bullseye
16-
17-
# golang
18-
COPY --from=golang:1.23-bullseye /usr/local/go /usr/local/go
1913
ENV GOPATH /go
2014
ENV PATH /usr/local/go/bin:$PATH
2115
ENV PATH $GOPATH/bin:$PATH
2216
RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 1777 "$GOPATH"
2317
WORKDIR $GOPATH
2418

2519
# terraform binary used by tfv/tgc
26-
COPY --from=hashicorp/terraform:1.10.0 /bin/terraform /bin/terraform
20+
COPY --from=hashicorp/terraform:1.11.0 /bin/terraform /bin/terraform
2721

2822
SHELL ["/bin/bash", "-c"]
2923

3024
ENV GO111MODULE "on"
3125
ENV LC_ALL=C.UTF-8
3226
ENV LANG=C.UTF-8
3327

34-
RUN apt-get update && apt-get install -y --no-install-recommends git openssh-client apt-transport-https ca-certificates curl netbase wget gcc make jq libjq1
28+
RUN apt-get update && apt-get install -y --no-install-recommends git openssh-client apt-transport-https ca-certificates curl netbase wget gcc make jq libjq1 unzip zip
3529

3630
RUN git config --global user.name "Modular Magician"
3731
RUN git config --global user.email "[email protected]"
3832

3933
RUN go install golang.org/x/tools/cmd/goimports@d088b475e3360caabc032aaee1dc66351d4e729a
4034
RUN go install github.com/github/[email protected]+incompatible
41-
42-
ADD "https://raw.githubusercontent.com/GoogleCloudPlatform/magic-modules/refs/heads/legacy-ruby/mmv1/Gemfile" Gemfile
43-
ADD "https://raw.githubusercontent.com/GoogleCloudPlatform/magic-modules/refs/heads/legacy-ruby/mmv1/Gemfile.lock" Gemfile.lock
44-
RUN bundle install
45-
RUN rm Gemfile Gemfile.lock
46-
47-
# Copy Go dependencies from builder stage
48-
COPY --from=builder /go/pkg /go/pkg
49-

.ci/containers/go-plus/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Download go module cache for builds
2-
FROM golang:1.23-bullseye AS builder
2+
FROM golang:1.24-bullseye AS builder
33
ENV GOCACHE=/go/cache
44

55
RUN apt-get update && apt-get install -y unzip
@@ -12,7 +12,7 @@ WORKDIR /app1/magic-modules-main/.ci/magician
1212
RUN go build -o /dev/null .
1313

1414
# Stage 2: Creating the final image
15-
FROM golang:1.23-bullseye
15+
FROM golang:1.24-bullseye
1616
SHELL ["/bin/bash", "-c"]
1717
ENV GOCACHE=/go/cache
1818

@@ -21,15 +21,15 @@ COPY --from=builder /go/pkg/mod /go/pkg/mod
2121
COPY --from=builder /go/cache /go/cache
2222

2323
RUN apt-get update && \
24-
apt-get install -y git jq unzip parallel curl && \
24+
apt-get install -y git jq unzip zip parallel curl && \
2525
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \
2626
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \
2727
apt-get update -y && \
2828
apt-get install google-cloud-sdk -y && \
2929
apt-get clean && \
3030
rm -rf /var/lib/apt/lists/*
3131

32-
RUN wget https://releases.hashicorp.com/terraform/1.10.0/terraform_1.10.0_linux_amd64.zip \
33-
&& unzip terraform_1.10.0_linux_amd64.zip \
34-
&& rm terraform_1.10.0_linux_amd64.zip \
35-
&& mv ./terraform /bin/terraform
32+
RUN wget https://releases.hashicorp.com/terraform/1.11.0/terraform_1.11.0_linux_amd64.zip \
33+
&& unzip terraform_1.11.0_linux_amd64.zip \
34+
&& rm terraform_1.11.0_linux_amd64.zip \
35+
&& mv ./terraform /bin/terraform

.ci/gcb-contributor-membership-checker.yml

Lines changed: 0 additions & 78 deletions
This file was deleted.

.ci/gcb-push-downstream.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,18 @@ steps:
211211
args:
212212
- "check-cassettes"
213213

214+
- name: 'gcr.io/graphite-docker-images/go-plus'
215+
id: magician-delete-branches
216+
waitFor: ["vcr-merge"]
217+
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
218+
secretEnv:
219+
- "GITHUB_TOKEN_CLASSIC"
220+
args:
221+
- "delete-branches"
222+
- $COMMIT_SHA
223+
- $BRANCH_NAME
224+
225+
214226
# set extremely long 1 day timeout, in order to ensure that any jams / backlogs can be cleared.
215227
timeout: 86400s
216228
options:

.ci/gcb-test-failure-ticket.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
steps:
3+
- name: 'gcr.io/graphite-docker-images/go-plus'
4+
id: collect-nightly-test-status
5+
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
6+
secretEnv: ["TEAMCITY_TOKEN"]
7+
args:
8+
- 'collect-nightly-test-status'
9+
- $_CUSTOM_DATE
10+
- name: 'gcr.io/graphite-docker-images/go-plus'
11+
id: create-test-failure-ticket
12+
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
13+
secretEnv: ["GITHUB_TOKEN"]
14+
waitFor: ["collect-nightly-test-status"]
15+
args:
16+
- 'create-test-failure-ticket'
17+
- name: 'ubuntu'
18+
args: ['sleep', '120']
19+
- name: 'gcr.io/graphite-docker-images/go-plus'
20+
id: manage-test-failure-ticket
21+
entrypoint: '/workspace/.ci/scripts/go-plus/magician/exec.sh'
22+
secretEnv: ["GITHUB_TOKEN"]
23+
waitFor: ["create-test-failure-ticket"]
24+
args:
25+
- 'manage-test-failure-ticket'
26+
27+
timeout: 3600s
28+
options:
29+
machineType: 'N1_HIGHCPU_32'
30+
31+
logsBucket: 'gs://cloudbuild-test-failure-ticket-logs'
32+
availableSecrets:
33+
secretManager:
34+
- versionName: projects/673497134629/secrets/teamcity-token/versions/latest
35+
env: TEAMCITY_TOKEN
36+
- versionName: projects/673497134629/secrets/github-classic--repo-workflow/versions/latest
37+
env: GITHUB_TOKEN

.ci/gcb-vcr-nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ steps:
1313
- $BUILD_ID
1414

1515
# Long timeout to enable waiting on VCR test
16-
timeout: 20000s
16+
timeout: 40000s
1717
options:
1818
machineType: 'N1_HIGHCPU_32'
1919

.ci/infra/terraform/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Prerequisites:
1212
- A BeyondCorp subscription on the organization
1313

1414
After applying this configuration:
15-
- (Internal only) Enable stubbed calls for GKE MultiCloud resources
16-
- (Internal only) Verify ownership of `hashicorptest.com` for new service account
15+
- (Internal setup) Enable stubbed calls for GKE MultiCloud resources
16+
- (Internal setup) Verify ownership of `hashicorptest.com` for new service account
1717
- Enable Media CDN
1818
- Enable Access Boundary permissions
1919
- Enable BigQuery Table IAM conditions
@@ -73,3 +73,6 @@ Quotas that will need to be adjusted to support all tests:
7373
- compute.googleapis.com/c2_cpus (us-central1)
7474
- compute.googleapis.com/n2_cpus (us-central1) to 36+
7575
- VMware Engine standard 72 vCPUs nodes per region - southamerica-east1 to 21
76+
- logging.googleapis.com/log_buckets_count to 200
77+
- "Reasoning engine write requests per minute" for us-central1 to 20+
78+
- aiplatform.googleapis.com/in_use_customer_managed_encryption_keys to 5+

0 commit comments

Comments
 (0)