Skip to content

ci: fix false positives in broken link checker - #1984

Open
Tnalxmsk wants to merge 3 commits into
toss:mainfrom
Tnalxmsk:fix/broken-link-checker-false-positives
Open

Tnalxmsk wants to merge 3 commits into
toss:mainfrom
Tnalxmsk:fix/broken-link-checker-false-positives

Conversation

@Tnalxmsk

@Tnalxmsk Tnalxmsk commented Aug 31, 2026 •

Copy link
Copy Markdown

Overview

Closes #1983.

The scheduled Broken link checker reports three false positives in the
latest workflow run:

  • Two npm package links return HTTP 403 because npm serves a Cloudflare
    challenge to automated requests.
  • The TanStack Query v5 installation link returns HTTP 308 and redirects
    to its canonical latest URL.

This keeps the scheduled workflow red even though all target resources exist.

Changes

  • Exclude npmjs.com URLs because automated requests cannot validate them
    reliably.
  • Replace the redirected TanStack Query URL with its canonical URL so it
    remains covered by the checker.
  • Keep the English and Korean migration documentation aligned.

Verification

  • Formatting check passed for all changed files.
  • ESLint passed for both changed MDX files.
  • The canonical TanStack Query URL returns HTTP 200 without redirects.
  • Because the checker crawls the production site, the production-only legacy
    URL was temporarily excluded during verification:
    • 8,721 links found
    • 8,548 links excluded
    • 0 broken links

PR Checklist

  • I did below actions if need
  1. I read the Contributing Guide
  2. I added documents and tests.

@coauthors

coauthors Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

People can be co-author:

Candidate Reasons Count Add this as commit message
@Tnalxmsk #1984 1 Co-authored-by: Tnalxmsk <113881311+Tnalxmsk@users.noreply.github.com>
@codecov-commenter #1984 (comment) 1 Co-authored-by: codecov-commenter <65553080+codecov-commenter@users.noreply.github.com>

@vercel

vercel Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@Tnalxmsk is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Aug 31, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b4be4ae

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

🟢 Approval recommended

The focused changes address all three reported false positives consistently without introducing unresolved issues.

Pull request overview

Fixes false positives in the scheduled broken-link checker.

Changes:

  • Excludes npm URLs from automated validation.
  • Updates English and Korean migration docs to TanStack Query’s canonical URL.
File summaries
File Description
package.json Adds the npm URL exclusion.
docs/suspensive.org/src/content/en/docs/react-query/migration/migrate-to-v2.mdx Updates the English documentation link.
docs/suspensive.org/src/content/ko/docs/react-query/migration/migrate-to-v2.mdx Updates the Korean documentation link.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.22%. Comparing base (5b76bda) to head (b4be4ae).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1984   +/-   ##
=======================================
  Coverage   93.22%   93.22%           
=======================================
  Files          42       42           
  Lines         664      664           
  Branches      163      164    +1     
=======================================
  Hits          619      619           
  Misses         42       42           
  Partials        3        3           
Components Coverage Δ
@suspensive/react 100.00% <ø> (ø)
@suspensive/react-query 95.83% <ø> (ø)
@suspensive/react-query-4 100.00% <ø> (ø)
@suspensive/react-query-5 100.00% <ø> (ø)
@suspensive/jotai 100.00% <ø> (ø)
@suspensive/codemods 81.60% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Broken link checker fails due to false positives

5 participants