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

Remove deprecated Warnings plugin #358

Closed
wants to merge 1 commit into from

Conversation

rotu
Copy link
Contributor

@rotu rotu commented Dec 13, 2019

Fixes #315

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rotu Dan Rose
Fixes ros2#315
Fixes ros2#316
@dirk-thomas
Copy link
Member

With this patch applied how are we being informed if there are compiler warnings, CMake warnings, etc?

@dirk-thomas dirk-thomas added the more-information-needed Further information is required label Dec 13, 2019
@rotu
Copy link
Contributor Author

rotu commented Dec 13, 2019

By looking at the output and the failure status of CI. If it's severe enough to treat it as an error (like a missing space via ament_uncrustify), it's certainly worth adding it in test coverage.

It would also be reasonable to add support in a future PR for another plugin such as https://github.com/jenkinsci/warnings-ng-plugin/blob/master/doc/Documentation.md

@dirk-thomas
Copy link
Member

By looking at the output

That doesn't sounds like a reasonable substitution to me. It is unlikely that someone reads the full output if the build comes back green.

the failure status of CI

Without this plugin I would expect the build to be green even if it has CMake / compiler warnings? Not sure I understand this correctly.

it's certainly worth adding it in test coverage.

How would this be actually done?

It would also be reasonable to add support in a future PR for another plugin

Atm the warning plugins gives us visibility into CMake / compiler warnings. Without it we don't have any notification if those occur. Without a proper working replacement I don't think this should be removed.

@rotu
Copy link
Contributor Author

rotu commented Dec 13, 2019

  1. It’s totally reasonable to look at your build output. Especially since these are not issues that we haven’t deemed worthy of being build errors.

  2. Compiler issues can and should be caught by clang format, clang tidy, and other such tools.

  3. Okay. How could I test such a PR?

@dirk-thomas
Copy link
Member

dirk-thomas commented Dec 13, 2019

It’s totally reasonable to look at your build output.

At the scale of PRs / CI builds we are facing I disagree on that. I have to be able to rely on the CI status to tell if there is anything wrong I should look into.

Compiler issues can and should be caught by clang format, clang tidy, and other such tools.

I don't think that is true for CMake warnings.

@rotu
Copy link
Contributor Author

rotu commented Dec 14, 2019

I think you’re right this bears more thought. I transitioned things over basically as-is to warnings-ng in #359.

@wjwwood
Copy link
Member

wjwwood commented Jan 2, 2020

Closing in favor of #359

@wjwwood wjwwood closed this Jan 2, 2020
@rotu
Copy link
Contributor Author

rotu commented Jan 2, 2020

@wjwwood why did you close this? This PR is still needed

@wjwwood
Copy link
Member

wjwwood commented Jan 2, 2020

Unless I misunderstand, we won't be separately removing and adding the other warnings plugin. We would only remove and replace it all at once. Please consolidate this to one pull request, i.e. remove the current plugin in the other pull request.

If @dirk-thomas disagrees, I can reopen this.

@rotu
Copy link
Contributor Author

rotu commented Jan 2, 2020

Then merge them at the same time. I personally would prefer to have overlapping coverage for a short period.

@dirk-thomas
Copy link
Member

We can't run CI for a change which spreads across two separate branches / PRs.

@rotu
Copy link
Contributor Author

rotu commented Jan 2, 2020

Ah that makes sense. Merged into #359 and rebased

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-information-needed Further information is required
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Stop using the deprecated "Warnings" plugin
3 participants