Skip to content

chore: remove outdated documentation files and add compile command tests#436

Closed
jumski wants to merge 1 commit into
feat-auto-compilationfrom
11-27-add_control_plane_test_coverage_improvements
Closed

chore: remove outdated documentation files and add compile command tests#436
jumski wants to merge 1 commit into
feat-auto-compilationfrom
11-27-add_control_plane_test_coverage_improvements

Conversation

@jumski
Copy link
Copy Markdown
Contributor

@jumski jumski commented Nov 27, 2025

Removed Auto-Compilation Documentation and Improved Compile Command Testing

This PR removes two documentation files that are no longer needed:

  • COMPILE_WORKER.md - Documentation about auto-compilation workflow
  • PRD_control-plane-http.md - Product requirements document for HTTP compilation

Additionally, it enhances the test coverage for the CLI's compile command with several new tests:

  • Added tests for migration file generation with proper timestamp formatting
  • Added tests for handling empty SQL array responses
  • Added tests for creating migrations directory when missing
  • Added tests for warning about existing migrations
  • Added error handling tests for non-existent Supabase paths
  • Added E2E tests for error handling with unknown flows

The PR also improves the ControlPlane tests by adding:

  • Tests for flows with dependencies
  • Tests for flows with maxAttempts configuration
  • Tests for handling compilation errors with proper 500 responses

These changes strengthen the test coverage for the compile command and ensure proper error handling throughout the compilation process.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 27, 2025

⚠️ No Changeset found

Latest commit: 3278b94

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

Copy link
Copy Markdown
Contributor Author

jumski commented Nov 27, 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
Copy Markdown

nx-cloud Bot commented Nov 27, 2025

View your CI Pipeline Execution ↗ for commit 3278b94

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

☁️ Nx Cloud last updated this comment at 2025-11-27 11:21:07 UTC

@jumski jumski force-pushed the 11-27-add_control_plane_test_coverage_improvements branch from bc5dd5b to 3278b94 Compare November 27, 2025 11:13
@github-actions
Copy link
Copy Markdown
Contributor

🔍 Preview Deployment: Website

Deployment successful!

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

📝 Details:

  • Branch: 11-27-add_control_plane_test_coverage_improvements
  • Commit: 9acaf99505ace7f1751314f7310f28baebaf97bd
  • View Logs

_Last updated: _

@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app Bot commented Nov 28, 2025

Merge activity

  • Nov 28, 11:45 PM UTC: jumski added this pull request to the Graphite merge queue.
  • Nov 28, 11:45 PM UTC: CI is running for this pull request on a draft pull request (#449) due to your merge queue CI optimization settings.
  • Nov 28, 11:53 PM UTC: Merged by the Graphite merge queue via draft PR: #449.

graphite-app Bot pushed a commit that referenced this pull request Nov 28, 2025
…sts (#436)

# Removed Auto-Compilation Documentation and Improved Compile Command Testing

This PR removes two documentation files that are no longer needed:
- `COMPILE_WORKER.md` - Documentation about auto-compilation workflow
- `PRD_control-plane-http.md` - Product requirements document for HTTP compilation

Additionally, it enhances the test coverage for the CLI's compile command with several new tests:

- Added tests for migration file generation with proper timestamp formatting
- Added tests for handling empty SQL array responses
- Added tests for creating migrations directory when missing
- Added tests for warning about existing migrations
- Added error handling tests for non-existent Supabase paths
- Added E2E tests for error handling with unknown flows

The PR also improves the ControlPlane tests by adding:
- Tests for flows with dependencies
- Tests for flows with maxAttempts configuration
- Tests for handling compilation errors with proper 500 responses

These changes strengthen the test coverage for the compile command and ensure proper error handling throughout the compilation process.
@graphite-app graphite-app Bot closed this Nov 28, 2025
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.

1 participant