TINYDOC-3594 - Scope LLM file generation to the latest version's attachments - #4338
Merged
Merged
Conversation
kemister85
requested review from
a team,
MichaelFromin,
ShiridiGandham,
TheSpyder,
ltrouton,
metricjs and
soritaheng
and removed request for
a team and
MichaelFromin
September 1, 2026 07:37
ArvinJ-H
approved these changes
Sep 1, 2026
metricjs
approved these changes
Sep 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket: TINYDOC-3594 — follows TINYDOC-3592.
Problem: the generator found its output directory by searching the build for
_attachments. A production build has one per version, so it wrote the version 8 corpus into version 6 and 7 as well — publishing four URLs carrying the wrong version's content, and leavingcopy-llms-files.shwith six candidates instead of two, so/docs/llms.txtwas set byfindorder.Seen in the staging deploy, run 33481753889:
Fix: derive the path from
BASE_URLrather than searching for it.parseSitemap()keeps only the URLs beneathBASE_URL, so the generator emits one version's corpus and must write to one version's directory. Falls back to the build root with a warning if that directory is absent.Impact: staging only. Generation has never run against production, so no incorrect URL was published there.
Testing: full multi-version build via the production playbook — 1,582 pages, four versions, three
_attachmentsdirectories.tinymce/latest/_attachments; zerollmsfiles under versions 5, 6 or 7.