Skip to content

Pin the link checker to v1 and declare known false positives - #370

Open
mmcky wants to merge 1 commit into
mainfrom
linkcheck-pin-and-ignore-patterns
Open

Pin the link checker to v1 and declare known false positives#370
mmcky wants to merge 1 commit into
mainfrom
linkcheck-pin-and-ignore-patterns

Conversation

@mmcky

@mmcky mmcky commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Two changes to linkcheck.yml, following the v1.1.0 release of the link checker.

Pin @main@v1

@main tracks whatever lands on the action's default branch, so this workflow absorbs behaviour changes without review. @v1 is a moving tag that follows the 1.x line.

Declare the known false positives — and only those

The most recent report, #369, lists six broken links, and unlike the sibling repos they are not all noise:

Link Status Handling
fred.stlouisfed.org (×2) 0 (Timeout) Ignored — FRED throttles datacenter IPs
ideas.repec.org/a/bla/jfinan/... 404 Left reported
python-intro.quantecon.org/optgrowth.html (×2) 404 Left reported
python.quantecon.org/optgrowth.html#exercises 404 Left reported

Only the two FRED timeouts are suppressed. The four 404s are real HTTP responses from reachable servers, and the three quantecon.org ones look like genuine rot worth fixing in the source rather than hiding. The workflow carries a comment saying so, so nobody adds them to the list later by reflex.

ignore-patterns also mirrors the five patterns in lectures/_config.yml, which Sphinx reads and this checker never sees. A comment records that the two lists have to be kept in step.

Existing issues

v1.1.0 stops the weekly duplicates: a recurring finding now refreshes one open issue rather than opening a new one. It does not close the five that already exist, so those want closing by hand.

Copilot AI review requested due to automatic review settings August 3, 2026 10:23
@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

Deploy Preview for lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit 6bd9067
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6a706c271bed7400080b548c
😎 Deploy Preview https://deploy-preview-370--lustrous-melomakarona-3ee73e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository’s link-checking GitHub Actions workflow to make the external action dependency more stable and to reduce noise from known false-positive link reports.

Changes:

  • Pin QuantEcon/action-link-checker from @main to the @v1 major tag.
  • Add an ignore-patterns block (with explanatory comments) to suppress known false positives, including the previously Sphinx-only ignore list plus FRED timeouts.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

https://doi\.org/10\.1086/262078
https://keras\.io/
https://data\.oecd\.org/
https://fred\.stlouisfed\.org
@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

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.

2 participants