Conversation
This commit enhances the Factory AI User Story Workflow with: ## New Features - Git push retry mechanism with exponential backoff (2s, 4s, 8s, 16s) - Git fetch retry mechanism with exponential backoff - Branch name validation in retry scripts - Comprehensive workflow improvements documentation ## Files Added - `.github/scripts/git-push-with-retry.sh`: Robust git push with retry logic - `.github/scripts/git-fetch-with-retry.sh`: Robust git fetch with retry logic - `docs/WORKFLOW_IMPROVEMENTS.md`: Complete guide for workflow enhancements - `.github/workflows/userstory-factory-workflow-improved.yml.example`: Example workflow with improvements ## Documentation Updates - Updated README.md with links to improvement docs - Added integration examples for retry scripts - Documented 10+ workflow enhancement patterns ## Benefits - Improved reliability with network error handling - Better error reporting and user feedback - Performance optimizations with caching - Enhanced security checks - Comprehensive testing strategies See docs/WORKFLOW_IMPROVEMENTS.md for detailed usage instructions.
…kflow This commit integrates all workflow improvements directly into the main workflow: ## Retry Mechanisms - Git push operations now use git-push-with-retry.sh with exponential backoff - Automatic retry on network failures (2s, 4s, 8s, 16s delays) - Applied to 2 critical push operations (planning and verification phases) ## Error Handling - Added comprehensive error comments for each phase: - Planning phase errors - Implementation phase errors - Test phase errors - Verification phase errors - Each error comment includes: - Direct link to workflow run - Common causes - Next steps for resolution ## Performance Optimizations - Added timeout-minutes to all jobs: - validate-user-story: default (6h) - plan-implementation: 20 minutes - implement-story: 30 minutes - write-tests: 25 minutes - verify-acceptance-criteria: 25 minutes - create-pull-request: 10 minutes - notify-completion: 5 minutes - Implemented npm caching for 3 jobs (impl, tests, verify) - Cache keys are job-specific to avoid conflicts ## Manual Re-Trigger Support - Added workflow_dispatch trigger - Allows manual workflow execution with issue_number input - Useful for retrying failed workflows ## Enhanced Reporting - Complete workflow summary at the end - Visual status table for all phases - Posted as GitHub Actions Summary and issue comment - Shows overall success/failure status ## Benefits - Improved reliability with automatic retries - Better error visibility and debugging - Faster workflow execution with caching - Enhanced user feedback throughout process - Manual control when needed All improvements are production-ready and backward compatible.
…CUodBcpPZVPaercqJsJvE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit enhances the Factory AI User Story Workflow with:
New Features
Files Added
.github/scripts/git-push-with-retry.sh: Robust git push with retry logic.github/scripts/git-fetch-with-retry.sh: Robust git fetch with retry logicdocs/WORKFLOW_IMPROVEMENTS.md: Complete guide for workflow enhancements.github/workflows/userstory-factory-workflow-improved.yml.example: Example workflow with improvementsDocumentation Updates
Benefits
See docs/WORKFLOW_IMPROVEMENTS.md for detailed usage instructions.
## 📋 Zusammenfassung
Kurze Beschreibung der Änderungen
🔗 Verknüpfte Issues
Closes #issue-nummer
Related to #issue-nummer
🎯 Art der Änderung
✅ Checklist
Entwicklung
Testing
Deployment
🧪 Test-Beschreibung
Beschreiben Sie die Tests, die Sie durchgeführt haben, um Ihre Änderungen zu verifizieren.
Test-Konfiguration
📸 Screenshots (falls UI-Änderungen)
📝 Zusätzliche Notizen
Fügen Sie hier weitere Notizen, Überlegungen oder Diskussionspunkte hinzu.
👥 Reviewer
@mention-relevant-reviewers
Definition of Done: