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

MITLibraries / dspace-submission-composer / 12677602835
96%

Build:
DEFAULT BRANCH: main
Ran 08 Jan 2025 07:25PM UTC
Jobs 1
Files 11
Run time 4min
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

08 Jan 2025 07:24PM UTC coverage: 96.597% (+0.4%) from 96.226%
12677602835

push

github

web-flow
In 1103 reconcile cli command (#56)

* Refactor BaseWorkflow class and add CLI options

* Refactor BaseWorkflow to move init args to class attributes
* Add load and get_workflow class methods to BaseWorkflow class
* Add metadata_mapping property to BaseWorkflow class
* Add click options to main CLI command
* Add load method call and other basic functionality to main CLI command
* Add post_main_group_subcommand to cli.py
* Add TestBaseWorkflow class and TestSimpleCSV class to conftest.py

* Add reconcile CLI command

Why these changes are being introduced:
* A CLI command is needed to reconcile metadata against files in the specified S3 batch path.

How this addresses that need:
* Add reconcile CLI command and corresponding CLI tests
* Add build_bitstream_dict, match_bitstreams_to_item_identifiers, and
match_item_identifiers_to_bitstreams functions as well as corresponding unit tests
* Add test_metadata_mapping.json to fixtures directory

Side effects of this change:
* None

Relevant ticket(s):
* https://mitlibraries.atlassian.net/browse/IN-1128

* Update Pipfile.lock

* Updates based on discussion in #56

* Update formatting of click options
* Shift reconcile functionality to BaseWorkflow.reconcile_bitstreams_and_metadata method and add corresponding unit tests
* Add unit tests for BaseWorkflow's load and get_workflow methods
* Refactor get_workflow method to use subclasses
* Remove WORKFLOWS constant from config.py
* Add InvalidWorkflowNameError exception
* Replace setdefault call with defaultdict in build_bitstream_dict function
* Remove file type filtering from build_bitstream_dict function and remove related unit and CLI tests

* Updates based on further discussion in #56

* Shift build_bitstream_dict, match_bitstreams_to_item_identifiers, and match_item_identifiers_to_bitstreams to BaseWorkflow private methods

* More updates based on discussion in PR #56

* Rename reconcile-related variables for clar... (continued)

75 of 76 new or added lines in 4 files covered. (98.68%)

1 existing line in 1 file now uncovered.

369 of 382 relevant lines covered (96.6%)

0.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 12677602835.1 08 Jan 2025 07:25PM UTC 0
96.6
GitHub Action Run
Source Files on build 12677602835
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #12677602835
  • 791c6151 on github
  • Prev Build on main (#12602522762)
  • Next Build on main (#12774012547)
  • 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