Skip to content

Conversation

@srajupusapati
Copy link
Contributor

@srajupusapati srajupusapati commented Oct 10, 2025

No description provided.

@srajupusapati srajupusapati requested a review from Copilot October 21, 2025 08:20
Copy link
Contributor

Copilot AI left a 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 updates submodule configuration and adds a new staging CI workflow. The changes remove an unused submodule, update the mobile-offline-downloader-android submodule URL to use HTTPS, and introduce a GitHub Actions workflow for staging builds with Firebase distribution support.

  • Removes the android-vault submodule and updates mobile-offline-downloader-android URL to HTTPS
  • Adds comprehensive staging CI workflow with unit testing, APK building, and Firebase distribution
  • Supports both pull request triggers and manual workflow dispatch with configurable options

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.gitmodules Removes android-vault submodule and updates mobile-offline-downloader-android URL to HTTPS
.github/workflows/Staging.yml Adds new staging CI workflow with build, test, and Firebase distribution capabilities

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines +106 to +107
grep -r "<testsuite" app/build/test-results | \
sed -n 's/.*tests=\"\([0-9]*\)\" failures=\"\([0-9]*\)\" errors=\"\([0-9]*\)\".*/- Total: \1, Failures: \2, Errors: \3/p' >> $GITHUB_STEP_SUMMARY
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

The path 'app/build/test-results' is incorrect. Based on the workflow, tests are run in the 'apps' directory for the ':student' module, so the path should be 'apps/student/build/test-results' to correctly locate the test results.

Copilot uses AI. Check for mistakes.
Comment on lines +97 to +98
app/build/test-results
app/build/reports/tests
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

The artifact upload paths reference 'app/build/' but should reference 'apps/student/build/' to match the actual build output location. The test results and reports are generated in the student module within the apps directory.

Copilot uses AI. Check for mistakes.
- name: Cleanup sensitive files and directories
run: |
echo "Cleaning up sensitive files..."
rm -rf app
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

Attempting to remove 'app' directory that doesn't exist. The workflow uses 'apps' directory (plural), and the cleanup should either remove 'apps' or specific sensitive files within it. This command will fail silently or have no effect.

Suggested change
rm -rf app
rm -rf apps

Copilot uses AI. Check for mistakes.
run: |
echo "Cleaning up sensitive files..."
rm -rf app
rm -rf buildSrc
Copy link

Copilot AI Oct 21, 2025

Choose a reason for hiding this comment

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

The buildSrc directory is located at 'apps/buildSrc' based on line 77, not at the repository root. This cleanup command targets the wrong path and won't remove the sensitive Secure.kt file created earlier.

Suggested change
rm -rf buildSrc
rm -rf apps/buildSrc

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant