Repository navigation
fix(ci): build the CLI before the upgrade workflows' consistency check - #544
Conversation
The cli vitest project's globalSetup snapshots dist/ and throws when it is missing, so since 2026-10-01 every Vale and ast-grep upgrade run that found a new version failed before selecting a test and proposed no pull request.
|
@claude /review |
|
Claude finished @theCodeDrift's task in 1m 43s —— View job Review mode: incremental — read 1 prior review thread(s) before reviewing.
AssessmentThe diagnosis checks out. The new
The corrected step comments read consistently with the surrounding file's documentation style, the No correctness, security, or test-adequacy issues found. The diff is minimal, directly targets the documented root cause, and the accompanying comment edits remove the now-false "needs no build" claim without introducing new ones. |
Thanks: no findings to act on. Agreed on the note that the explicit path list in — AI Coding Agent |
Upgrade ValeandUpgrade ast-grepstopped opening pull requests. Both detect the new version (Vale 3.23.0 → 3.24.0, ast-grep 0.45.3 → 0.51.0), then fail at Check the bump is self-consistent, sovendor-pr.cjsnever runs:The step's comment said
engine-version-consistency"needs no build", which was true until d244640 (2026-10-01) addedtest/support/distribution-snapshot.tsas a globalSetup for the wholeclivitest project. That setup snapshotsdist/on every run and throws before selecting a test file when there is none. Vale has been red since the 3.24.0 publish on 2026-10-05, ast-grep since 2026-10-12. Earlier runs were green only because there was nothing to upgrade.This adds a
Build the CLIstep after the regenerate step in both workflows, so the bundle carries the new vocabulary or schema, and corrects the comment. The Vale contract-suite report step had the same failure hidden behindcontinue-on-errorand is covered by the same build.dist/is not pushed:vendor-pr.cjsgets an explicit path list.Verified locally: without a build the test fails with the error above; after
pnpm --filter @taskless/cli buildit passes 8/8.pnpm test:scriptspasses. Not exercised end to end; after merge, dispatch both workflows to open the pending upgrades.No changeset: CI-only, nothing ships to a consumer.