[MOSIP- 42820] Update Gradle commands in push_trigger.yml#655
[MOSIP- 42820] Update Gradle commands in push_trigger.yml#655Ivanmeneges wants to merge 1 commit into
Conversation
Signed-off-by: Ivanmeneges <ivan.anil016@gmail.com>
WalkthroughThis pull request modifies the GitHub Actions push trigger workflow for Android builds. Changes include updating Gradle build commands for CodeQL checks and pre-build verification, adding the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested reviewers
Poem
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.github/workflows/push_trigger.yml(3 hunks)
🔇 Additional comments (2)
.github/workflows/push_trigger.yml (2)
47-47: Clarify intent of build command change and error handling.The change from
./gradlew compileDebugSources || trueto./gradlew assembleDebugremoves the error suppression mechanism. Previously, compilation failures would be tolerated (allowing CodeQL to run on partial code); now, any build failure will cause the CodeQL job to fail entirely.Additionally,
assembleDebugperforms a full build (including resource processing and dexing), whilecompileDebugSourcesonly compiles Java sources. This is a more comprehensive check for CodeQL, but it also increases build time and failure surface.Please confirm:
- Is the stricter failure behavior intentional?
- Does the project consistently build successfully, or were there cases where
|| truewas necessary for CI stability?- Should
assembleDebugbe retained, or shouldcompileDebugSourcesbe used with adjusted error handling?
80-80: Good safety improvement with xargs flag.The addition of the
-rflag to xargs is a safe enhancement. It preventssedfrom executing if nobuild.gradlefiles are found, avoiding edge-case behavior where sed receives no input.
| cd client | ||
| chmod +x gradlew | ||
| ./gradlew clean assembleDebug --dry-run | ||
| ./gradlew tasks --all > /dev/null |
There was a problem hiding this comment.
Replace task listing with actual validation.
The step name is "Validate Gradle Build" but the new command ./gradlew tasks --all > /dev/null only enumerates available tasks without performing any validation. The previous command ./gradlew clean assembleDebug --dry-run used --dry-run to validate the task execution graph without a full build.
Simply listing tasks does not catch build configuration errors, missing dependencies, or task graph issues. This undermines the purpose of the pre-build validation step and could allow broken builds to proceed to the APK build stage.
Apply this diff to restore validation semantics:
- ./gradlew tasks --all > /dev/null
+ ./gradlew tasks --all
+ ./gradlew clean assembleDebug --dry-runOr, if the intent is a lightweight check, clarify the step purpose and rename it accordingly (e.g., "Verify Gradle Installation" or "List Build Tasks").
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| ./gradlew tasks --all > /dev/null | |
| ./gradlew tasks --all | |
| ./gradlew clean assembleDebug --dry-run |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.