From c75a7d5cb64d09e22c8c873908873e2dc18d2eed Mon Sep 17 00:00:00 2001 From: Sameer Shaik Date: Sat, 19 Oct 2024 16:33:21 +0530 Subject: [PATCH] Added py312 kokoro test configs --- test/ci/kokoro/linux/py312_json.cfg | 61 ++++++++++++++++++++++ test/ci/kokoro/linux/py312_xml.cfg | 45 ++++++++++++++++ test/ci/kokoro/macos/py312_json.cfg | 62 ++++++++++++++++++++++ test/ci/kokoro/macos/py312_xml.cfg | 46 +++++++++++++++++ test/ci/kokoro/windows/py312_json.cfg | 74 +++++++++++++++++++++++++++ test/ci/kokoro/windows/py312_xml.cfg | 58 +++++++++++++++++++++ 6 files changed, 346 insertions(+) create mode 100644 test/ci/kokoro/linux/py312_json.cfg create mode 100644 test/ci/kokoro/linux/py312_xml.cfg create mode 100644 test/ci/kokoro/macos/py312_json.cfg create mode 100644 test/ci/kokoro/macos/py312_xml.cfg create mode 100644 test/ci/kokoro/windows/py312_json.cfg create mode 100644 test/ci/kokoro/windows/py312_xml.cfg diff --git a/test/ci/kokoro/linux/py312_json.cfg b/test/ci/kokoro/linux/py312_json.cfg new file mode 100644 index 0000000000..49f54e9a11 --- /dev/null +++ b/test/ci/kokoro/linux/py312_json.cfg @@ -0,0 +1,61 @@ +# Format: //devtools/kokoro/config/proto/build.proto +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "/src/gsutil/test/ci/kokoro/run_integ_tests.sh" +timeout_mins: 60 + +# Get access keys from Keystore +# go/kokoro-keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 74008 + keyname: "gsutil_kokoro_service_key" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_refresh_token" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_client_id" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_client_secret" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_cert" + } + } +} + +# Environment variables to specify interpreter version. +# go/kokoro-env-vars +env_vars { + key: "PYMAJOR" + value: "3" +} + +env_vars { + key: "PYMINOR" + value: "12" +} + +env_vars { + key: "API" + value: "json" +} diff --git a/test/ci/kokoro/linux/py312_xml.cfg b/test/ci/kokoro/linux/py312_xml.cfg new file mode 100644 index 0000000000..4ddc42cc4f --- /dev/null +++ b/test/ci/kokoro/linux/py312_xml.cfg @@ -0,0 +1,45 @@ +# Format: //devtools/kokoro/config/proto/build.proto +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "/src/gsutil/test/ci/kokoro/run_integ_tests.sh" +timeout_mins: 60 + +# Get access keys from Keystore +# go/kokoro-keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 74008 + keyname: "gsutil_kokoro_service_key" + } + } +} + +# Environment variables to specify interpreter version. +# go/kokoro-env-vars +env_vars { + key: "PYMAJOR" + value: "3" +} + +env_vars { + key: "PYMINOR" + value: "12" +} + +env_vars { + key: "API" + value: "xml" +} diff --git a/test/ci/kokoro/macos/py312_json.cfg b/test/ci/kokoro/macos/py312_json.cfg new file mode 100644 index 0000000000..5461b5b38e --- /dev/null +++ b/test/ci/kokoro/macos/py312_json.cfg @@ -0,0 +1,62 @@ +# Format: //devtools/kokoro/config/proto/build.proto +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "/src/gsutil/test/ci/kokoro/run_integ_tests.sh" +timeout_mins: 60 + + +# Get access keys from Keystore +# go/kokoro-keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 74008 + keyname: "gsutil_kokoro_service_key" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_refresh_token" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_client_id" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_client_secret" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_cert" + } + } +} + +# Environment variables to specify interpreter version. +# go/kokoro-env-vars +env_vars { + key: "PYMAJOR" + value: "3" +} + +env_vars { + key: "PYMINOR" + value: "12" +} + +env_vars { + key: "API" + value: "json" +} diff --git a/test/ci/kokoro/macos/py312_xml.cfg b/test/ci/kokoro/macos/py312_xml.cfg new file mode 100644 index 0000000000..cea84971cd --- /dev/null +++ b/test/ci/kokoro/macos/py312_xml.cfg @@ -0,0 +1,46 @@ +# Format: //devtools/kokoro/config/proto/build.proto +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "/src/gsutil/test/ci/kokoro/run_integ_tests.sh" +timeout_mins: 60 + + +# Get access keys from Keystore +# go/kokoro-keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 74008 + keyname: "gsutil_kokoro_service_key" + } + } +} + +# Environment variables to specify interpreter version. +# go/kokoro-env-vars +env_vars { + key: "PYMAJOR" + value: "3" +} + +env_vars { + key: "PYMINOR" + value: "12" +} + +env_vars { + key: "API" + value: "xml" +} diff --git a/test/ci/kokoro/windows/py312_json.cfg b/test/ci/kokoro/windows/py312_json.cfg new file mode 100644 index 0000000000..bacc52b8b3 --- /dev/null +++ b/test/ci/kokoro/windows/py312_json.cfg @@ -0,0 +1,74 @@ +# Format: //devtools/kokoro/config/proto/build.proto +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "src/gsutil/test/ci/kokoro/windows/run_integ_tests.bat" +timeout_mins: 60 + + +# Get access keys from Keystore +# go/kokoro-keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 74008 + keyname: "gsutil_kokoro_service_key" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_refresh_token" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_client_id" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_account_client_secret" + } + keystore_resource { + keystore_config_id: 74008 + keyname: "mtls_test_cert" + } + } +} + +# Param doc: https://github.com/GoogleCloudPlatform/gsutil/blob/master/test/ci/kokoro/windows/run_integ_tests.ps1#L15 +build_params { + key: "GsutilRepoDir" + value: "C:\\src\\gsutil" +} + +# Environment variables to specify interpreter version. +# go/kokoro-env-vars +env_vars { + key: "PYMAJOR" + value: "3" +} + +env_vars { + key: "PYMINOR" + value: "12" +} + +env_vars { + key: "API" + value: "json" +} + +env_vars { + key: "BOTO_CONFIG" + value: "C:\\tmpfs\\src\\.boto" +} + diff --git a/test/ci/kokoro/windows/py312_xml.cfg b/test/ci/kokoro/windows/py312_xml.cfg new file mode 100644 index 0000000000..e5717f212f --- /dev/null +++ b/test/ci/kokoro/windows/py312_xml.cfg @@ -0,0 +1,58 @@ +# Format: //devtools/kokoro/config/proto/build.proto +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +build_file: "src/gsutil/test/ci/kokoro/windows/run_integ_tests.bat" +timeout_mins: 60 + + +# Get access keys from Keystore +# go/kokoro-keystore +before_action { + fetch_keystore { + keystore_resource { + keystore_config_id: 74008 + keyname: "gsutil_kokoro_service_key" + } + } +} + +# Param doc: https://github.com/GoogleCloudPlatform/gsutil/blob/master/test/ci/kokoro/windows/run_integ_tests.ps1#L15 +build_params { + key: "GsutilRepoDir" + value: "C:\\src\\gsutil" +} + +# Environment variables to specify interpreter version. +# go/kokoro-env-vars +env_vars { + key: "PYMAJOR" + value: "3" +} + +env_vars { + key: "PYMINOR" + value: "12" +} + +env_vars { + key: "API" + value: "xml" +} + +env_vars { + key: "BOTO_CONFIG" + value: "C:\\tmpfs\\src\\.boto" +} +