ci: gate main on type-check, lint and tests and repair the type error it caught - #70
polylane[bot] wants to merge 2 commits into
Conversation
Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedBot user detected. To trigger a single review, invoke the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… removed Co-authored-by: polylane[bot] <277585245+polylane[bot]@users.noreply.github.com>
|
Both edits are pushed to What was failingThe Line 20 was the cause of the other three: the repo upgraded Lexical to 0.51.0, which removed the type parameter from This is a pre-existing defect on What I changed
Validation
One thing this does not settle: Pushed in 97879c2. |
|
Gilberto closed this pull request from Polylane: Planned |
Fixes: cache-app main deploys to production with no CI gate and no automated Prisma migration step
The gate this pull request adds failed on its first run because the repository did not type-check: the note renderer referenced a rich-text node type that the Lexical upgrade no longer declares with a type parameter, and four type errors stopped the workflow. No product behavior was affected, but the new check could not pass. With the type corrected the gate is green, and the Node setup step now uses the current action major instead of a runtime the runner marks deprecated.
What caused this
Affected:
acc_0b563dc42001x121b0ek7bgcWhy this fix
A cold checkout showed the defect is pre-existing on main. The repository upgraded Lexical to 0.51.0, which removed the type parameter from
SerializedElementNode; the notes renderer still passed one, so the local alias resolved to an error type and the renderer's narrowing collapsed. The library's own declaration says that parameter promised a narrowing nothing enforced, so using the type as declared is the honest model rather than a cast or a suppression. Re-running the workflow's commands with the local incremental cache removed reproduced exactly the four errors the check reported, and both sides carry the same source line, so the gate was red on main's content and not on anything this pull request introduces.The failing run also flagged the Node setup action as running on a deprecated runtime. The current major declares the Node 24 action runtime and keeps the same version-file input, read from the action's own metadata published at that tag.
Outstanding and recorded on the incident timeline:
mainstill has no branch protection, so this job reports a result without blocking a merge until an admin marks it required, and applying Prisma migrations remains a manual step. This pull request makes the gate work and pass; it does not yet enforce it.Out of scope
mainis unprotected and previews share the production database, so it belongs after the gate exists2 files changed (+64/-1)
.github/workflows/ci.yml: added, +63/-0lib/integrations/notes/utils.ts: modified, +1/-1Generated by Polylane. You can ask follow-ups by mentioning @polylane in a comment.