fix: preserve hand-written notes in benchmark regeneration#128
fix: preserve hand-written notes in benchmark regeneration#128carlos-alm merged 1 commit intomainfrom
Conversation
Add NOTES_START/NOTES_END sentinel preservation to the benchmark updater so CI-triggered regenerations no longer clobber hand-written analysis sections. Also adds WASM regression notes to the benchmark report.
|
Claude finished @carlos-alm's task —— View job PR Review CompleteReviewing PR #128: fix: preserve hand-written notes in benchmark regeneration Todo List:
Root Cause AnalysisProblem Being Solved: CI-triggered benchmark regeneration was clobbering hand-written analysis notes in the benchmark report, causing valuable investigative content (like WASM regression analysis) to be lost on each update. Why This Approach: The sentinel-based preservation approach ( Risk Assessment: LOW RISK - This is a preservation feature that prevents data loss, not a configuration relaxation or symptom masking. Code Quality AssessmentStrengths
Technical ImplementationThe preservation logic is sound: let notes = '';
if (fs.existsSync(benchmarkPath)) {
const existing = fs.readFileSync(benchmarkPath, 'utf8');
const notesMatch = existing.match(/\n([\s\S]*?)/);
if (notesMatch) {
notes = notesMatch[1];
}
}
if (notes) {
md += `\n${notes}\n\n`;
}Minor Observations
Critical ConcernsNone identified. This is a legitimate bug fix that preserves valuable content without introducing security, performance, or maintainability issues. Test Plan VerificationThe PR includes appropriate test steps:
Final Recommendation
Quality indicators:
|
Greptile SummaryAdded sentinel preservation to the benchmark report regeneration script so CI can update metrics without clobbering hand-written analysis. The implementation uses
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: 299da2a |
Summary
NOTES_START/NOTES_ENDsentinel preservation toscripts/update-benchmark-report.jsso CI-triggered regenerations no longer clobber hand-written analysis sectionsTest plan
node scripts/update-benchmark-report.jsand verify the notes section survives regeneration<!-- NOTES_START -->/<!-- NOTES_END -->block is preserved across multiple runs