Skip to content

Conversation

@jumski
Copy link
Contributor

@jumski jumski commented Nov 30, 2025

Add ensure_flow_compiled function for flow compilation management

This PR introduces a new PostgreSQL function pgflow.ensure_flow_compiled that manages flow compilation with different behaviors based on environment:

  • Compiles missing flows in both development and production modes
  • Verifies existing flows match the expected shape
  • In development mode: automatically recompiles flows when shapes differ
  • In production mode: fails with detailed differences when shapes don't match

The function returns a JSON object with:

  • status: 'compiled', 'verified', 'recompiled', or 'mismatch'
  • differences: array of text descriptions of shape differences (empty when matching)

Comprehensive tests are included to verify all behaviors:

  • Compiling missing flows
  • Verifying matching shapes
  • Recompiling in development mode
  • Failing appropriately in production mode

@changeset-bot
Copy link

changeset-bot bot commented Nov 30, 2025

⚠️ No Changeset found

Latest commit: 4cd34c0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

Copy link
Contributor Author

jumski commented Nov 30, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge:queue - adds this PR to the back of the merge queue
  • hotfix:queue - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nx-cloud
Copy link

nx-cloud bot commented Nov 30, 2025

View your CI Pipeline Execution ↗ for commit 4cd34c0

Command Status Duration Result
nx affected -t verify-exports --base=origin/mai... ✅ Succeeded 4s View ↗
nx affected -t build --configuration=production... ✅ Succeeded 25s View ↗
nx affected -t lint typecheck test --parallel -... ✅ Succeeded 3m 51s View ↗
nx run edge-worker:e2e ✅ Succeeded 2m 51s View ↗
nx run cli:e2e ✅ Succeeded 4s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-30 15:03:19 UTC

@jumski jumski force-pushed the 11-30-feat_core_add_ensure_flow_compiled_function branch from f6e0c1b to 6e8539f Compare November 30, 2025 01:33
@jumski jumski force-pushed the 11-30-feat_core_add_ensure_flow_compiled_function branch from 6e8539f to cbfdb88 Compare November 30, 2025 11:40
@jumski jumski force-pushed the 11-30-feat_core_add_flow_creation_and_deletion_functions branch from 09c6368 to abd6e12 Compare November 30, 2025 11:40
@jumski jumski force-pushed the 11-30-feat_core_add_flow_creation_and_deletion_functions branch from abd6e12 to 0bdfc08 Compare November 30, 2025 14:47
@jumski jumski force-pushed the 11-30-feat_core_add_ensure_flow_compiled_function branch from cbfdb88 to 4cd34c0 Compare November 30, 2025 14:47
@github-actions
Copy link
Contributor

🔍 Preview Deployment: Website

Deployment successful!

🔗 Preview URL: https://pr-466.pgflow.pages.dev

📝 Details:

  • Branch: 11-30-feat_core_add_ensure_flow_compiled_function
  • Commit: 59505a6f5118565ab04acf187e77848f74d2293f
  • View Logs

_Last updated: _

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.

2 participants