jabref icon indicating copy to clipboard operation
jabref copied to clipboard

Fetcher tests failing

Open tobiasdiez opened this issue 6 years ago • 24 comments

Some of the fetcher tests are failing (ISBN, Inspire, ...) https://github.com/JabRef/jabref/actions?query=workflow%3A%22Fetcher+Tests%22

tobiasdiez avatar Apr 28 '20 07:04 tobiasdiez

  • Grobid is failing due to Connection refused
  • IEEE is failing due to API key probably
  • MrDLibFetcherTest Gateway Timeout
  • AstrophysicsDataSystemTest (needs ne API ?=>https://github.com/adsabs/adsabs-dev-api)

Siedlerchr avatar Jun 06 '20 11:06 Siedlerchr

API keys: Howto for getting a sandbox key for developers

ADs-Fetcher: This is the PR switchting to the new API, isn't it? --> https://github.com/JabRef/jabref/pull/5501

koppor avatar Jun 09 '20 06:06 koppor

Just got mail that the INSPIRE has now an official API: https://github.com/inspirehep/rest-api-doc

Siedlerchr avatar Jun 10 '20 09:06 Siedlerchr

grafik

https://github.com/JabRef/jabref/runs/794938868

koppor avatar Jun 23 '20 06:06 koppor

Springerlink is giving m,e 401 locally when I debug

Siedlerchr avatar Jul 27 '20 16:07 Siedlerchr

@DominikVoigt Can you confirm for SpringerLink? 😅

koppor avatar Jul 27 '20 16:07 koppor

If I substitute the API key that is hardcoded into the SpringerLink fetcher with my own API key all tests pass.

DominikVoigt avatar Jul 27 '20 17:07 DominikVoigt

Springer mailed us on 2020-04-29:

Dear User,

Thank you for using Springer Nature APIs! While we are most pleased at your interest, we see traffic that is very high and well over the limit of 300 calls/min and 5000/day. The limit is 300 hits/min and 5000/day. Can you please adjust your code to stay within these limits? Please advise/confirm so we may restore service.

Sincerely, SpringerNature API Team

Internal stats show "On November 28, your application called the API more than 13,000 times."

koppor avatar Aug 02 '20 09:08 koppor

State as of 2020-08-02

Source: https://github.com/JabRef/jabref/runs/937189942

  • Grobid: java.net.ConnectException: Connection timed out
  • IEEE: Results differ
  • CollectionOfComputerScienceBibliographiesFetcher: Assertion error
  • LibraryOfCongressTest: Results differ
  • CiteSeerTest: no answer
  • DoiFetcherTest: Results differ
  • AstrophysicsDataSystemTest: Results differ
  • Springer: @DisabledOnCIServer("Disable on CI Server to not hit the API call limit")

koppor avatar Aug 02 '20 11:08 koppor

We should add the Springer key to the build secrets as well

Siedlerchr avatar Aug 02 '20 15:08 Siedlerchr

I will aquire a sepearate key for Springer and enable Springer tests in a separate PR.

koppor avatar Aug 02 '20 16:08 koppor

Rate limit of IEEE

  • 10 calls / second
  • 200 calls / day

Source: Key agreement

koppor avatar Aug 02 '20 18:08 koppor

We should execute the fetcher tests maybe once a month on CI and not on every PR

Siedlerchr avatar Aug 02 '20 18:08 Siedlerchr

Since a few months, we DO NOT execute the fetcher tests on each PR.

We currently the fetcher tests, when

  • something in the fetcher code changed
  • each wednesday

See https://github.com/JabRef/jabref/blob/master/.github/workflows/tests-fetchers.yml

koppor avatar Aug 02 '20 19:08 koppor

The discussion on this move can be found at https://github.com/JabRef/jabref/pull/5807.

koppor avatar Aug 02 '20 19:08 koppor

  • IEEE returns a bad URL: https:/ieeeexplore… (Note: only one slash). Problem seems to be serverside
  • LibraryOfCongress returns bad year ( year = {c201} instead of year = {2011} )
  • The JabRef BibEntry builder seems to automatically add an url-field, which is not included in the returned result from the server. Will do some research on this.
  • ADS seems to be identical on first sight. Not sure why failing, maybe something I overlooked... Will also do some research on this.

calixtus avatar Aug 07 '20 22:08 calixtus

citesser => journaltitle instead of journal

Siedlerchr avatar Aug 07 '20 22:08 Siedlerchr

@DominikVoigt added a conversion layer at https://github.com/JabRef/jabref/pull/6687. Thus, it should not matter whether journaltitle (BibLaTeX) or journal (BibTeX) is returned. -- the layer converts to the format required by the target database

koppor avatar Aug 08 '20 09:08 koppor

@Siedlerchr Thank you for the hint --> @DominikVoigt's layer doesn't help here as the fetcher tests directly check the fetcher result - and not the reformatting by the intermediate layer.

koppor avatar Aug 25 '20 05:08 koppor

Refs https://github.com/JabRef/jabref/issues/3854 (as background information)

koppor avatar Aug 26 '20 20:08 koppor