Skip to content

Commit b7e0dcb

Browse files
heiskrCopilotCopilot
authored
🧭 Add agent instructions to [Search Scraping Failures] issues (#61157)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 6ad66c9 commit b7e0dcb

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎.github/workflows/index-general-search.yml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,36 @@ jobs:
331331
**Workflow file:** $FILE_URL
332332
333333
This issue was automatically created by the \`$WORKFLOW_NAME\` workflow.
334+
335+
---
336+
337+
## Instructions for the issue analysis agent
338+
339+
These scraping failures are **almost never timeouts**. They are
340+
almost always caused by Liquid/Markdown corruptions in the
341+
translated source that make the page fail to render. Please do not
342+
file this as a transient/timeout issue.
343+
344+
To investigate:
345+
346+
1. Pull the translation repos locally:
347+
\`\`\`
348+
npm run clone-translations
349+
\`\`\`
350+
2. Identify the specific corruptions with the canonical reporter
351+
(verify the exact script name in \`package.json\` before running):
352+
\`\`\`
353+
npm run count-translation-corruptions
354+
\`\`\`
355+
The script writes a structured JSON report to stdout listing each
356+
corrupted file, its location, the error message, and the
357+
offending/illegal tag token when available.
358+
3. **Open a pull request that fixes the corruptions** rather than
359+
just commenting the findings on this issue. The issue body above
360+
already lists the affected pages; the value the agent adds is
361+
the fix. Where possible, fix the underlying pattern in
362+
\`src/languages/lib/correct-translation-content.ts\` so the same
363+
corruption is corrected on future syncs.
334364
EOF
335365
)
336366
gh issue create \

0 commit comments

Comments
 (0)