Skip to content

DOCS-2966: Skip the bare calicousers.slack.com URL in the link check - #2935

Merged
ctauchen merged 1 commit into
publish/ce-3.22.7from
DOCS-2966-link-check-slack
Aug 19, 2026
Merged

DOCS-2966: Skip the bare calicousers.slack.com URL in the link check#2935
ctauchen merged 1 commit into
publish/ce-3.22.7from
DOCS-2966-link-check-slack

Conversation

@ctauchen

Copy link
Copy Markdown
Collaborator

The Netlify deploy preview for the tigera site fails on the 3.22.7 publishing PR #2917. The build itself succeeds. The failure is in the link check that runs after it, and it reports one dead link:

https://calicousers.slack.com is dead (403)
==>Origin: http://localhost:4242/calico/latest/reference/involved

The skip list in tests/crawler.test.js already covered this Slack workspace, but as two exact strings, https://calicousers.slack.com/ with a trailing slash and one channel URL. Entries given as strings are matched exactly, so the bare host linked from the get involved page was still checked. Slack returns 403 to datacenter crawlers, and the link is correct in a browser.

This replaces both strings with an anchored pattern for the host, which covers the bare host, the trailing slash form and channel links in one entry. The pattern is anchored so it does not match a lookalike host.

The 403 is intermittent, so the failure does not reproduce reliably. A local run of make netlify passed against the same content while the Netlify build was failing, which is why the pattern is the right fix rather than adding one more exact string.

This failure has nothing to do with the 3.22.7 release. Only latest is crawled, seeded from sitemap.xml, and Calico Enterprise latest maps to 3.23, so no page under version-3.22-2 is checked at all. The same dead link fails every open pull request's tigera preview, so this unblocks more than the publishing PR.

Based on the publication branch so the fix reaches #2917 and its preview can rebuild.

Netlify does not build a deploy preview for a pull request based on a publish branch, so there is no preview link here, and the pull request checks do not run the link check. The verification is the tigera preview on #2917 once this merges.

The Netlify deploy preview for the tigera site fails on the link check
with one dead link:

  https://calicousers.slack.com is dead (403)
  ==>Origin: http://localhost:4242/calico/latest/reference/involved

The skip list already carried this workspace, but as the exact strings
https://calicousers.slack.com/ and a channel URL. Entries given as
strings are matched exactly, so the bare host on the get involved page
was still checked, and Slack returns 403 to datacenter crawlers.

Replace both strings with an anchored pattern for the host, which covers
the bare host, the trailing slash form and channel links. The 403 is
intermittent, so the failure does not reproduce reliably on a local run.

This failure is not caused by the 3.22.7 release. Only latest is
crawled, and Calico Enterprise latest maps to 3.23, so no page in
version-3.22-2 is checked at all.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 19, 2026 18:30
@ctauchen
ctauchen requested a review from a team as a code owner August 19, 2026 18:30
@ctauchen
ctauchen merged commit 7a543b4 into publish/ce-3.22.7 Aug 19, 2026
4 checks passed
@ctauchen
ctauchen deleted the DOCS-2966-link-check-slack branch August 19, 2026 18:30

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

Updates the Playwright/Crawlee docs crawler link-check skip list to reliably ignore Calico Users Slack workspace URLs that return intermittent 403s to datacenter crawlers, preventing Netlify preview link-check failures.

Changes:

  • Replace two exact-string skip entries for calicousers.slack.com with a single regex-based skip entry.
  • Add inline comments explaining why Slack URLs are skipped and which page links the bare host.

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

Comment thread __tests__/crawler.test.js
// Slack workspace URLs return 403 to datacenter crawlers; the links are fine in a browser.
// Matched as a pattern so the bare host, the trailing-slash form and channel links are all
// covered. The bare host is linked from /calico/latest/reference/involved.
/^https:\/\/calicousers\.slack\.com/,
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