From 02ec1b4fae04bac8c73eee16d0c7ae4f794fbb3e Mon Sep 17 00:00:00 2001 From: Sushmitha Venugopal <88627924+SushTP@users.noreply.github.com> Date: Tue, 10 Aug 2021 17:02:18 +0530 Subject: [PATCH 1/4] Add files via upload (#1) --- updatediscoveryartifacts.py | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 updatediscoveryartifacts.py diff --git a/updatediscoveryartifacts.py b/updatediscoveryartifacts.py new file mode 100644 index 0000000..b823bd7 --- /dev/null +++ b/updatediscoveryartifacts.py @@ -0,0 +1,81 @@ +# Copyright 2021 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 + +# https://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. + + +import pathlib +import shutil +import subprocess +import tempfile + +import describe +import changesummary + + +SCRIPTS_DIR = pathlib.Path(__file__).parent.resolve() +DISCOVERY_DOC_DIR = ( + SCRIPTS_DIR / ".." / "googleapiclient" / "discovery_cache" / "documents" +) +REFERENCE_DOC_DIR = SCRIPTS_DIR / ".." / "docs" / "dyn" +TEMP_DIR = SCRIPTS_DIR / "temp" + +# Clear discovery documents and reference documents directory +shutil.rmtree(DISCOVERY_DOC_DIR, ignore_errors=True) +shutil.rmtree(REFERENCE_DOC_DIR, ignore_errors=True) + +# Clear temporary directory +shutil.rmtree(TEMP_DIR, ignore_errors=True) + +# Check out a fresh copy +subprocess.call(["git", "checkout", DISCOVERY_DOC_DIR]) +subprocess.call(["git", "checkout", REFERENCE_DOC_DIR]) + +# Snapshot current discovery artifacts to a temporary directory +with tempfile.TemporaryDirectory() as current_discovery_doc_dir: + shutil.copytree(DISCOVERY_DOC_DIR, current_discovery_doc_dir, dirs_exist_ok=True) + + # Download discovery artifacts and generate documentation + describe.generate_all_api_documents() + + # Get a list of files changed using `git diff` + git_diff_output = subprocess.check_output( + [ + "git", + "diff", + "origin/master", + "--name-only", + "--", + DISCOVERY_DOC_DIR / "*.json", + REFERENCE_DOC_DIR / "*.html", + REFERENCE_DOC_DIR / "*.md", + ], + universal_newlines=True, + ) + + # Create lists of the changed files + all_changed_files = [ + pathlib.Path(file_name).name for file_name in git_diff_output.split("\n") + ] + json_changed_files = [file for file in all_changed_files if file.endswith(".json")] + + # Create temporary directory + pathlib.Path(TEMP_DIR).mkdir() + + # Analyze the changes in discovery artifacts using the changesummary module + changesummary.ChangeSummary( + DISCOVERY_DOC_DIR, current_discovery_doc_dir, TEMP_DIR, json_changed_files + ).detect_discovery_changes() + + # Write a list of the files changed to a file called `changed files` which will be used in the `createcommits.sh` script. + with open(TEMP_DIR / "changed_files", "w") as f: + f.writelines("\n".join(all_changed_files)) From b050351cd485e4a3a395675eb8b9cd6167398df6 Mon Sep 17 00:00:00 2001 From: Sushmitha Venugopal <88627924+SushTP@users.noreply.github.com> Date: Tue, 10 Aug 2021 19:47:17 +0530 Subject: [PATCH 2/4] Create TestResults.xml --- TestResults.xml | 1 + 1 file changed, 1 insertion(+) create mode 100644 TestResults.xml diff --git a/TestResults.xml b/TestResults.xml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/TestResults.xml @@ -0,0 +1 @@ + From d46fbfcef598a1a5b39adc10911173bd7675bff0 Mon Sep 17 00:00:00 2001 From: Sushmitha Venugopal <88627924+SushTP@users.noreply.github.com> Date: Tue, 16 Sep 2025 10:39:32 +0530 Subject: [PATCH 3/4] Update TestResults.xml #4 ewrwer --- TestResults.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/TestResults.xml b/TestResults.xml index 8b13789..e225de7 100644 --- a/TestResults.xml +++ b/TestResults.xml @@ -1 +1,6 @@ - +fnsf +sdf +sdf +sdf +sdf +sdfs From 18c7b92ac728761e31427b93a66db0eb54483b2f Mon Sep 17 00:00:00 2001 From: Sushmitha Venugopal <88627924+SushTP@users.noreply.github.com> Date: Thu, 23 Oct 2025 18:47:45 +0530 Subject: [PATCH 4/4] Create #176148 test new secret for CSP case --- #176148 test new secret for CSP case | 1 + 1 file changed, 1 insertion(+) create mode 100644 #176148 test new secret for CSP case diff --git a/#176148 test new secret for CSP case b/#176148 test new secret for CSP case new file mode 100644 index 0000000..5fe913c --- /dev/null +++ b/#176148 test new secret for CSP case @@ -0,0 +1 @@ +#176148 test new secret for CSP case