Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken CI validation test and warning because of outdated code #96

Open
stweil opened this issue Feb 23, 2024 · 0 comments
Open

Broken CI validation test and warning because of outdated code #96

stweil opened this issue Feb 23, 2024 · 0 comments

Comments

@stweil
Copy link
Contributor

stweil commented Feb 23, 2024

The CI fails, and the failure can be reproduced in a local test:

% cd data/SBB0000F29300010000/data
% ocrd workspace validate --skip pixel_density --skip page --page-coordinate-consistency off --skip url --skip imagefilename --page-strictness lax mets.xml 
17:41:32.894 WARNING ocrd.cli.workspace.validate - Use 'ocrd workspace --mets METS init' instead of argument 'METS_URL' ('mets.xml')
17:41:33.330 WARNING ocrd.workspace_validator - Not available locally and 'download' is not set: <OcrdFile fileGrp=OCR-D-IMG-DESKEW ID=FILE_0001_IMAGE_DESKEW, mimetype=image/tiff, url=https://github.com/OCR-D/assets/raw/master/data/SBB0000F29300010000/00000001_DESKEW.tif, local_filename=---]/> 
17:41:33.331 WARNING ocrd.workspace_validator - Not available locally and 'download' is not set: <OcrdFile fileGrp=OCR-D-IMG-DESKEW ID=FILE_0002_IMAGE_DESKEW, mimetype=image/tiff, url=https://github.com/OCR-D/assets/raw/master/data/SBB0000F29300010000/00000002_DESKEW.tif, local_filename=---]/> 
17:41:33.331 WARNING ocrd.workspace_validator - Not available locally and 'download' is not set: <OcrdFile fileGrp=OCR-D-IMG-DESPECK ID=FILE_0001_IMAGE_DESPECK, mimetype=image/tiff, url=https://github.com/OCR-D/assets/raw/master/data/SBB0000F29300010000/00000001_DESPECK.tif, local_filename=---]/> 
17:41:33.331 WARNING ocrd.workspace_validator - Not available locally and 'download' is not set: <OcrdFile fileGrp=OCR-D-IMG-DESPECK ID=FILE_0002_IMAGE_DESPECK, mimetype=image/tiff, url=https://github.com/OCR-D/assets/raw/master/data/SBB0000F29300010000/00000002_DESPECK.tif, local_filename=---]/> 
17:41:33.331 WARNING ocrd.workspace_validator - Not available locally and 'download' is not set: <OcrdFile fileGrp=OCR-D-IMG-DEWARP ID=FILE_0001_IMAGE_DEWARP, mimetype=image/tiff, url=https://github.com/OCR-D/assets/raw/master/data/SBB0000F29300010000/00000001_DEWARP.tif, local_filename=---]/> 
17:41:33.331 WARNING ocrd.workspace_validator - Not available locally and 'download' is not set: <OcrdFile fileGrp=OCR-D-IMG-DEWARP ID=FILE_0002_IMAGE_DEWARP, mimetype=image/tiff, url=https://github.com/OCR-D/assets/raw/master/data/SBB0000F29300010000/00000002_DEWARP.tif, local_filename=---]/> 
<report valid="false">
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_SEG_PAGE"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_SEG_PAGE"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_SEG_REGION"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_SEG_REGION"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_SEG_LINE"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_SEG_LINE"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_SEG_CLASS"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_SEG_CLASS"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_SEG_DOC"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_SEG_DOC"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_OCR_TESS"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_OCR_TESS"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_OCR_ANY"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_OCR_ANY"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_COR_CIS"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_COR_CIS"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_COR_ASV"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_COR_ASV"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000001" !== "FILE_0001_FULLTEXT"</warning>
  <warning>pc:PcGts/@pcGtsId differs from mets:file/@ID: "p00000002" !== "FILE_0002_FULLTEXT"</warning>
</report>

So SBB0000F29300010000 does not have a valid workspace. That should be fixed.

In addition there is a warning which should be fixed, too:

17:41:32.894 WARNING ocrd.cli.workspace.validate - Use 'ocrd workspace --mets METS init' instead of argument 'METS_URL' ('mets.xml')
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

No branches or pull requests

1 participant