Conversation
- crawlYoutubeVerify: index >= 2000 시 반복문 break - validateSongMatch: JSON 파싱 try-catch 추가, isValid === true 명시적 비교, max_tokens 50으로 증가
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Review Summary by QodoFix crawl verification stability and alias mapping issues
WalkthroughsDescription• Fix typo in krToJpnArtistSort alias mapping for ASIAN KUNG-FU GENERATION • Add 2000-record limit to crawlYoutubeVerify crawling loop • Improve validateSongMatch stability with try-catch and better GPT prompt • Enable scheduled execution for verify_ky_youtube workflow Diagramflowchart LR
A["krToJpnArtistSort"] -- "fix alias key order" --> B["ASIAN KUNG-FU GENERATION mapped correctly"]
C["crawlYoutubeVerify"] -- "break at index >= 2000" --> D["Limit crawl to 2000 records"]
E["validateSongMatch"] -- "improved prompt + try-catch" --> F["Stable JSON parsing & better matching"]
G["verify_ky_youtube.yml"] -- "add schedule trigger" --> H["Daily cron at 23:00 KST"]
File Changes1. apps/web/src/constants/krToJpnArtist.ts
|
Code Review by Qodo
1. Cap bypassed on errors
|
| index++; | ||
| console.log('crawlYoutubeVerify : ', index); | ||
|
|
||
| if (index >= 2000) break; |
There was a problem hiding this comment.
1. Cap bypassed on errors 🐞 Bug ⛯ Reliability
In crawlYoutubeVerify, the new index >= 2000 break is skipped when isValidKYExistNumber throws because the catch block continues before reaching the break check, so the job can still iterate the full dataset under repeated validation failures. This defeats the intended runtime/API-call limiter added in this PR.
Agent Prompt
### Issue description
`crawlYoutubeVerify` adds a 2000-item cap, but `continue` in the error path bypasses the break check, so failures can still lead to unbounded processing.
### Issue Context
The limiter appears intended to bound runtime/cost for scheduled execution.
### Fix Focus Areas
- packages/crawling/src/crawling/crawlYoutubeVerify.ts[26-50]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
📌 PR 제목
[Type] : 작업 내용 요약
📌 변경 사항
💬 추가 참고 사항