Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Release notes for the AD Build System (Software Factory)

## Releases:
* tag:1.2.1 7-Apr-2026 P. Nisperos (pnispero)
* Fix pydm subsystem name bug

* tag:1.2.0 30-Mar-2026 P. Nisperos (pnispero)
* Refactor configuration for more transparency. And refactored deployment controller to a more simpler generic deployment that most types of apps can follow. Fixed bugs with deployment controller
* Removed deploymentType, added in playbook to pass to deployment, every deployment through CLI is now polled as well like IOCs for easier to track progress, and should work for other types of deployments
Expand Down
2 changes: 1 addition & 1 deletion bs_cli/adbs_cli/entry_point_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def deploy(component: str, facility: str, test: bool, ioc: str, tag: str, list:

# Set subsystem for pydm
if (deployment_type == 'pydm'):
subsystem = deployment_request.component.name.replace("pydm-", "") # Remove "pydm-"
subsystem = deployment_request.component.name.replace("pydm-", "").replace("-displays", "") # Remove "pydm-" and "-displays"
playbook_args_dict["subsystem"] = subsystem

# 8) Send deployment request to deployment controller
Expand Down
Binary file removed bs_cli/dist/adbs_cli-1.2.0.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added bs_cli/dist/adbs_cli-1.2.1.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion bs_cli/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Avoided using pyproject.toml, becuase can't get an editable version installed (pip install -e .)
setup(
name='adbs_cli',
version='1.2.0',
version='1.2.1',
description="Command line interface for the accelerator directorate build system (software factory)",
author="Patrick Nisperos, Jerry Katzung, Claudio Bisegni",
author_email="pnispero@slac.stanford.edu, katzung@slac.stanford.edu, bisegni@slac.stanford.edu",
Expand Down
11 changes: 7 additions & 4 deletions deploy_controller/deployment_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1085,16 +1085,19 @@ def run_generic_deployment(deploy_request: DeployDict, temp_dir: str, task: Depl
Handles pydm, HLA, TOOLS, and any other app type without IOC or container-specific logic."""
logging.info(f"Generic deployment request: {deploy_request}")

# Default subsystem for pydm apps if not provided
if 'pydm_module' in deploy_request.playbook and not deploy_request.subsystem:
deploy_request.subsystem = deploy_request.component_name.replace("pydm-", "").replace("-displays", "")

# Derive app_type for the deployment DB from the playbook path
if 'pydm_module' in deploy_request.playbook:
app_type = 'pydm'
else:
app_type = deploy_request.playbook.split('/')[0] # e.g. 'hla_module' -> 'hla_module'

# Default subsystem for pydm apps if not provided
if app_type == 'pydm':
if not deploy_request.subsystem:
deploy_request.subsystem = deploy_request.component_name.replace("pydm-", "").replace("-displays", "")
else:
deploy_request.subsystem = deploy_request.subsystem.replace("pydm-", "").replace("-displays", "")

task.update_progress("Downloading release", 20)
if not download_release(deploy_request.component_name, deploy_request.tag, temp_dir, all_os=False, extract_tarball=True):
raise ValueError(f"Failed to download release for {deploy_request.component_name} tag {deploy_request.tag}")
Expand Down