• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MITLibraries / archival-packaging-tool / 14889912549
72%
main: 96%

Build:
Build:
LAST BUILD BRANCH: dependabot/pip/boto3-1.40.62
DEFAULT BRANCH: main
Ran 07 May 2025 05:49PM UTC
Jobs 1
Files 4
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

07 May 2025 05:45PM UTC coverage: 71.978% (+18.1%) from 53.846%
14889912549

Pull #10

github

ghukill
More explicit with download and upload methods and args

Why these changes are being introduced:

Some PR feedback shared that it was a bit confusing how the utility
function stream_file_transfer() was capable of reading and writing
from a "URI" which could be an S3 object or a local filesystem path,
while the download and upload methods on the BagitArchive class seemed
more opinionated in what type of location was getting used.

There is some tension where a URI feels more accurate for the more
input/output agnostic utility function stream_file_transfer(), but
the methods are fairly opinionated whether things are coming from
S3 or not.

How this addresses that need:

Attempted to keep some flexibility in the utility function while making
the methods more opinionated by reworking some method names and arguments:

- upload_file() renamed to upload_bag_to_s3() which is quite literally
the only way it's used

- arguments for download_file() and upload_bag_to_s3() indicate if
they are "remote URIs" or some kind of "local path" to the degree possible

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1214
Pull Request #10: In 1214 core BagitArchive class

96 of 117 new or added lines in 2 files covered. (82.05%)

131 of 182 relevant lines covered (71.98%)

0.72 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
6
93.75
apt/bagit_archive.py
15
28.57
apt/utils.py
Jobs
ID Job ID Ran Files Coverage
1 14889912549.1 07 May 2025 05:49PM UTC 4
71.98
GitHub Action Run
Source Files on build 14889912549
  • Tree
  • List 4
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #14889912549
  • Pull Request #10
  • PR Base - main (#14803324013)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc