-
Notifications
You must be signed in to change notification settings - Fork 164
[PR 10] Add validateSchemaNode Error Handling for DML #2486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Add retryable error detection for constraint violations, foreign keys, etc. - Implement retry logic with MAX_DML_EXECUTION_RETRIES configuration - Add comprehensive test coverage for error scenarios - Handle mixed success/failure results properly - Track retry count in workflow state 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
2 Skipped Deployments
|
Updates to Preview Branch (feat/pr10-add-validate-error-handling) ↗︎
Tasks are run on every commit but only new migration files are pushed.
View logs for this Workflow Run ↗︎. |
Issue
Why is this change needed?
This PR adds error handling and retry mechanism for DML execution failures in the validateSchemaNode. Previously, DML execution errors would fail immediately without any retry logic, even for transient errors like constraint violations that might succeed on retry.
What would you like reviewers to focus on?
Testing Verification
Unit tests have been added to verify:
What was done
pr_agent:summary
Detailed Changes
validateSchemaNode.ts
to check for retryable errors and implement retry logicRETRYABLE_ERROR_PATTERNS
constant to identify errors that should trigger retriespr_agent:walkthrough
Additional Notes
This PR builds on the combined DDL/DML execution feature and adds robust error handling specifically for DML execution failures.
🤖 Generated with Claude Code