Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-18297

Make it easy to run a single script from the command line, for testing

    XMLWordPrintable

    Details

    • Story Points:
      1
    • Sprint:
      TSSW Sprint - May 28 - Jun 8
    • Team:
      Telescope and Site

      Description

      I would like a simple way to configure and run a single script from the command line and see its SAL outputs. This is intended to support development by making it easy to run the script without needing the script queue. I realized the need when writing the ATPtg/ATMCS integration script.

      It may be that Tiago Ribeiro's run_queue UI is enough, but I was hoping for something even simpler – something that didn't use the script queue at all.

      I initially thought of just expanding BaseScript.main but that is a non-starter because scripts are intentionally not on the $PATH. Instead I think it has to be a standalone script that accepts the name of the script to run. The interface and code can be based on Tiago Ribeiro's run_queue UI.

      To make this safe without colliding with a script queue I suggest that it fail if the script queue is alive.

        Attachments

          Activity

          Hide
          rowen Russell Owen added a comment - - edited
          Show
          rowen Russell Owen added a comment - - edited salobj pull request: https://github.com/lsst-ts/ts_salobj/pull/43 scriptqueue pull request: https://github.com/lsst-ts/ts_scriptqueue/pull/30
          Hide
          ccontaxis Christopher Contaxis [X] (Inactive) added a comment -

          Changes to salobj remotes for limiting late joiner data look good.

          New feature to run scripts from commandline look good.

           

          Show
          ccontaxis Christopher Contaxis [X] (Inactive) added a comment - Changes to salobj remotes for limiting late joiner data look good. New feature to run scripts from commandline look good.  
          Hide
          rowen Russell Owen added a comment -

          Merged ts_salobj to develop and master and tagged as v4.1.0
          Updated the served docs at https://staff.washington.edu/rowen/ts_salobj/index.html

          Merged ts_scriptqueue to develop (I'm holding off tagging for DM-20020 which is in review).
          Updated the served docs at https://staff.washington.edu/rowen/ts_scriptqueue/index.html

          Show
          rowen Russell Owen added a comment - Merged ts_salobj to develop and master and tagged as v4.1.0 Updated the served docs at https://staff.washington.edu/rowen/ts_salobj/index.html Merged ts_scriptqueue to develop (I'm holding off tagging for DM-20020 which is in review). Updated the served docs at https://staff.washington.edu/rowen/ts_scriptqueue/index.html

            People

            Assignee:
            rowen Russell Owen
            Reporter:
            rowen Russell Owen
            Reviewers:
            Christopher Contaxis [X] (Inactive)
            Watchers:
            Christopher Contaxis [X] (Inactive), Russell Owen, Tiago Ribeiro
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Jenkins

                No builds found.