4.1 Cut the link checker noise

Open
#1,206 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, yaml
Domain
ci-cd

Research direction

Start with .github/workflows/qa.yml and follow its call to gsa/data.gov/.github/workflows/static-site-qa-template.yml; confirm the link checker and how settings are passed. The change needs to exclude pages/_includes files and handle 403 results for iso.org and id.loc.gov without affecting other sites, and may require coordinating with the gsa/data.gov maintainers. Done means the next weekly report omits those errors or puts the specified 403 results in a separate group.

Written by the indexing model from the issue text.

Description

4.1 Cut the link checker noise

What

Change the weekly link check so it stops reporting false errors.

Why

Issue 811 reports 2,597 links and 159 errors. About 56 of the error lines are noise: files in pages/_includes that contain template code, which the checker reads as web addresses (for example https://resources.data.gov/%7B%7B%20...), plus iso.org and id.loc.gov, which return a 403 to automated checkers. Many of the other 403 results (congress.gov, bls.gov, dodcio.defense.gov and similar) are probably also the checker being refused. But a large share of the rest are real 404s (see item 4.2), so the report becomes useful once the noise is out of the way.

Done When

  • The next weekly report no longer lists errors for pages/_includes files.
  • The next weekly report no longer lists the 403 results for iso.org and id.loc.gov, or lists them in a separate group.

Notes

Where: .github/workflows in the gsa/data.gov repository (the shared template). Needs: write access to gsa/data.gov.
The workflow in this repository (.github/workflows/qa.yml) runs on Mondays at 15:00 UTC and calls gsa/data.gov/.github/workflows/static-site-qa-template.yml, with issue number 811. The report format looks like the lychee link checker. Confirm in the template. Other sites use the same template, so make the change in a way that does not affect them, for example through a setting passed from qa.yml. Ask whoever maintains gsa/data.gov.

Dominant language
HTML
Stars
87
Forks
137
Avg merge
2d 12h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GSA/resources.data.gov

All issues in GSA/resources.data.gov

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.