feat: add _APP_COMPUTE_BUILD_TIMEOUT to console variables#10674
feat: add _APP_COMPUTE_BUILD_TIMEOUT to console variables#10674
Conversation
📝 WalkthroughWalkthroughAdds a new console environment variable Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
Security Scan Results for PRDocker Image Scan Results
Source Code Scan Results🎉 No vulnerabilities found! |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
src/Appwrite/Utopia/Response/Model/ConsoleVariables.php (1)
25-30: Consider grouping with related compute variables.The
_APP_COMPUTE_BUILD_TIMEOUTvariable is placed among domain-related variables (_APP_DOMAIN_TARGET_A,_APP_DOMAIN_TARGET_AAAA). For better organization and discoverability, consider placing it near the other compute-related variable_APP_COMPUTE_SIZE_LIMIT(around line 49-54).
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
app/controllers/api/console.php(1 hunks)src/Appwrite/Utopia/Response/Model/ConsoleVariables.php(1 hunks)tests/e2e/Services/Console/ConsoleConsoleClientTest.php(1 hunks)
⏰ 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). (3)
- GitHub Check: Setup & Build Appwrite Image
- GitHub Check: CodeQL
- GitHub Check: scan
🔇 Additional comments (2)
tests/e2e/Services/Console/ConsoleConsoleClientTest.php (2)
27-27: LGTM!The count update correctly reflects the addition of the new
_APP_COMPUTE_BUILD_TIMEOUTvariable.
30-30: LGTM!The type assertion correctly validates that
_APP_COMPUTE_BUILD_TIMEOUTis an integer, matching the model definition.
✨ Benchmark results
⚡ Benchmark Comparison
|
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
What does this PR do?
adding an env variable in the backend to expose max build duration for the frontend patch.
Test Plan
(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Screenshots may also be helpful.)
Related PRs and Issues
Checklist