Skip to content
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

Update Sonar Scanner version for Improved Compatibility #185

Closed
wants to merge 6 commits into from

Conversation

SaikrishnaBairamoni
Copy link
Contributor

PR Details

Updated Sonar Scanner to version 5.0.1.3006, compatible with Java 17.

Description

This update addresses the need for keeping our environment aligned with the latest supported Java version for Sonar Scanner. The deprecated support for Java 11 necessitated this upgrade. These changes ensure our build and analysis processes remain efficient and up-to-date with current standards.

Related GitHub Issue

Related Jira Key

Motivation and Context

How Has This Been Tested?

Docker build process tested locally to ensure the successful installation of Java 17 and the new Sonar Scanner version to remove the deprecated warning
  • Ensured that existing functionalities are not affected by this upgrade.

Types of changes

  • Defect fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that cause existing functionality to change)

Checklist:

  • I have added any new packages to the sonar-scanner.properties file
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Dockerfile Outdated
@@ -255,8 +260,13 @@ RUN sed -i 's|http://archive.ubuntu.com|http://us.archive.ubuntu.com|g' /etc/apt
sudo -u carma rosdep --rosdistro noetic install --from-paths /home/carma/.base-image/workspace/src --ignore-src -y && \
sudo -u carma echo "source ~/.base-image/init-env.sh" >> /home/carma/.bashrc && \
sudo -u carma echo "cd /opt/carma" >> /home/carma/.bashrc && \
apt-get update && \
apt-get install -y --no-install-recommends ${BASE_DEPS} && \
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these two lines needed, since they have already been executed earlier in the Dockerfile?

python3-catkin-pkg \
python3-catkin-tools \
python3-colcon-common-extensions \
python3-future \
python3-lttng \
Copy link
Contributor

Choose a reason for hiding this comment

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

For some reason this PR looks like it is adding new packages to be installed in the Dockerfile under ROS_DEPS, but they are already included on the develop branch. Would you mind looking into resolving this, or alternatively starting clean and putting up a new PR?

@@ -108,13 +108,18 @@ ARG ROS_DEPS="apt-transport-https \
libopenblas-dev \
libpcap-dev \
libpugixml-dev \
lttng-tools \
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a specific comment on this code change, but please create a GitHub Issue in the carma-platform repository that we can link this PR to. It would be great if you can include the deprecated warning that we are receiving in that issue as well.

@SaikrishnaBairamoni
Copy link
Contributor Author

Closing this PR and opened new one due to branch issue (Addressed all above comments in new PR) : #186

@SaikrishnaBairamoni SaikrishnaBairamoni deleted the upgrade_sonar_scanner branch January 24, 2024 20:18
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