Towards Long-Term and Archivable Reproducibility

Towards Long-Term and Archivable Reproducibility

COMPUTING IN SCIENCE AND ENGINEERING, VOL. X, NO. X, MM YYYY 1 Towards Long-term and Archivable Reproducibility Mohammad Akhlaghi, Ra´ul Infante-Sainz, Boudewijn F. Roukema, Mohammadreza Khellat, David Valls-Gabaud, Roberto Baena-Gall´e Abstract—Analysis pipelines commonly use high-level tech- as the length of time that a project remains functional after nologies that are popular when created, but are unlikely to be its creation. Functionality is defined as human readability readable, executable, or sustainable in the long term. A set of of the source and its execution possibility (when necessary). criteria is introduced to address this problem: Completeness (no execution requirement beyond a minimal Unix-like operating Many usage contexts of a project do not involve execution: system, no administrator privileges, no network connection, for example, checking the configuration parameter of a single and storage primarily in plain text); modular design; minimal step of the analysis to re-use in another project, or checking complexity; scalability; verifiable inputs and outputs; version the version of used software, or the source of the input data. control; linking analysis with narrative; and free software. As Extracting these from execution outputs is not always possible. a proof of concept, we introduce “Maneage” (Managing data lineage), enabling cheap archiving, provenance extraction, and A basic review of the longevity of commonly used tools is peer verification that been tested in several research publications. provided here (for a more comprehensive review, please see We show that longevity is a realistic requirement that does not appendices A and B). sacrifice immediate or short-term reproducibility. The caveats To isolate the environment, VMs have sometimes been (with proposed solutions) are then discussed and we conclude used, e.g., in SHARE (awarded second prize in the Elsevier with the benefits for the various stakeholders. This paper is itself written with Maneage (project commit eeff5de). Executable Paper Grand Challenge of 2011, discontinued in 2019). However, containers (e.g., Docker or Singularity) are Appendices — Two comprehensive appendices that review the currently the most widely-used solution. We will focus on longevity of existing solutions; available after main body of paper Docker here because it is currently the most common. (Appendices A and B). It is hypothetically possible to precisely identify the used Reproducibility — All products in zenodo.4291207, Git history Docker “images” with their checksums (or “digest”) to re- of source at gitlab.com/makhlaghi/maneage-paper, which is also create an identical OS image later. However, that is rarely archived in SoftwareHeritage. done. Usually images are imported with operating system (OS) Index Terms—Data Lineage, Provenance, Reproducibility, Sci- names; e.g., [3] uses ‘FROM ubuntu:16.04’. The extracted entific Pipelines, Workflows tarball (from https://partner-images.canonical.com/core/xenial) is updated almost monthly, and only the most recent five are I. INTRODUCTION archived there. Hence, if the image is built in different months, Reproducible research has been discussed in the sciences it will contain different OS components. In the year 2024, for at least 30 years [1], [2]. Many reproducible workflow when this version’s long-term support (LTS) expires (if not solutions (hereafter, “solutions”) have been proposed that earlier, like CentOS 8 which will terminate 8 years early), the mostly rely on the common technology of the day, starting image will not be available at the expected URL. with Make and Matlab libraries in the 1990s, Java in the 2000s, Generally, pre-built binary files (like Docker images) are and mostly shifting to Python during the last decade. large and expensive to maintain and archive. Because of However, these technologies develop fast, e.g., code written this, in October 2020 Docker Hub (where many workflows arXiv:2006.03018v2 [cs.DL] 5 Jan 2021 in Python 2 (which is no longer officially maintained) often are archived) announced that inactive images (more than 6 cannot run with Python 3. The cost of staying up to date within months) will be deleted in free accounts from mid 2021. Fur- this rapidly-evolving landscape is high. Scientific projects, thermore, Docker requires root permissions, and only supports in particular, suffer the most: scientists have to focus on recent (LTS) versions of the host kernel. Hence older Docker their own research domain, but to some degree, they need images may not be executable (their longevity is determined to understand the technology of their tools because it deter- by the host kernel, typically a decade). mines their results and interpretations. Decades later, scientists Once the host OS is ready, PMs are used to install the are still held accountable for their results and therefore the software or environment. Usually the OS’s PM, such as ‘apt’ evolving technology landscape creates generational gaps in or ‘yum’, is used first and higher-level software are built the scientific community, preventing previous generations from with generic PMs. The former has the same longevity as the sharing valuable experience. OS, while some of the latter (such as Conda and Spack) are written in high-level languages like Python, so the PM II. LONGEVITY OF EXISTING TOOLS itself depends on the host’s Python installation with a typical longevity of a few years. Nix and GNU Guix produce bit-wise Reproducibility is defined as “obtaining consistent results identical programs with considerably better longevity; that of using the same input data; computational steps, methods, and their supported CPU architectures. However, they need root code; and conditions of analysis” [2]. Longevity is defined permissions and are primarily targeted at the Linux kernel. Manuscript received MM DD, YYYY; revised MM DD, YYYY. Generally, in all the package managers, the exact version of COMPUTING IN SCIENCE AND ENGINEERING, VOL. X, NO. X, MM YYYY 2 each software (and its dependencies) is not precisely identified more Findable, Accessible, Interoperable, and Reusable (the by default, although an advanced user can indeed fix them. FAIR principles). Simply archiving a project workflow in a Unless precise version identifiers of every software package repository after the project is finished is, on its own, insuf- are stored by project authors, a third-party PM will use the ficient, and maintaining it by repository staff is often either most recent version. Furthermore, because third-party PMs practically unfeasible or unscalable. We argue and propose introduce their own language, framework, and version history that workflows satisfying the following criteria can not only (the PM itself may evolve) and are maintained by an external improve researcher flexibility during a research project, but team, they increase a project’s complexity. can also increase the FAIRness of the deliverables for future With the software environment built, job management is researchers: the next component of a workflow. Visual/GUI workflow Criterion 1: Completeness. A project that is complete tools like Apache Taverna, GenePattern (deprecated), Kepler (self-contained) has the following properties. (1) No execution or VisTrails (deprecated), which were mostly introduced in requirements apart from a minimal Unix-like operating system. the 2000s and used Java or Python 2 encourage modularity Fewer explicit execution requirements would mean larger and robust job management. However, a GUI environment execution possibility and consequently longer longevity. (2) is tailored to specific applications and is hard to generalize, Primarily stored as plain text (encoded in ASCII/Unicode), not while being hard to reproduce once the required Java Virtual needing specialized software to open, parse, or execute. (3) No Machine (JVM) is deprecated. These tools’ data formats are impact on the host OS libraries, programs, and environment complex (designed for computers to read) and hard to read by variables. (4) No root privileges to run (during development humans without the GUI. The more recent solutions (mostly or post-publication). (5) Builds its own controlled software non-GUI, written in Python) leave this to the authors of the with independent environment variables. (6) Can run locally project. Designing a robust project needs to be encouraged and (without an internet connection). (7) Contains the full project’s facilitated because scientists (who are not usually trained in analysis, visualization and narrative: including instructions project or data management) will rarely apply best practices. to automatically access/download raw inputs, build necessary This includes automatic verification, which is possible in many software, do the analysis, produce final data products and final solutions, but is rarely practiced. Besides non-reproducibility, published report with figures as output, e.g., PDF or HTML. weak project management leads to many inefficiencies in (8) It can run automatically, without human interaction. project cost and/or scientific accuracy (reusing, expanding, or Criterion 2: Modularity. A modular project enables and validating will be expensive). encourages independent modules with well-defined inputs/out- Finally, to blend narrative and analysis, computational note- puts and minimal side effects. In terms of file management, books [4], such as Jupyter, are currently gaining popularity. a modular project will only contain the hand-written project However, because of their complex dependency trees,

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    25 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us