Skip to content

ci(high/easy): fail when generated bindings dirty the worktree - #554

Open
CemAyyildiz wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
CemAyyildiz:fix/525-bindings-worktree-guard
Open

CemAyyildiz wants to merge 1 commit into
Sub-Rosa-Issue:mainfrom
CemAyyildiz:fix/525-bindings-worktree-guard

Conversation

@CemAyyildiz

Copy link
Copy Markdown
Contributor

Closes #525

What

Adds a git diff --exit-code step to .github/workflows/bindings-check.yml, immediately after the existing pnpm bindings:check step.

Why

bindings:check already diffs the freshly generated index.ts against the committed one and fails on a mismatch, but that only covers that one file. This adds a broader, blocking assertion that the whole worktree is clean after the bindings check runs, so any other unexpected generated-file drift surfaces in CI instead of silently landing in main.

Docs

Documented in docs/CI.md under a new "Bindings worktree cleanliness gate" section, next to the existing coverage gate writeup.

Scope

CI config + docs only — no change to bindings:check itself, the bindings generation logic, or any other workflow.

Adds a git diff --exit-code step to bindings-check.yml immediately
after pnpm bindings:check, so any unexpected drift in a tracked,
generated file is visible and blocking in CI, not just the specific
index.ts comparison bindings:check already performs on its own.
Documented in docs/CI.md next to the existing coverage gate.

Closes Sub-Rosa-Issue#525
@karagozemin

Copy link
Copy Markdown
Collaborator

Doğrudan merge denendi; ancak GitHub güncel main ile merge commitini temiz oluşturamıyor. Lütfen main üzerine rebase edip çatışmaları giderin; sonrasında içerik incelemesi olmadan doğrudan merge edilecek.

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.

ci(high/easy): fail when generated bindings dirty the worktree

3 participants