Skip to content

Chore/add logs#28

Open
hemusimple wants to merge 15 commits into
tejpratap46:chore/timber-loggingfrom
hemusimple:chore/add-logs
Open

Chore/add logs#28
hemusimple wants to merge 15 commits into
tejpratap46:chore/timber-loggingfrom
hemusimple:chore/add-logs

Conversation

@hemusimple

Copy link
Copy Markdown
Collaborator

No description provided.

@coderabbitai

coderabbitai Bot commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f27ba888-6fd6-48c1-ae06-058db5a49285

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@amazon-q-developer amazon-q-developer Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review Summary

I encountered technical difficulties accessing the file contents for this PR. The PR appears to be adding logging functionality (based on the title "Chore/add logs") with changes to:

  • kotlin-review.yml
  • modules/lyrics-maker/src/main/java/com/tejpratapsingh/lyricsmaker/presentation/activity/LyricsActivity.kt

Unfortunately, I was unable to retrieve the file contents from the repository to perform a detailed code review. This may be due to repository access permissions or the files being in an unexpected state.

To proceed with the review, please ensure:

  1. The repository is accessible
  2. The files exist in the head branch
  3. There are no permission issues preventing file access

I recommend having another reviewer manually examine the changes, particularly focusing on:

  • Proper logging implementation and security (no sensitive data in logs)
  • Consistency with the existing logging framework
  • Any changes to the CI/CD workflow file (kotlin-review.yml)

You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new GitHub Actions workflow for Kotlin code reviews and adds debug logging to LyricsActivity.kt. Feedback focuses on the workflow configuration, noting that the file must be moved to .github/workflows/ to function, and highlighting risks associated with hardcoded absolute paths and potential secret exposure in uploaded log artifacts. A suggestion was also provided to use the existing TAG constant for logging consistency in the Android activity.

Comment thread kotlin-review.yml
@@ -0,0 +1,43 @@
name: Kotlin PR Review

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

high

GitHub Actions workflow files must be located in the .github/workflows/ directory to be recognized and executed by GitHub. Currently, this file is in the root directory, so the workflow will not be triggered.

Comment thread kotlin-review.yml
if: always()
with:
name: review-output
path: review_output.log

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

security-high high

Uploading the review log as an artifact poses a security risk. While GitHub Actions masks secrets in the console output, it does not mask them in uploaded artifacts. If the review_ci.py script or its dependencies log environment variables or the REVIEWER_TOKEN, these secrets will be exposed in the review-output artifact. Ensure the log is sanitized before uploading or avoid uploading it if it contains sensitive data.

Comment thread kotlin-review.yml Outdated
Comment on lines +34 to +35
pip install -q -r /home/rntbci/AIML/code-reviewer/requirements.txt
python /home/rntbci/AIML/code-reviewer/review_ci.py 2>&1 | tee review_output.log

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

Hardcoding absolute paths to a specific user's home directory (/home/rntbci/...) makes the CI workflow brittle and non-portable. This dependency on a specific runner's filesystem structure should be avoided as it will cause the workflow to fail if the runner environment changes or if the tool is moved. Consider using environment variables to define the tool's location or packaging the tool within the repository or a container.

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

Log.d("LyricsActivity","onCreate")

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

For consistency and better maintainability, use the TAG constant defined in the companion object instead of a hardcoded string literal. This ensures that the log tag remains uniform across the class and is easier to update if needed. Also, added a space after the comma for better readability.

Suggested change
Log.d("LyricsActivity","onCreate")
Log.d(TAG, "onCreate")

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.

1 participant