Uploaded image for project: 'Request For Comments'
  1. Request For Comments
  2. RFC-464

Remove untested database code from obs_sdss and obs_lsstSim

    XMLWordPrintable

    Details

    • Type: RFC
    • Status: Implemented
    • Resolution: Done
    • Component/s: DM
    • Labels:
      None

      Description

      In discussing implementation of RFC-449, it was noticed that obs_lsstSim and obs_sdss both import mysqlclient in python. The only reason for this is to support a class which can select images from a database based on a query. If we can remove the dependency on the python_mysqlclient package, the need for GnuTLS as a dependency on MacOS will go away, meaning we will not need to change the install process in any way as the DM stack dependence on mariadb will disappear.

      I believe it is a reasonable request for several reasons:
      1. This code is not used in any active pipelines, as far as I know.
      2. That code path is not tested under CI since the test is disabled if there is no database connection which is the case for all VMs running inside Jenkins.
      3. The mechanism for doing just this sort of data discovery is changing when the Gen3 data abstraction system lands (in the next few months).

      Classes to be removed are here, here, here and here.

        Attachments

          Issue Links

            Activity

            Hide
            ktl Kian-Tat Lim added a comment -

            It might be nice to keep this a little longer to ensure that Gen3 Butler produces the same results, but I would tend to agree that the countervailing support costs are excessive for the benefit derived.

            Show
            ktl Kian-Tat Lim added a comment - It might be nice to keep this a little longer to ensure that Gen3 Butler produces the same results, but I would tend to agree that the countervailing support costs are excessive for the benefit derived.
            Hide
            krughoff Simon Krughoff added a comment - - edited

            This is not going to happen before v15 comes out (I hope), so I suggest we just test against v15 if that's needed for the Gen3 effort.

            Show
            krughoff Simon Krughoff added a comment - - edited This is not going to happen before v15 comes out (I hope), so I suggest we just test against v15 if that's needed for the Gen3 effort.
            Hide
            Parejkoj John Parejko added a comment -

            +1

            Is this code designed to select images from our own databases, or from the SDSS data release databases? Because astroquery exists for the latter purpose. We shouldn't have any database code in the obs packages anyway.

            Show
            Parejkoj John Parejko added a comment - +1 Is this code designed to select images from our own databases, or from the SDSS data release databases? Because astroquery exists for the latter purpose. We shouldn't have any database code in the obs packages anyway.
            Hide
            rowen Russell Owen added a comment -

            +1

            If the code is not being used and not being properly tested then it should go. It's not sophisticated and will be easy to reproduce for the gen3 butler.

            Show
            rowen Russell Owen added a comment - +1 If the code is not being used and not being properly tested then it should go. It's not sophisticated and will be easy to reproduce for the gen3 butler.
            Hide
            krughoff Simon Krughoff added a comment - - edited

            Adopting with no dissent.

            Show
            krughoff Simon Krughoff added a comment - - edited Adopting with no dissent.

              People

              Assignee:
              krughoff Simon Krughoff
              Reporter:
              krughoff Simon Krughoff
              Watchers:
              John Parejko, John Swinbank, Kian-Tat Lim, Russell Owen, Simon Krughoff, Tim Jenness, Yusra AlSayyad
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Planned End:

                  Jenkins

                  No builds found.