-
Notifications
You must be signed in to change notification settings - Fork 4
Vgoncharova/ktor train #159
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
…meouts in EAP sample configurations
WalkthroughThe change modifies TeamCity build configurations in TriggerProjectSamplesOnEAP.kt to replace inline script-based Gradle invocations with a dedicated Gradle build step, adds failure conditions detecting agent availability issues and build timeouts across EAP sample validation builds, and increases timeout safeguards for composite EAP builds. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes The changes span multiple build configuration blocks with consistent pattern additions (failure conditions, timeouts), but require careful review of Gradle build step restructuring, agent availability logic, and timeout value implications across several interdependent build types. Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 2 inconclusive)
✨ 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 |
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.
Actionable comments posted: 0
🧹 Nitpick comments (2)
.teamcity/src/subprojects/train/TriggerProjectSamplesOnEAP.kt (2)
66-71: Simplify the redundantelsebranch.The
else -> ""branch at line 70 is redundant because thestandalone -> ""branch at line 67 already handles the standalone case, and lines 68-69 cover the!standalonecases. The else branch is effectively unreachable.Apply this diff to simplify the logic:
workingDir = when { standalone -> "" isPluginSample && !standalone -> "samples/$projectName" !standalone -> projectName - else -> "" }
236-256: Consider consolidating overlapping failure conditions.The failure conditions at lines 237-241 ("No agents available to run") and lines 249-253 ("No suitable agents") appear to check for similar agent availability issues. If these patterns catch distinct TeamCity error messages, this is fine; otherwise, consider consolidating them to avoid redundant checks.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.teamcity/src/subprojects/train/TriggerProjectSamplesOnEAP.kt(8 hunks)
🔇 Additional comments (6)
.teamcity/src/subprojects/train/TriggerProjectSamplesOnEAP.kt (6)
73-73: Verify that agents have compatible Gradle versions.Setting
useGradleWrapper = falsemeans the build will use Gradle from the agent's environment rather than the project's wrapper. Ensure all agents running these builds have compatible Gradle versions installed.
160-175: Good addition for handling agent availability issues.The failure conditions appropriately catch agent availability and queue timeout issues with clear failure messages.
196-196: Appropriate change fromequalstoexists.Using
exists()is more appropriate here since we only need to verify thatANDROID_HOMEis defined, not check for a specific value.
343-349: LGTM!The additional failure condition for agent availability is consistent with the other build configurations and appropriate for the version resolver.
402-410: Good defensive handling for composite builds.The failure conditions appropriately handle agent availability issues in the composite builds with reasonable timeout values (30 minutes) that account for multiple dependent builds.
Also applies to: 436-444
487-501: Comprehensive failure handling for the main composite.The failure conditions and 60-minute timeout are well-suited for the main composite build that orchestrates all EAP sample validation.
No description provided.