Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • A athena
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 38
    • Issues 38
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • EIC
  • detectors
  • athena
  • Merge requests
  • !317

FileLoader.cpp: create hash and link

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Wouter Deconinck requested to merge wdconinc-master-patch-08125 into master Jan 17, 2022
  • Overview 9
  • Commits 18
  • Pipelines 0
  • Changes 1

Local resources (material map, calibration files, field maps) have:

  • fixed local file name (e.g. config/material-map.cbor),
  • source location URL (e.g. https://eicweb.phy.anl.gov/EIC/detectors/athena/uploads/4a4e7c8eb6089b634d762d112c89bd5d/material-maps.cbor with hex hash 8b21c068916be3c4),
  • optional cached local copy (e.g. /opt/detectors/resources/8b21c068916be3c4).

An updated source location URL should recreate local filename link (i.e. link should always be recreated if there is a chance it points to the wrong things).

A local configuration with custom files should no be modified (potentially limited by the fact that the local configuration should not use symlinks). No actual files should ever be deleted; at most links should be modified.

This will allow for clearer treatment of resources:

  • create hash from URL,
  • search for hash in cache,
    • if found: link hash to cache,
    • else: download from URL to hash,
  • link local file to hash.
Edited Jan 18, 2022 by Wouter Deconinck
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: wdconinc-master-patch-08125