ci: replace npm ci with npm install in benchmark and license workflows#308
ci: replace npm ci with npm install in benchmark and license workflows#308carlos-alm merged 2 commits intomainfrom
Conversation
The Benchmark workflow triggers on any Publish workflow completion. During a stable release, both a dev-push Publish (from merging PRs) and the release-event Publish complete successfully, each spawning a Benchmark run that resolves to the same stable version via git tag lookup — creating duplicate PRs. Two fixes: 1. Filter workflow_run triggers to exclude push-initiated Publish completions (dev builds should not benchmark the latest stable tag) 2. Check for existing open PRs before creating new ones as a safety net
npm ci fails when package-lock.json is out of sync with package.json for the @optave/codegraph-* native binary optional deps, which are only published during the release process. npm install tolerates missing optional deps gracefully, matching how the main CI workflow already handles this.
|
Claude finished @carlos-alm's task —— View job PR Review CompleteRoot Cause AnalysisProblem Being Solved: The license compliance scan and benchmark workflows are failing because Why This Approach: Risk Assessment: LOW RISK - This is a legitimate fix for a real infrastructure issue, not a symptom-hiding change. Configuration Changes Analysis
Technical Assessment✅ Strengths
|
Greptile SummaryThis PR replaces PR Convention Issue: This PR bundles two separate commits with different concerns:
Only the second change is mentioned in the PR title and description. According to CLAUDE.md: "One PR = one concern. Each pull request should address a single feature, fix, or refactor. Do not pile unrelated changes into an existing PR." The duplicate PR prevention logic (commit b6f55fa) should be in a separate PR. Technical Changes:
The Confidence Score: 4/5
Important Files Changed
Last reviewed commit: f4c3141 |
Summary
npm ciwithnpm installin the license compliance scan and benchmark workflowsnpm cifails whenpackage-lock.jsonis out of sync withpackage.jsonfor the@optave/codegraph-*native binary optional deps (only published during release)npm installtolerates missing optional deps gracefully, matching the main CI workflowFixes the "License Compliance Scan" failure on PRs #298, #300, #307.
Test plan