fix: benchmark uses stale native addon from npm#156
Conversation
|
Claude finished @carlos-alm's task —— View job Reviewing PR: fix: benchmark uses stale native addon from npmTodo List:
Root Cause AnalysisProblem Being Solved: Benchmark workflows were testing the last published npm version (v2.4.0) instead of the freshly built native addon from the current Publish workflow run. This creates a gap between code changes and performance measurements. Why This Approach: The solution downloads the Risk Assessment: LOW RISK - The change is additive with proper fallbacks and security controls. Code Quality Assessment✅ Strengths
|
Greptile SummaryThis PR ensures benchmark workflows test freshly compiled native addons rather than the last stable npm release (v2.4.0). Key changes:
Integration with existing code:
Confidence Score: 5/5
Important Files Changed
Last reviewed commit: d1c763c |
Download the just-built native artifact from the triggering Publish workflow and overlay it on top of what npm ci installed. This ensures benchmarks test the freshly compiled addon rather than the last stable npm release. Both new steps are guarded by `if: github.event_name == 'workflow_run'` so manual workflow_dispatch runs skip them and fall back to npm.
d1c763c to
3fd2bb0
Compare
|
Claude finished @carlos-alm's task —— View job Reviewing PR: fix: benchmark uses stale native addon from npmTodo List:
Root Cause AnalysisProblem Being Solved: Benchmark workflows were testing the last published npm version (v2.4.0) instead of the freshly built native addon from the current Publish workflow run. This creates a gap between code changes and performance measurements. Why This Approach: The solution downloads the Risk Assessment: LOW RISK - The change is additive with proper fallbacks and security controls. Code Quality Assessment✅ Strengths
|
- Validate codegraph-core.node exists before copying (fail with ::error annotation and directory listing if missing) - Use explicit file path instead of *.node glob to avoid copying unintended files - Log sha256 hash of installed addon for traceability
|
Claude finished @carlos-alm's task —— View job Reviewing PR: fix: benchmark uses stale native addon from npmTodo List:
Root Cause AnalysisProblem Being Solved: Benchmark workflows were testing the last published npm version (v2.4.0) instead of the freshly built native addon from the current Publish workflow run. This creates a gap between code changes and performance measurements. Why This Approach: The solution downloads the Risk Assessment: LOW RISK - The change is additive with proper fallbacks and security controls. Code Quality Assessment✅ Strengths
|
Summary
npm ciinstalledactions: readpermission to each job for cross-workflow artifact accessif: github.event_name == 'workflow_run'— manualworkflow_dispatchruns skip them gracefullyTest plan
workflow_dispatchstill works (skips artifact download, falls back to npm)