-
Notifications
You must be signed in to change notification settings - Fork 7
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
Different results from ament_flake8 when run locally #354
Comments
This might be related to ros-tooling/setup-ros#535.
|
I did think the same thing. I tried to manually update all packages in my environment that seemed relevant but could still not replicate the errors that I get from the action. Could it maybe be related to a configuration that is defined for flake8? Is there some custom configuration defined for it or does it just check the defaults? I was not able to find a custom config. |
Okay, you were right. I just realized that flake8 also has plugins. Following the list on https://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html#install-development-tools-and-ros-tools, I installed:
And am now able to completely replicate the findings of the action 😄 |
Yeah, that allows you to reproduce locally, but I still do plan on changing |
Yes, ok. That sounds like a good idea |
This discussion helped me quite a bit, thanks! I have the same issue, so I think I post this here instead of opening another issue: I get different results when running Any idea what I could be missing? Details:
What I tried so far
|
I think the issue is that some flake8 plugins (in this case
So my advice is to make sure to do this part of the Ubuntu (source) installation instructions: https://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html#install-development-tools-and-ros-tools. And, in newer distros, this should not be an issue. |
Alright, thanks a lot for your explanation! |
Description
I am not sure if this is the same problem as #318, but it might be.
I also get different results when running
ament_flake8
locally vs in the github action (https://github.com/ros/diagnostics/actions/runs/3875359248/jobs/6607784527)Expected Behavior
Github action and local should result in the same output.
Actual Behavior
Locally I get:
To Reproduce
Locally I have also
ros-rolling-ament-flake8
installed.And run it with
ament_flake8 $(colcon list --packages-select diagnostic_aggregator diagnostic_common_diagnostics diagnostic_updater self_test -p)
System (please complete the following information)
Additional context
See ros/diagnostics#268
The text was updated successfully, but these errors were encountered: