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

Enable Astropy download cache

    Details

    • Type: Story
    • Status: Done
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: sconsUtils
    • Labels:
      None
    • Templates:
    • Story Points:
      1
    • Sprint:
      Arch 2019-09-16
    • Team:
      Architecture

      Description

      In Jenkins HOME is not available to tests so the Astropy cache directory is not shared between processes. This leads to IERS table files being downloaded every single time a tests are run. Sometimes the download fails and that usually causes test failures that waste developer time. Forwarding HOME to the test environment would fix this but we are concerned that this may introduce side effects into the test environment. Astropy provides another mechanism via the XDG_CACHE_HOME environment variable.

      If this variable is not set we should set it to ~/.lsst/ and create an astropy directory for the cache. Do not forward XDG_CONFIG_HOME since that might affect tests using astropy.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tjenness Tim Jenness
                Reporter:
                gcomoretto Gabriele Comoretto
                Reviewers:
                Kian-Tat Lim
                Watchers:
                Gabriele Comoretto, Kian-Tat Lim, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel