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

GitHub Actions: check-links job is failing #25

Open
62 tasks
eecavanna opened this issue Aug 1, 2023 · 3 comments
Open
62 tasks

GitHub Actions: check-links job is failing #25

eecavanna opened this issue Aug 1, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@eecavanna
Copy link
Contributor

eecavanna commented Aug 1, 2023

The check-links job is failing.

I checked the "Actions" tab on GitHub to see when the most recent passing run occurred, and did not see any passing runs.

https://github.com/microbiomedata/NMDC_documentation/actions/workflows/link-check.yaml


This section was added on September 7, 2023: Here's the failure list from the latest run. In this list, I manually (via regex replacement) formatted the file:/// links, added 🔒 emojis to (at least some) private GitHub links, and added checkboxes.

Summary

Status Count
🔍 Total 8623
✅ Successful 7527
⏳ Timeouts 12
🔀 Redirected 0
👻 Excluded 1022
❓ Unknown 0
🚫 Errors 62

Errors per input

Errors in ./docs/reference/metadata/index.md

Errors in ./docs/howto_guides/submit2nmdc.md

  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/howto_guides/portal_guide/submision_context.png: Failed: Cannot find file

Errors in ./docs/reference/metadata/fao_class.md

Errors in ./docs/reference/metadata/growth_facil.md

Errors in ./docs/reference/metadata/combined_schema_docs.md

Errors in ./docs/reference/metadata/Metadata_Documentation_Overview.md

  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/NMDC_metadata_img2.png: Failed: Cannot find file
  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/NMDC_metadata_img4.png: Failed: Cannot find file
  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/NMDC_metadata_img3.png: Failed: Cannot find file
  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/NMDC_metadata_img5.png: Failed: Cannot find file
  • https://github.com/microbiomedata/nmdc-metadata: Cached: Error (cached) 🔒
  • https://gensc.org/mixs: Cached: Error (cached)
  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/NMDC_metadata_img6.png: Failed: Cannot find file
  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/_static/images/NMDC_metadata_img1.png: Failed: Cannot find file

Errors in ./docs/reference/metadata/salinity_category.md

Errors in ./docs/reference/metadata/identifiers.md

Errors in ./docs/reference/metadata/Biosample.md

Errors in ./docs/reference/metadata/plant_growth_med.md

Errors in ./docs/reference/metadata/geo_loc_name.md

Errors in ./docs/reference/metadata/Environment.md

Errors in ./docs/reference/metadata/NMDC_MIxS_Soil_documentation.md

Errors in ./docs/explanation/publications.md

Errors in ./docs/reference/metadata/types/ExternalIdentifier.md

  • file:///home/runner/work/NMDC_documentation/NMDC_documentation/docs/reference/metadata/types/types/Uriorcurie.md: Failed: Cannot find file

Errors in ./docs/reference/data_portal.md

Errors in ./docs/reference/metadata/README.md

Errors in ./docs/reference/metadata/schema-validation.md

@eecavanna
Copy link
Contributor Author

Each run takes 1-2 minutes.

image

Here's a link to information about GitHub Actions "minutes" quotas:

https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#included-storage-and-minutes

@eecavanna
Copy link
Contributor Author

eecavanna commented Sep 8, 2023

I think at least some of the file:/// link failures could be fixed by using absolute URLs to those files (e.g. https://example.com/path/to/file.png) instead of relative paths (e.g. ../../file.png). For example, here:

The JSON-Schema for NMDC is maintained in this github repo, under [jsonschema/nmdc.schema.json](../../_static/jsonschema/nmdc.schema.json)

That might not be what the authors want when the docs are deployed to a different server, though. With that in mind, I wonder whether lychee (the link checker) can be configured to interpret these particular links differently (e.g. preprocessing them by adding a prefix before checking them).

@eecavanna
Copy link
Contributor Author

I think the failing https://pypi.org/proje../_static/jsonschema/ hyperlink contains a typo (i.e. a copy/paste error):

There are a variety of json schema validators, these will give the same results. There are web playgrounds for this. But for simplicity we recommend the Python [jsonschema package](https://pypi.org/proje../_static/jsonschema/)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant