Skip to content

Conversation

@pjain1
Copy link
Member

@pjain1 pjain1 commented Dec 1, 2025

Adds a new rill validate command that validates and reconciles Rill projects without starting the UI. Useful for CI/CD or AI agent development workflows.

  # Human-readable validation
  rill validate
  # JSON output on cmd line
  rill validate --format json
  # Save results to file
  rill validate --output-file validation-results.json
  # Custom timeout for model reconciliation (default time out is 60 seconds)
  rill validate --model-timeout-seconds 300
  # Suppress all log output and output results as json
  rill validate --silent --format json

Json output is of format

{
    "summary": {
      "total_resources": 15,
      "parse_errors": 2,
      "reconcile_errors": 1
    },
    "parse_errors": [
      {
        "message": "syntax error at line 10",
        "file_path": "models/bad.sql",
        "start_line": 10
      }
    ],
    "resources": [
      {
        "kind": "model",
        "name": "user_metrics",
        "status": "error",
        "error": "column 'email' does not exist",
        "file_path": "models/user_metrics.sql",
        "timeout": false
      }
    ]
  }

If validation is successful then exit code is 0 otherwise cmd returns with non zero exit code and prints a summary error message.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated. If so, create a separate Linear DOCS issue
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

@pjain1 pjain1 marked this pull request as draft December 1, 2025 08:12
@pjain1 pjain1 changed the title Rill validate [PLAT-308] Rill validate Dec 2, 2025
@pjain1 pjain1 requested a review from begelundmuller December 2, 2025 19:56
@pjain1 pjain1 marked this pull request as ready for review December 2, 2025 19:56
@pjain1 pjain1 merged commit 21253bf into main Dec 18, 2025
11 checks passed
@pjain1 pjain1 deleted the rill_validate branch December 18, 2025 18:50
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.

3 participants