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 uncrustify version to fix warnings on armhf #5

Merged
merged 2 commits into from Jun 21, 2019

Conversation

emersonknapp
Copy link
Contributor

Connected to ros2/ros2#721

Fixes these warnings https://ci.ros2.org/view/All/job/test_ci_linux-armhf/8/warnings23Result/package.575780676/

This patch mirrors just-opened uncrustify/uncrustify#2308 - once that change is bundled into a release, we can update the version we pull and drop the patch.

Signed-off-by: Emerson Knapp eknapp@amazon.com

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
@emersonknapp
Copy link
Contributor Author

emersonknapp commented Jun 4, 2019

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Full re-run after other PRs merged

  • Linux-armhf Build Status

Copy link
Contributor

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

The code looks fine to me. I'm going to hold off merging this until the upstream patch gets merged, then we can merge this in. Thanks.

@dirk-thomas
Copy link

The upstream PR has been merged. Instead of merging this PR I would suggest to rebase the vendor code to the current master of upstream instead.

@emersonknapp
Copy link
Contributor Author

emersonknapp commented Jun 6, 2019

The vendor code logic is downloading a tarball of a specific release tag, currently, (https://github.com/ament/uncrustify_vendor/blob/master/CMakeLists.txt#L49) - are you sure we want to point it at master? My thinking was that we would wait until the next release, which will include this fix, and remove the patch then.

@dirk-thomas
Copy link

are you sure we want to point it at master?

Yes, that would be the intention. If you like to use the latest changes landed upstream using a commit hash from upstream sounds better than cherry-picking the change into our vendor package.

During that process it will need to be made sure that all our tests pass with the updated version of uncrustify.

@emersonknapp
Copy link
Contributor Author

OK - thanks for confirming. I will update it

Signed-off-by: Emerson Knapp <eknapp@amazon.com>
@emersonknapp emersonknapp changed the title Patch md5 algorithm in uncrustify source to fix warnings on armhf Update uncrustify version to fix warnings on armhf Jun 6, 2019
@emersonknapp
Copy link
Contributor Author

emersonknapp commented Jun 6, 2019

Here is a run doing a full build and a --mixin linters-only test (with this PR and the two above Connected ones fixing formatting for latest uncrustify)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status
  • Linux-armhf Build Status
    Note: the armhf build instability is only from remaining FastCDR warnings

@emersonknapp
Copy link
Contributor Author

@clalancette do you think we're good to merge now? Updated to the upstream version after that was merged.

@clalancette
Copy link
Contributor

@emersonknapp I'm happy with this PR, but in order not to break CI we'll need to land ros2/rcutils#164 first/simultaneously.

@emersonknapp
Copy link
Contributor Author

CI run against latest - only including this PR

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status
  • Linux-armhf Build Status

@emersonknapp
Copy link
Contributor Author

emersonknapp commented Jun 20, 2019

All upstream changes have been merged, the above armhf build only has the unrelated warnings that are being fixed in ros2/demos#372

@clalancette good to merge?

@emersonknapp
Copy link
Contributor Author

@clalancette ping

@clalancette clalancette merged commit 73f07c3 into ament:master Jun 21, 2019
@emersonknapp emersonknapp deleted the armhf-warnings branch June 21, 2019 17:01
@@ -44,17 +44,20 @@ macro(build_uncrustify)
set(patch_exe patch)
endif()

# Pinning to tip of master at the time of a desired bugfix
set(uncrustify_version 45b836cff040594994d364ad6fd3f04adc890a26)
set(uncrustify_version_hash 7cc32ad800c8d639bdf145e2a113a66b)
# Get uncrustify 0.68.1

Choose a reason for hiding this comment

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

Keeping this comment unchanged is pretty confusing since the code doesn't use that specific version anymore.

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.

None yet

4 participants