Skip to content

Resolve "Allow arbitrary branch deployment for development."

Closes #52 (closed)

This MR adds a flag --develop which then allows use of unreleased branches for the toolchain installation.

❯ mpsd-software prepare develop
[11:36:38] ERROR    Couldnt find branch=releases/develop                                                                                                                                    filesystem_utils.py:136
                    Available branches are ['* develop', '24a-bookworm', '78-spack-unable-to-build-gcc-on-power-pc', 'HEAD -> origin/develop', 'develop', 'releases/23b', 'releases/23c',                          
                    'releases/dev-23a', 'test-mpcdf-compile', '']                                                                                                                                                  
Traceback (most recent call last):
  File "$HOME/micromamba/envs/mpsd-installer/bin/mpsd-software", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "$PROJECTS/mpsd-software-manager/src/mpsd_software_manager/mpsd_software.py", line 256, in main
    prepare_environment(args.release, root_dir, args.develop)
  File "$PROJECTS/mpsd-software-manager/src/mpsd_software_manager/cmds/prepare.py", line 78, in prepare_environment
    clone_repo(folders.repo_path, repo_url, branch=spe_branch)
  File "$PROJECTS/mpsd-software-manager/src/mpsd_software_manager/utils/filesystem_utils.py", line 137, in clone_repo
    raise RuntimeError(msg, branches_result)
RuntimeError: ("Couldnt find branch=releases/develop\nAvailable branches are ['* develop', '24a-bookworm', '78-spack-unable-to-build-gcc-on-power-pc', 'HEAD -> origin/develop', 'develop', 'releases/23b', 'releases/23c', 'releases/dev-23a', 'test-mpcdf-compile', '']", CompletedProcess(args=['git', 'branch', '-a'], returncode=0, stdout=b'* develop\n  remotes/origin/24a-bookworm\n  remotes/origin/78-spack-unable-to-build-gcc-on-power-pc\n  remotes/origin/HEAD -> origin/develop\n  remotes/origin/develop\n  remotes/origin/releases/23b\n  remotes/origin/releases/23c\n  remotes/origin/releases/dev-23a\n  remotes/origin/test-mpcdf-compile\n', stderr=b''))

❯ mpsd-software --develop prepare  develop
Release develop is prepared in $PROJECTS/mpsd-software-manager/develop
Edited by Ashwin Kumar Karnad

Merge request reports

Loading