Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge deployment scripts into one #548

Open
wants to merge 17 commits into
base: main
Choose a base branch
from

Conversation

noemifrisina
Copy link
Contributor

@noemifrisina noemifrisina commented Oct 2, 2024

One script to deploy them all. Closes #532

To test:

  • Run test deployment and check that it complete without errors.
  • Check docs are make sense.

Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.12%. Comparing base (22b1ea6) to head (94f6f98).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #548   +/-   ##
=======================================
  Coverage   78.12%   78.12%           
=======================================
  Files          93       93           
  Lines        6799     6799           
=======================================
  Hits         5312     5312           
  Misses       1487     1487           
Components Coverage Δ
i24 SSX 57.12% <ø> (ø)
hyperion 96.23% <ø> (ø)
other 94.79% <ø> (ø)

@noemifrisina noemifrisina marked this pull request as ready for review October 2, 2024 16:25
with Popen(
path_to_create_venv_script, stdout=PIPE, bufsize=1, universal_newlines=True
) as p:
def run_process_and_print_output(proc_to_run):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should probably capture stderr here as well and print it

"-nc",
"--no-control",
action="store_false",
help="Create environment from the control machine.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is confusingly worded! Can it be changed to something like "If running from the control machine use this to create the venv directly and not via ssh"

)

if hyperion_repo.name != "hyperion":
raise ValueError("This function should only be used with the hyperion repo")
if mx_repo.name != "mx-bluesky":
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why would the repo name ever not be mx-bluesky given we just constructed it?

# If on beamline I24 also deploy the screens to run ssx collections
if beamline == "i24":
print("Setting up edm screens for serial collections on I24.")
run_process_and_print_output("./utility_scripts/deploy/deploy_edm_for_ssx.sh")

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be a top-level function please

@rtuck99
Copy link
Contributor

rtuck99 commented Oct 16, 2024

I was going to add lots of comments about the documentation but instead I raised a separate GH issue #578


which will create the beamline deployment (eg. I24) in the specified test directory ``/your-path/mxbluesky_release_test``.

python ./deploy/deploy_mx_bluesky.py i03 --dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utility_scripts/deploy/deploy_mx_bluesky.py


which will create the beamline deployment of the new release in ``/scratch/30day_tmp/mxbluesky_release_test``.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mx-bluesky_release_test

Copy link
Contributor

@rtuck99 rtuck99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with above minor suggested changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Have only one deployment script
2 participants