Skip to content

Add J-STAGE E2E coverage and DOI fallback#6

Merged
supermomonga merged 1 commit into
mainfrom
test/jstage-e2e-tests
Jun 19, 2026
Merged

Add J-STAGE E2E coverage and DOI fallback#6
supermomonga merged 1 commit into
mainfrom
test/jstage-e2e-tests

Conversation

@supermomonga

Copy link
Copy Markdown
Owner

Summary

  • Add J-STAGE CLI E2E coverage using observed J-STAGE API/HTML behavior
  • Add fallback metadata extraction from J-STAGE article citation_* meta tags when DOI lookup via the API fails
  • Return a non-zero exit code when download cannot fetch metadata

Root Cause

The previous J-STAGE download path assumed DOI lookup through the J-STAGE search API could refetch metadata for search results. In production, the API can return ERR_001 for that DOI query, while the article page still exposes metadata and PDF URLs via citation meta tags. doi.org also returns an HTTP J-STAGE redirect that .NET does not automatically follow from HTTPS.

Validation

  • dotnet build
  • dotnet test --no-ansi --no-progress - 54 tests passed
  • Verified real J-STAGE flow with search, download, and show against jstage:10.4295/audiology.20.27

@supermomonga supermomonga merged commit 7241ea5 into main Jun 19, 2026
1 check passed
@supermomonga supermomonga deleted the test/jstage-e2e-tests branch June 19, 2026 21:05
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.

1 participant