Skip to content

fix(tooling): pass --ignoreConfig so migration-validator stops failing every migration - #1206

Merged
Ardnived merged 1 commit into
mainfrom
fix/migration-validator-ignore-config
Nov 18, 2026
Merged

Ardnived merged 1 commit into
mainfrom
fix/migration-validator-ignore-config

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Closes #1200

Summary

.claude/skills/migration-validator/validate.sh passes the migration file to tsc on the command line. TypeScript 6 refuses that while a tsconfig.json is present (error TS5112), so the TypeScript check reported FAIL on every migration, including ones that compile.

Adds --ignoreConfig to that one invocation. pnpm exec tsc --version reads 6.0.3, and package.json pins typescript to 6.0.3 exactly, so the flag goes in bare with no version check. A comment beside it records why. Nothing else in the script changed.

Verification

The ticket's example migration (20261117_234341_tidy_event_form.ts) was squashed into the baseline by #1188, so these checks ran against src/migrations/20261116_181127_merge_main_snapshot_10.ts.

  • Before the fix: the TypeScript check reports ✗ FAIL, and the summary shows Fail: 1.
  • After the fix: ✓ PASS: TypeScript compiles cleanly, Fail: 0, exit 0.
  • /tmp/migration-validator-tsc.log is empty after a clean run.
  • A scratch copy with const broken: number = "nope" appended reports ✗ FAIL with TS2322 in the log and exits 1. The copy was deleted afterwards.
  • The DROP TABLE and table-rebuild warnings print the same as before.

The lean gate was not run: the diff is one shell script that Prettier, lint and the unit lane never read.

🤖 Generated with Claude Code

…g every migration

TypeScript 6 refuses a file named on the command line while a tsconfig.json is
present (TS5112), so the validator's tsc check reported FAIL on migrations that
compile. typescript is pinned to 6.0.3 exactly, so the flag goes in bare.

Closes #1200

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1206 November 18, 2026 19:08 Destroyed
@railway-app

railway-app Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1206 environment in sahajcloud

Service Status Web Updated
SahajCloud 😴 Sleeping (View Logs) Web Nov 18, 2026 at 7:41 pm UTC
1 service not affected by this PR
  • mailpit

@sydevs-bot sydevs-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved for Ardnived, who wrote it: GitHub refuses an author's own approval. CI is green and the automated review has run. Enable auto-merge when you want it merged: the queue tests it against its base. 🤖 Written by the sydevs autonomous loop — see what this is

@sydevs-bot

Copy link
Copy Markdown
Contributor

Adversarial review skipped: 1 file(s), 5 changed line(s), under review.skipWhen. Say @sydevs-bot review to force one.

🤖 sydevs dispatcher

@Ardnived
Ardnived added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 082543b Nov 18, 2026
16 checks passed
@Ardnived
Ardnived deleted the fix/migration-validator-ignore-config branch November 18, 2026 19:43
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 18, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1206 — ca7d2424 Deployed Nov 18, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

fix(tooling): migration-validator reports FAIL on every migration

2 participants