Skip to content

Conversation

@dbernstein
Copy link
Contributor

@dbernstein dbernstein commented Oct 22, 2025

…ugging.

Description

Having the collection name in import log messages is helpful for parsing logs.

Motivation and Context

How Has This Been Tested?

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@dbernstein dbernstein force-pushed the improve-logging-for-opds-importers branch from bbbf56c to 5844be0 Compare October 23, 2025 17:04
@codecov
Copy link

codecov bot commented Oct 23, 2025

Codecov Report

❌ Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 92.66%. Comparing base (782646b) to head (b4ab5aa).

Files with missing lines Patch % Lines
src/palace/manager/celery/tasks/opds_odl.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2829   +/-   ##
=======================================
  Coverage   92.66%   92.66%           
=======================================
  Files         452      452           
  Lines       42361    42361           
  Branches     5921     5921           
=======================================
  Hits        39255    39255           
  Misses       2026     2026           
  Partials     1080     1080           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dbernstein dbernstein marked this pull request as ready for review October 23, 2025 17:26
@dbernstein dbernstein requested a review from a team October 27, 2025 20:01
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. One minor formatting suggestion below.

# 4. Make sure that the failure is covered
assert (
"Failed to import publication: urn:isbn:9781234567897 (None) - Error validating publication: 2 validation errors"
f"Failed to import publication: urn:isbn:9781234567897 (None) for collection '{collection.name}' (id={collection.id}) - Error validating publication: 2 validation errors"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor: Maybe split the string on this one across a few lines for readability?

@dbernstein dbernstein force-pushed the improve-logging-for-opds-importers branch from 5844be0 to b4ab5aa Compare October 30, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants