Skip to content

Pin cppcheck to 1.90.#472

Merged
nuclearsandwich merged 2 commits intomasterfrom
nuclearsandwich/pin-cppcheck
Jun 10, 2020
Merged

Pin cppcheck to 1.90.#472
nuclearsandwich merged 2 commits intomasterfrom
nuclearsandwich/pin-cppcheck

Conversation

@nuclearsandwich
Copy link
Copy Markdown
Member

cppcheck 2.0 was released to chocolatey yesterday and is causing major
havoc in our Windows builds. ros2/ros2#942 is
open to track making that work but this will reduce the failure count on
Windows so it's easier to triage and manage builds in the interim.

cppcheck 2.0 was released to chocolatey yesterday and is causing major
havoc in our Windows builds.  ros2/ros2#942 is
open to track making that work but this will reduce the failure count on
Windows so it's easier to triage and manage builds in the interim.
@nuclearsandwich nuclearsandwich requested a review from brawner June 10, 2020 01:10
@nuclearsandwich nuclearsandwich self-assigned this Jun 10, 2020
@nuclearsandwich
Copy link
Copy Markdown
Member Author

Build up to rosidl_typesupport_cpp since it exhibits the errors that pinning is intended to resolve.

Windows Build Status

RUN choco install -y cmake curl git vcredist2013 vcredist140 cppcheck patch
RUN choco install -y cmake curl git vcredist2013 vcredist140 patch
# Pin cppcheck until our builds are compatible with 2.0 https://github.com/ros2/ros2/issues/942
RUN choco install -y cppcheck --version 1.90
Copy link
Copy Markdown
Contributor

@brawner brawner Jun 10, 2020

Choose a reason for hiding this comment

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

Line 112 also needs this. Similar to the rigmarole we had to go through for 1.89->1.9. I'll commit this after dinner if you're not around.

RUN choco upgrade -y all --except="'cppcheck'"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Would it make more sense to pin cppcheck. I'll propose something.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

What do you think of 26da4cb ? I like pinning because it keeps both lines local rather than needing to split attention?

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.

Pinning works for me, definitely makes things simpler.

RUN choco install -y cmake curl git vcredist2013 vcredist140 patch
# Pin cppcheck until our builds are compatible with 2.0 https://github.com/ros2/ros2/issues/942
RUN choco install -y cppcheck --version 1.90
RUN choco pin add --name=cppcheck --version 1.90
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

For whatever reason last time I pinned with chocolatey neither --name cppcheck nor --version=1.90 worked so this command uses two different argument forms.

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.

Does choco pin by itself just apply to all packages?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Does choco pin by itself just apply to all packages?

Nope. It lists existing pins. The --name argument is required for choco pin add https://chocolatey.org/docs/commands-pin

@nuclearsandwich
Copy link
Copy Markdown
Member Author

Testing the pin: Build Status

Copy link
Copy Markdown
Contributor

@brawner brawner left a comment

Choose a reason for hiding this comment

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

Looks good to me. Was pinning actually necessary? Why did the first build succeed?

@brawner
Copy link
Copy Markdown
Contributor

brawner commented Jun 10, 2020

Err, it did install 2.0 during the upgrade, so I'm not entirely sure what's happening.

@nuclearsandwich
Copy link
Copy Markdown
Member Author

Building up to std_msgs is enough to trigger the cppcheck issues on mainline. So if Build Status passes it should validate this pin.

@nuclearsandwich nuclearsandwich merged commit 42a0519 into master Jun 10, 2020
@nuclearsandwich nuclearsandwich deleted the nuclearsandwich/pin-cppcheck branch June 10, 2020 04:29
nuclearsandwich added a commit that referenced this pull request Jun 17, 2020
jacobperron added a commit that referenced this pull request Sep 24, 2020
This reverts #472

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 24, 2020
This reverts #472

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 24, 2020
This reverts #472

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 24, 2020
This reverts #472

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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