← Back to Pull requests

ci: the release bump fails on the dirty tree it creates itself #44

Merged
CasperGN merged 1 files (4 lines) on Sep 17, 2026 17:51 UTC
View on GitHub
CasperGN CasperGN commented on Sep 17, 2026 17:43 UTC
Author

What

Release npm Packages has never reached its publish steps. Run 35244174925 dies at Bump versions across the workspace:

Version bumped successfully:
@diagrid/typescript-ai: 0.1.1 → 0.2.0          <- root bump: tree is now dirty
...
[ERR_PNPM_UNCLEAN_WORKING_TREE] Working tree is not clean. Commit or stash your changes.
/home/runner/work/typescript-ai/typescript-ai/packages/core:
[ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL] Command failed with exit code 1

pnpm version refuses to run against a dirty working tree, and the root manifest bump on the preceding line is what dirties it. So the first per-package bump always fails, before a single tarball is packed.

Two things this is not:

  • Not fixable by reordering. Whichever manifest moves first dirties the tree for all the rest.

  • Not covered by --no-git-tag-version. That suppresses the commit and the tag; the clean-tree check runs regardless.
  • The fix is --no-git-checks, which is pnpm's documented flag for exactly this (--no-git-checks Don't check if working tree is clean).

    This is a first-use bug rather than a regression — the workflow has two runs total, one cancelled and this one.

    Test plan

    Verified against a clean clone at a49b670, reverting between each step:

  • Ran the unmodified step script → reproduced ERR_PNPM_UNCLEAN_WORKING_TREE at packages/core, byte-identical to CI

  • Ran it with --no-git-checks → all four manifests and all three src/version.ts files stamped

  • Ran the downstream Verify the version stamp is consistent step against that state → passes

  • prettier --check clean; workflow YAML re-parses

  • make ci — not applicable, no source or test files touched
  • Notes for whoever releases next

  • The bump reorders dependency keys alphabetically in packages/n8n/package.json (6 lines, no semantic change). That is pnpm's JSON writer, not this change — pnpm pkg set produces an identical diff. One-time, stable on re-run.

  • Registry latest is 0.1.0 for all three packages while the manifests say 0.1.1, which is the tail of this same bug: 0.1.1 was committed but never published.

  • @diagrid/n8n does now exist on the registry, so the "FIRST PUBLISH IS MANUAL" chicken-and-egg noted in the publish step is satisfied. Worth confirming its trusted publisher is configured (diagridio / typescript-ai / npm-release.yaml, environment npm) before a non-dry run — otherwise n8n fails on credentials after core and mastra have already published.
  • Diff: 4 lines (+2 / -2) across 1 files Reviewer: yaron2 Review duration: 8m
    All Vouch review confidence checks passed
    Residual risk 0.13 = Change Risk (0.23) × (1 − Review Confidence (0.42)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.23 · 4 lines diff across 1 files
    0.23
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.350
    Rapid Merge rapid_merge
    0.100
    Diff Size diff_size
    0.096
    Real PR Conversation Timeline
    2 items
    yaron2 yaron2 approved these changes on Sep 17, 2026 17:49 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    CasperGN CasperGN
    Labels
    risk: low confidence: 42.2% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 22.6% (LOW) · Higher = larger blast radius
    22.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 42.2% · Lower = rushed or shallow review
    42.2%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 13.1% · Safe to merge
    13.1%