Coder Social home page Coder Social logo

aws-archiver's People

Contributors

aguilarm-umd avatar dependabot[bot] avatar dsteelma-umd avatar jwestgard avatar peichman-umd avatar wallberg-umd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

umd-lib

aws-archiver's Issues

Improved exception handling

In order to run against large quantities of content, we need better exception handling, with custom exceptions for the errors that seem likely to occur (e.g. local file not found, etag mismatch, communication error).

Add "batch of batches" subcommand

Currently deposit can be carried out against a single asset or a batch of assets defined by a text file listing their md5 checksums and paths. The task here is to develop a "batch-deposit" subcommand that can be used to launch a series of deposits.

Requirements:

  1. Runs against a manifest containing the paths to the manifests of individual batches.
  2. In addition to the audit records recorded by the existing batch deposit subcommand, the tool should record summary results of each batch (number of assets successfully transferred, number of failures, total bytes transferred).

Ensure correct relative path calculation

The project is designed to preserve "original order" of files relative to the batch by creating an AWS keypath that matches the string representation of the directory path on the local filesystem. This is a neccessary requirement in cases where the files being archived represent a "package" of related files, and also helps prevent path collisions at deposit time. The batch manifest, however, normally contains the full local path to the file being archived.

Currently, the calculation of the path relative to the batch root relies on the user supplying the absolute local path to the batch root with the -r, --root option. It has been observed that the calculation of the relative path can go awry, causing the deposit to fail. Until a more reliable solution can be devised, a workaround is to run the script from the root of the batch, with the default option value ('.').

The task of this ticket is to ensure that the above calculation of relative paths is reliable and that potential errors are handled appropriately.

enhance accuracy of built-in help

The built-in help provided by argparse does not seem to categorize the command-line options correctly. Things that are required seem to be listed as optional. This could be because of the subcommand structure.

To see the problem, compare the built-in help text with the "corrected" summary version included in the README file. Particularly, one or the other of options -a or -m is required but the help text does not make this clear.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.