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

MITLibraries / dspace-submission-composer / 16055691110
95%
main: 96%

Build:
Build:
LAST BUILD BRANCH: IN-1555-migrate-to-uv
DEFAULT BRANCH: main
Ran 03 Jul 2025 04:24PM UTC
Jobs 1
Files 22
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

03 Jul 2025 04:23PM UTC coverage: 95.42% (-0.6%) from 96.009%
16055691110

push

github

web-flow
IN-1317 Update submit CLI command to use DynamoDB (#181)

* IN-1317 Update submit CLI command to use DynamoDB

Why these changes are being introduced:
* The submit CLI command and the Workflow methods it calls need to be updated to use DynamoDB

How this addresses that need:
* Remove SUBMIT_MAX_RETRIES_REACHED from ItemSubmissionStatus and rename INGEST_MAX_RETRIES_REACHED > MAX_RETRIES_REACHED
* Update Workflow.submit_items to accept a run_date param
* Add retry_threshold property to Workflow class
* Add allow_submission and write_submit_results_to_dynamodb to Workflow class and corresponding unit tests

Side effects of this change:
* None

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

* Updates based on discussion in PR # 181

* Refactor run_date as a Workflow instance attribute and remove run_date args from methods
* Add RETRY_THRESHOLD as Config property sourced from env var and update README.md
* Refactor submit_items method to directly update DynamoDB
* Add skipped count to submission_summary
* Refactor allow_submission method to accept already created ItemSubmissionDB instance and to use match/case pattern
* Remove write_submit_results_to_dynamodb method and corresponding unit test
* Add new unit tests and update existing unit tests to account for updated functionality

* More updates based on discussion in PR #181

* Create ITEM_SUBMISSION_LOG_STR and replace method logging templates
* Update description of RETRY_THRESHOLD in README.md
* Update unit test names for consistency and streamline allow_submission unit tests

42 of 49 new or added lines in 4 files covered. (85.71%)

2 existing lines in 1 file now uncovered.

875 of 917 relevant lines covered (95.42%)

0.95 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.78
-1.08% dsc/config.py
6
93.58
-1.55% dsc/workflows/base/__init__.py

Uncovered Existing Lines

Lines Coverage ∆ File
2
93.58
-1.55% dsc/workflows/base/__init__.py
Jobs
ID Job ID Ran Files Coverage
1 16055691110.1 03 Jul 2025 04:24PM UTC 22
95.42
GitHub Action Run
Source Files on build 16055691110
  • Tree
  • List 22
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16055691110
  • ba4c95f2 on github
  • Prev Build on support-for-dynamodb (#15932667975)
  • Next Build on support-for-dynamodb (#16122559510)
  • 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