-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Add debugging for wp-env start failures #62306
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
Conversation
This adds diagnostic output to help identify the root cause of wp-env port binding failures in CI. Pre-start diagnostics: - Docker containers - Docker networks - Ports currently in use Post-failure diagnostics (only shown on failure): - Docker containers after failure - Docker logs from mysql containers - Ports in use after failure - Which processes are using common wp-env ports Related: QAO-172 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
Testing GuidelinesHi @jorgeatorres , Apart from reviewing the code changes, please make sure to review the testing instructions (Guide) and verify that relevant tests (E2E, Unit, Integration, etc.) have been added or updated as needed. Reminder: PR reviewers are required to document testing performed. This includes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR addresses intermittent wp-env port binding failures in CI by replacing randomized port assignments with fixed port values and adding comprehensive diagnostic output to aid in debugging failures.
- Removes the randomized port generation logic that was previously used to avoid conflicts
- Sets fixed wp-env ports (8888, 58888, 8086, 58086) via environment variables
- Adds detailed pre-start and post-failure diagnostics including Docker state, network configuration, and port usage information
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📝 WalkthroughWalkthroughThe CI workflow file is updated to use fixed port values for wp-env instead of dynamic generation, add pre-start diagnostic output (port states, Docker containers, networks), and implement post-failure diagnostics with error handling when wp-env startup fails. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
* Add debugging for wp-env start failures This adds diagnostic output to help identify the root cause of wp-env port binding failures in CI.
* Add debugging for wp-env start failures This adds diagnostic output to help identify the root cause of wp-env port binding failures in CI.
Changes proposed in this Pull Request:
Contributes to QAO-172
Adds diagnostics to debug intermittent wp-env port binding failures and explicitly sets all wp-env ports via environment variables.
How to test the changes in this Pull Request: