Skip to content

Commit 485ae6f

Browse files
authored
chore: remove .Owlbot-hermetic.yaml (#13600)
1 parent a542503 commit 485ae6f

249 files changed

Lines changed: 4 additions & 9164 deletions

File tree

Some content is hidden

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

.github/release-note-generation/split_release_note.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -63,29 +63,16 @@ def detect_modules(root_directory: Path):
6363

6464
module_path = repo_metadata_path.parent
6565
module_pom_xml = module_path / 'pom.xml'
66-
owlbot_yaml_path = module_path/ '.OwlBot-hermetic.yaml'
6766
if not module_pom_xml.exists():
6867
continue
6968
tree = ET.parse(module_pom_xml)
7069
root = tree.getroot()
7170
version = root.find('mvn:version', POM_NAMESPACES).text
7271
api_name = None
73-
if owlbot_yaml_path.exists():
74-
# If OwlBot configuration file exists (most cases), it's the better
75-
# source to get the OwlBot-generated pull request title prefix than
76-
# the repo-metadata.json
77-
with open(owlbot_yaml_path, 'r') as file:
78-
owlbot_yaml_content = file.read()
79-
match = re.search(r'api-name: (.+)', owlbot_yaml_content)
80-
if match:
81-
api_name = match.group(1)
82-
83-
if not api_name:
84-
# Fallback to repo-metadata.json (e.g. for vertexai or Spanner transitional state)
85-
if repo_metadata_path.exists():
86-
with open(repo_metadata_path, 'r') as file:
87-
repo_metadata = json.load(file)
88-
api_name = repo_metadata.get('api_shortname')
72+
if repo_metadata_path.exists():
73+
with open(repo_metadata_path, 'r') as file:
74+
repo_metadata = json.load(file)
75+
api_name = repo_metadata.get('api_shortname')
8976

9077
if api_name:
9178
modules.append(LibraryModule(module_path, api_name,
@@ -94,7 +81,6 @@ def detect_modules(root_directory: Path):
9481
else:
9582
raise Exception(f'Could not determine api-name for {repo_metadata_path}')
9683

97-
9884
return modules
9985

10086

java-accessapproval/.OwlBot-hermetic.yaml

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

java-accesscontextmanager/.OwlBot-hermetic.yaml

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

java-admanager/.OwlBot-hermetic.yaml

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

java-advisorynotifications/.OwlBot-hermetic.yaml

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

java-aiplatform/.OwlBot-hermetic.yaml

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

java-alloydb-connectors/.OwlBot-hermetic.yaml

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

java-alloydb/.OwlBot-hermetic.yaml

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

java-analytics-admin/.OwlBot-hermetic.yaml

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

java-analytics-data/.OwlBot-hermetic.yaml

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

0 commit comments

Comments
 (0)