Skip to content

[MOSIP-44195] Update maven-publish-android-download.yaml#287

Open
Prafulrakhade wants to merge 1 commit into
masterfrom
Prafulrakhade-patch-30
Open

[MOSIP-44195] Update maven-publish-android-download.yaml#287
Prafulrakhade wants to merge 1 commit into
masterfrom
Prafulrakhade-patch-30

Conversation

@Prafulrakhade
Copy link
Copy Markdown
Member

@Prafulrakhade Prafulrakhade commented Jan 14, 2026

Summary by CodeRabbit

  • Chores
    • Updated build workflow configuration to adjust module processing in the publish step.

✏️ Tip: You can customize this high-level summary in your review settings.

Signed-off-by: Praful Rakhade <prafulrakhade02@gmail.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 14, 2026

Walkthrough

The Maven publish workflow step for Android downloads was updated to target the inji module instead of mosip. Maven metadata files and artifact paths referenced in the build output preparation step now point to io/inji directories.

Changes

Cohort / File(s) Summary
Build Workflow Configuration
.github/workflows/maven-publish-android-download.yaml
Updated artifact preparation step to delete maven-metadata files from io/inji and compress io/inji artifacts instead of io/mosip

Poem

🐰 From mosip's halls to inji we hop,
A module switch, our workflow's top!
Build artifacts now dance and prance,
In directories new—give us a chance! ✨

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately identifies the specific file being modified (maven-publish-android-download.yaml) and references the MOSIP ticket, but doesn't convey the key change (updating module from mosip to inji).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In @.github/workflows/maven-publish-android-download.yaml:
- Around line 187-194: The comment "Zip only io/inji folder contents" is
inaccurate: the zip command `zip -r ../../build-outputs.zip io` recursively zips
the entire `io` directory (not just `io/inji`), and the `find ... -name
"maven-metadata*"` will only affect files under `io/inji` if that path exists;
either update the comment to reflect that the entire `io` directory is being
zipped, or change the zip command to `zip -r ../../build-outputs.zip io/inji` to
zip only `io/inji`; also verify the Gradle output path matches `io/inji` so the
`find` invocation actually deletes metadata files (adjust the `find` path if the
artifacts are produced elsewhere).
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 99d244f and 5211955.

📒 Files selected for processing (1)
  • .github/workflows/maven-publish-android-download.yaml

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Comment on lines 187 to 194
- name: Prepare and zip build outputs
run: |
# Delete metadata* files from all modules inside io/mosip
find ${{ inputs.SERVICE_LOCATION }}/${{ inputs.ANDROID_SERVICE_LOCATION }}/build/staging/io/mosip -type f -name "maven-metadata*" -delete
# Delete metadata* files from all modules inside io/inji
find ${{ inputs.SERVICE_LOCATION }}/${{ inputs.ANDROID_SERVICE_LOCATION }}/build/staging/io/inji -type f -name "maven-metadata*" -delete

# Zip only io/mosip folder contents
# Zip only io/inji folder contents
cd ${{ inputs.SERVICE_LOCATION }}/${{ inputs.ANDROID_SERVICE_LOCATION }}/build/staging
zip -r ../../build-outputs.zip io
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

# First, let's look at the full workflow file to understand the context
cat -n .github/workflows/maven-publish-android-download.yaml | head -200

Repository: mosip/kattu

Length of output: 10599


🏁 Script executed:

# Search for references to io/mosip and io/inji in the entire codebase
echo "=== Searching for io/mosip references ==="
rg "io/mosip" -n
echo ""
echo "=== Searching for io/inji references ==="
rg "io/inji" -n

Repository: mosip/kattu

Length of output: 231


🏁 Script executed:

# Look for build configuration files that might define the artifact structure
echo "=== Looking for build.gradle files ==="
fd -e gradle -o fd -e gradle.kts
echo ""
echo "=== Looking for pom.xml files ==="
fd -e pom.xml
echo ""
echo "=== Looking for Maven settings ==="
fd -e settings.gradle -o fd -e settings.gradle.kts

Repository: mosip/kattu

Length of output: 429


🏁 Script executed:

# Search for files that call this reusable workflow
rg "maven-publish-android-download" -n

# Also check if there are any references to the workflow in README or documentation
fd -type f -name "*.md"

Repository: mosip/kattu

Length of output: 225


🏁 Script executed:

# Let's look at git history to understand what the previous path was
git log --oneline -n 20 -- ".github/workflows/maven-publish-android-download.yaml"

Repository: mosip/kattu

Length of output: 119


🏁 Script executed:

# Check the exact changes in this file to see what was changed from io/mosip to io/inji
git diff HEAD~1 HEAD -- ".github/workflows/maven-publish-android-download.yaml" 2>/dev/null || echo "No git diff available"

Repository: mosip/kattu

Length of output: 76


🏁 Script executed:

# Show the specific commit that updated the file
git show 5211955 -- ".github/workflows/maven-publish-android-download.yaml" | head -100

Repository: mosip/kattu

Length of output: 2830


🏁 Script executed:

# Search for where this workflow is called or referenced
rg "maven-publish-android-download" --type yaml
rg "maven-publish-android-download" --type md

Repository: mosip/kattu

Length of output: 203


🏁 Script executed:

# Look for markdown/documentation files
find . -name "*.md" -type f | head -20

Repository: mosip/kattu

Length of output: 678


🏁 Script executed:

# Get the specific section around lines 187-194 from the git show output
git show 5211955 -- ".github/workflows/maven-publish-android-download.yaml" | grep -A 30 "Prepare and zip"

Repository: mosip/kattu

Length of output: 1560


🏁 Script executed:

# Search for documentation about this workflow
cat ./README.md | grep -i "maven-publish"
cat ./docs/maven-publish-to-nexus-readme.md 2>/dev/null | head -50

Repository: mosip/kattu

Length of output: 1843


Update the comment to accurately reflect what the zip command does.

The comment on line 192 states "Zip only io/inji folder contents," but the actual zip command zips the entire io folder, which will include all Maven artifact modules, not just io/inji. Either update the comment to match the command's behavior or adjust the zip command if only io/inji should be included. Additionally, verify that the Gradle build configuration in calling repositories produces artifacts under the io/inji path structure; if not, the find command on line 190 will have no effect.

🤖 Prompt for AI Agents
In @.github/workflows/maven-publish-android-download.yaml around lines 187 -
194, The comment "Zip only io/inji folder contents" is inaccurate: the zip
command `zip -r ../../build-outputs.zip io` recursively zips the entire `io`
directory (not just `io/inji`), and the `find ... -name "maven-metadata*"` will
only affect files under `io/inji` if that path exists; either update the comment
to reflect that the entire `io` directory is being zipped, or change the zip
command to `zip -r ../../build-outputs.zip io/inji` to zip only `io/inji`; also
verify the Gradle output path matches `io/inji` so the `find` invocation
actually deletes metadata files (adjust the `find` path if the artifacts are
produced elsewhere).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants