Repository navigation
ci: build the Next.js examples without a restored build cache - #5523
Conversation
The cache fell back to any Linux-nextjs- entry, and webpack reuses a node_modules package whose name@version is unchanged. A PR that changes @posthog/core or posthog-node without a version bump therefore built the examples against another branch's cached code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
📝 No Changeset FoundThis PR doesn't include a changeset. A changeset is required to release a new version. How to add a changesetRun this command and follow the prompts: pnpm changesetRemember: Never use |
Coherence📄 0 spec file errors · ⛔ 0 broken rules · 🚪 2 unchecked inputs · 🐛 0 bugs that came back What is Coherence?Coherence compares the code with its spec files ( This check read 44 parts of the code and 7 rules. Note These findings do not make this check fail. None of these findings are in files that this pull request changes. You do not need to fix them in this pull request. 🚪 Unchecked inputs (2)
What this means and how to fix itInput from outside this code comes in at these places. The spec does not say what checks that input. 10 more places were already like this when Coherence was added. This list does not show them. To close one of these, find the place by its name in the
To get the line to add, run |
Problem
The Library checks job can build the Next.js examples against the wrong SDK code. It restores
.next/cachefrom anyLinux-nextjs-entry, often one saved on another branch, and webpack reuses anode_modulespackage whosename@versionis unchanged. A PR that changes@posthog/coreorposthog-nodewithout a version bump therefore builds against another branch's cached code: a false green, or a false red like'V7Generator' is not exported from '@posthog/core'on #5508.Changes
Release info Sub-libraries affected
Libraries affected
Checklist
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
claude-opus-5-5). On chore: sync main into capture-v1 (posthog-node 5.58.0-5.61.1) #5508, a clean local build with no cache (pack, install from tarballs,next build) compiled, while CI failed after restoring a cache saved onmain.🤖 Generated with Claude Code