fix: commit changes to ioc_overview on new service add
Deploy bin / deploy (push) Successful in 1s
Deploy agebd python package / deploy (push) Successful in 1s

This commit is contained in:
Benjamin Labrecque
2026-07-08 14:50:08 +02:00
parent af2ed89667
commit 642fe793fc
4 changed files with 6 additions and 2 deletions
+3
View File
@@ -12,6 +12,7 @@ def git_push_changes(
registry_file_rel_path: str,
master_hla_names_rel_path: str,
master_ioc_subs_rel_path: str,
iocs_overview_rel_path: str,
commit_msg: str,
):
"""
@@ -24,6 +25,7 @@ def git_push_changes(
f"{registry_file_rel_path}, "
f"{master_hla_names_rel_path}, "
f"{master_ioc_subs_rel_path}..."
f"{iocs_overview_rel_path}..."
)
repo.index.add(
[
@@ -31,6 +33,7 @@ def git_push_changes(
registry_file_rel_path,
master_hla_names_rel_path,
master_ioc_subs_rel_path,
iocs_overview_rel_path,
]
)
+1 -1
View File
@@ -88,7 +88,7 @@ class ServiceRegistry(BaseModel):
def write_to_config(self) -> None:
with open(self.config_path, "w") as f:
yaml.safe_dump(self.model_dump(), f)
yaml.safe_dump(self.model_dump(), f, sort_keys=False)
class MasterHLANames(BaseModel):
+1
View File
@@ -79,6 +79,7 @@ class ServiceCreator:
# TODO: maybe assert/get correct master service dirname from registry
master_hla_names_rel_path="services/000-master/current/app/config/hla_names.yml",
master_ioc_subs_rel_path="services/000-master/current/ioc/AGEBD-CPCL-MASTER_main.subs",
iocs_overview_rel_path="docs/ioc/ioc_overview.md",
commit_msg=f"feature: add new service {service.name_lower}",
)
switch_branch(repo, original_branch)
+1 -1
View File
@@ -2,4 +2,4 @@
| IOC NAME | Port | Description |
|---|---|---|
| AGEBD-CPCL-MASTER | 50011 | IOC providing PVs for the service master application IOC enabling to monitor the health status of BD High Level Application Services with the alarm handler ALH |
| AGEBD-CPCL-MASTER | 50011 | IOC providing PVs for the service master application IOC enabling to monitor the health status of BD High Level Application Services with the alarm handler ALH |