Skip to content

fix(ci): tolerate lockfile drift in vr-cli install - #4029

Merged
charlesvien merged 1 commit into
mainfrom
fix/vr-cli-lockfile-drift
Jul 31, 2026
Merged

fix(ci): tolerate lockfile drift in vr-cli install#4029
charlesvien merged 1 commit into
mainfrom
fix/vr-cli-lockfile-drift

Conversation

@charlesvien

Copy link
Copy Markdown
Member

Problem

The visual-regression job builds the Visual Review CLI from posthog master's checkout, unpinned. posthog#74334 bumped sharp there with a lockfile that does not resolve on Linux, so npm ci fails and every PR in this repo goes red on visual-regression until the upstream lockfile is fixed (posthog#75785 is open but not merged).

Changes

Fall back to npm install when npm ci fails in the Install Visual Review CLI step. The step installs a tool, not a reproducible build artifact, so regenerating the lock at install time is safe. Once upstream is fixed, npm ci succeeds again and the fallback is dormant.

How did you test this?

The identical change ran on #4028 earlier today: npm ci failed with the lockfile error, npm install took over and the job passed (https://github.com/PostHog/code/actions/runs/30596738872/job/91050657268).

Automatic notifications

  • Publish to changelog?
  • Alert Sales and Marketing teams?

@trunk-io

trunk-io Bot commented Jul 31, 2026

Copy link
Copy Markdown

😎 This pull request was merged.

@greptile-apps

greptile-apps Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "tolerate lockfile drift in vr-cli instal..." | Re-trigger Greptile

@charlesvien
charlesvien force-pushed the fix/vr-cli-lockfile-drift branch from cf5252c to 3a6a5d5 Compare July 31, 2026 02:16
@charlesvien
charlesvien merged commit d8556a9 into main Jul 31, 2026
31 checks passed
@charlesvien
charlesvien deleted the fix/vr-cli-lockfile-drift branch July 31, 2026 02:29
arnohillen added a commit that referenced this pull request Aug 1, 2026
Picks up the vr-cli install fix from #4029 so the visual-regression check passes.

Generated-By: PostHog Code
Task-Id: 58678630-1e4b-4565-9de0-c74c91b9d995
arnohillen added a commit that referenced this pull request Aug 1, 2026
Picks up the vr-cli install fix from #4029 so the visual-regression check passes.

Generated-By: PostHog Code
Task-Id: 58678630-1e4b-4565-9de0-c74c91b9d995
arnohillen added a commit that referenced this pull request Aug 1, 2026
Picks up the vr-cli install fix from #4029 so the visual-regression check passes.

Generated-By: PostHog Code
Task-Id: 58678630-1e4b-4565-9de0-c74c91b9d995
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant