Skip to content

Commit 21c1f72

Browse files
committed
generate: Generate CI/CD jobs and presubmits for new direct resource types
1 parent def6c00 commit 21c1f72

11 files changed

Lines changed: 330 additions & 2 deletions

.github/workflows/ci-presubmit.yaml

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/ci/periodics/e2e-service-ces

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
REPO_ROOT="$(git rev-parse --show-toplevel)"
23+
cd "${REPO_ROOT}"
24+
25+
export ONLY_TEST_APIGROUPS="ces.cnrm.cloud.google.com"
26+
export EXTRA_GCP_SERVICES="ces.googleapis.com"
27+
28+
dev/ci/periodics/_create_project_and_run_e2e
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
REPO_ROOT="$(git rev-parse --show-toplevel)"
23+
cd "${REPO_ROOT}"
24+
25+
export ONLY_TEST_APIGROUPS="migrationcenter.cnrm.cloud.google.com"
26+
export EXTRA_GCP_SERVICES="migrationcenter.googleapis.com"
27+
28+
dev/ci/periodics/_create_project_and_run_e2e
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
REPO_ROOT="$(git rev-parse --show-toplevel)"
23+
cd "${REPO_ROOT}"
24+
25+
export ONLY_TEST_APIGROUPS="rapidmigrationassessment.cnrm.cloud.google.com"
26+
export EXTRA_GCP_SERVICES="rapidmigrationassessment.googleapis.com"
27+
28+
dev/ci/periodics/_create_project_and_run_e2e
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
REPO_ROOT="$(git rev-parse --show-toplevel)"
23+
cd "${REPO_ROOT}"
24+
25+
export ONLY_TEST_APIGROUPS="sqladmin.cnrm.cloud.google.com"
26+
export EXTRA_GCP_SERVICES="sqladmin.googleapis.com"
27+
28+
dev/ci/periodics/_create_project_and_run_e2e

dev/ci/periodics/e2e-service-testing

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set -o pipefail
2222
REPO_ROOT="$(git rev-parse --show-toplevel)"
2323
cd "${REPO_ROOT}"
2424

25-
export ONLY_TEST_APIGROUPS=testing.cnrm.cloud.google.com
26-
export EXTRA_GCP_SERVICES=
25+
export ONLY_TEST_APIGROUPS="testing.cnrm.cloud.google.com"
26+
export EXTRA_GCP_SERVICES="testing.googleapis.com"
2727

2828
dev/ci/periodics/_create_project_and_run_e2e

dev/ci/presubmits/tests-e2e-fixtures

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ SKIP_TEST_APIGROUPS=(
5555
"binaryauthorization.cnrm.cloud.google.com"
5656
"blockchainnodeengine.cnrm.cloud.google.com"
5757
"certificatemanager.cnrm.cloud.google.com"
58+
"ces.cnrm.cloud.google.com"
5859
"cloudasset.cnrm.cloud.google.com"
5960
"cloudbuild.cnrm.cloud.google.com"
6061
"clouddeploy.cnrm.cloud.google.com"
@@ -112,6 +113,7 @@ SKIP_TEST_APIGROUPS=(
112113
"memcache.cnrm.cloud.google.com"
113114
"memorystore.cnrm.cloud.google.com"
114115
"metastore.cnrm.cloud.google.com"
116+
"migrationcenter.cnrm.cloud.google.com"
115117
"mlengine.cnrm.cloud.google.com"
116118
"monitoring.cnrm.cloud.google.com"
117119
"netapp.cnrm.cloud.google.com"
@@ -128,6 +130,7 @@ SKIP_TEST_APIGROUPS=(
128130
"privilegedaccessmanager.cnrm.cloud.google.com"
129131
"pubsub.cnrm.cloud.google.com"
130132
"pubsublite.cnrm.cloud.google.com"
133+
"rapidmigrationassessment.cnrm.cloud.google.com"
131134
"recaptchaenterprise.cnrm.cloud.google.com"
132135
"redis.cnrm.cloud.google.com"
133136
"resourcemanager.cnrm.cloud.google.com"
@@ -142,6 +145,7 @@ SKIP_TEST_APIGROUPS=(
142145
"spanner.cnrm.cloud.google.com"
143146
"speech.cnrm.cloud.google.com"
144147
"sql.cnrm.cloud.google.com"
148+
"sqladmin.cnrm.cloud.google.com"
145149
"storage.cnrm.cloud.google.com"
146150
"storagetransfer.cnrm.cloud.google.com"
147151
"tags.cnrm.cloud.google.com"
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
function on_error() {
23+
echo "<hint_for_agent>Run 'dev/ci/presubmits/$(basename "$0")' to fix.</hint_for_agent>"
24+
}
25+
trap on_error ERR
26+
27+
REPO_ROOT="$(git rev-parse --show-toplevel)"
28+
cd "${REPO_ROOT}"
29+
30+
export ONLY_TEST_APIGROUPS="ces.cnrm.cloud.google.com"
31+
32+
${REPO_ROOT}/dev/tasks/run-e2e
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
function on_error() {
23+
echo "<hint_for_agent>Run 'dev/ci/presubmits/$(basename "$0")' to fix.</hint_for_agent>"
24+
}
25+
trap on_error ERR
26+
27+
REPO_ROOT="$(git rev-parse --show-toplevel)"
28+
cd "${REPO_ROOT}"
29+
30+
export ONLY_TEST_APIGROUPS="migrationcenter.cnrm.cloud.google.com"
31+
32+
${REPO_ROOT}/dev/tasks/run-e2e
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
# Copyright 2025 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
# Generated by dev/tasks/generate-ci-cd-jobs. DO NOT EDIT.
17+
18+
set -o errexit
19+
set -o nounset
20+
set -o pipefail
21+
22+
function on_error() {
23+
echo "<hint_for_agent>Run 'dev/ci/presubmits/$(basename "$0")' to fix.</hint_for_agent>"
24+
}
25+
trap on_error ERR
26+
27+
REPO_ROOT="$(git rev-parse --show-toplevel)"
28+
cd "${REPO_ROOT}"
29+
30+
export ONLY_TEST_APIGROUPS="rapidmigrationassessment.cnrm.cloud.google.com"
31+
32+
${REPO_ROOT}/dev/tasks/run-e2e

0 commit comments

Comments
 (0)