Skip to content

fix(sitemap): fetch each nested sitemap only once - #2560

Merged
vdusek merged 3 commits into
masterfrom
claude/sitemap-duplicate-fetch-15f47a
Dec 2, 2026
Merged

vdusek merged 3 commits into
masterfrom
claude/sitemap-duplicate-fetch-15f47a

Conversation

@B4nan

@B4nan B4nan commented Dec 1, 2026

Copy link
Copy Markdown
Member

When a sitemap index listed the same nested sitemap several times, parse_sitemap queued and fetched it once per listing, and the repeats multiplied at each nesting level (A lists B 5 times, B lists C 5 times, C got fetched 25 times). It now skips a queued sitemap URL it has already fetched, so each one is fetched once. Because the queue is breadth-first, the copy that gets fetched is the shallowest, so max_depth behaves as before.

A nested sitemap listed several times in a sitemap index was queued and
fetched once per listing, and the repeats multiplied at every nesting
level. `parse_sitemap` now skips a queued sitemap URL it has already
fetched.
@B4nan B4nan added t-tooling Issues with this label are in the ownership of the tooling team. adhoc Ad-hoc unplanned task added during the sprint. labels Dec 1, 2026
@codecov

codecov Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.21%. Comparing base (8c51788) to head (f3dca90).
⚠️ Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2560      +/-   ##
==========================================
- Coverage   94.31%   94.21%   -0.10%     
==========================================
  Files         184      184              
  Lines       13781    13787       +6     
==========================================
- Hits        12997    12990       -7     
- Misses        784      797      +13     
Flag Coverage Δ
integration 76.63% <87.50%> (-0.01%) ⬇️
unit 85.81% <100.00%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 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.

@vdusek vdusek left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@vdusek
vdusek merged commit 0f74a9e into master Dec 2, 2026
47 checks passed
@vdusek
vdusek deleted the claude/sitemap-duplicate-fetch-15f47a branch December 2, 2026 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants