Docmaps-Project / docmaps

Extensible protocol for document history metadata exchange, to enable trustworthy, rapid, open science, by and for preprint science communities.
MIT License
15 stars 1 forks source link

ts-etl: Certain DOIs on Crossref break the graph-walking algorithm and produce infinite loop #90

Open ships opened 1 year ago

ships commented 1 year ago

Bug Report

Packages affected:

Expected behavior

When I generate a docmap for crossref DOI 10.31227/osf.io/q5dvr , i get a docmap.

Actual behavior

An infinite loop is begun and no docmap is created. Eventually we crash with an OOM.

Steps to reproduce

docmaps-etl item --source crossref-api 10.31227/osf.io/q5dvr

Additional information

Notably, this DOI has some interesting situations including loops. It is-preprint-of M, but M is-preprint-of M and has-preprint M as well. Unclear why these loops break the visited-ids logic but it should be easy to diagnose by stepping thru.