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

rero / rero-ils / 30899163511
91%

Build:
DEFAULT BRANCH: staging
Ran 04 Aug 2026 10:58AM UTC
Jobs 1
Files 612
Run time 2min
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

04 Aug 2026 10:05AM UTC coverage: 91.247% (-0.02%) from 91.262%
30899163511

push

github

rerowep
fix(entities): link MEF by identifier, not type

* replace.py: identifier alone now links contribution/subjects/
  genreForm entries to MEF; search falls back across every MEF family
  allowed for the field when the locally-declared type is wrong
* replace.py: contribution type mismatches are tracked in a new
  `type_mismatch` dict, no longer conflated with the `rero_only` retry
  cache, which was silently blocking later documents sharing the same
  identifier
* replace.py: document query now derives allowed entity types from
  `RERO_ILS_ENTITIES_TYPES_FIELDS`, so `bf:Work`-only subjects are no
  longer skipped from scanning
* sync.py: `sync_record` recursion is now capped to guard against a
  pathological MEF pid cycle; raises specific `RuntimeError`s instead
  of the bare `Exception` class
* utils.py: `get_mef_data_by_type` reports a clear "no result" error
  instead of a confusing IndexError-derived message
* proxy.py: `search()` no longer forwards cookies or arbitrary
  headers to the remote MEF server; deduplicated `_get_query_params`
  and removed a dead `_post_process_result_hit` override
* sync.py, replace.py: switched logging calls to lazy %-style
  formatting instead of f-strings
* cli.py: stopped reaching into a private method from outside the
  class
* Closes #4176.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>

87 of 113 new or added lines in 6 files covered. (76.99%)

1 existing line in 1 file now uncovered.

24278 of 26607 relevant lines covered (91.25%)

0.91 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
33.02
-4.22% rero_ils/modules/entities/remote_entities/cli.py
9
75.23
-0.57% rero_ils/modules/entities/remote_entities/sync.py
1
98.02
-0.06% rero_ils/modules/entities/remote_entities/proxy.py
1
97.96
4.11% rero_ils/modules/entities/remote_entities/replace.py

Coverage Regressions

Lines Coverage ∆ File
1
33.02
-4.22% rero_ils/modules/entities/remote_entities/cli.py
Jobs
ID Job ID Ran Files Coverage
1 30899163511.1 04 Aug 2026 10:58AM UTC 612
91.25
GitHub Action Run
Source Files on build 30899163511
  • Tree
  • List 612
  • Changed 8
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30899163511
  • 13e85b38 on github
  • Prev Build on staging (#30891869946)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc