-
-
Notifications
You must be signed in to change notification settings - Fork 0
URCA CAN Tooling ✨ #176
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
base: main
Are you sure you want to change the base?
URCA CAN Tooling ✨ #176
Conversation
| inc/ | ||
| !inc/output.dbc | ||
|
|
||
| # CANfigurator | ||
| Autogen/CAN/Inc/can_msg_ids.h | ||
| Autogen/CAN/Inc/CANDler.h | ||
| Autogen/CAN/Inc/Custom_CAN_ID.h | ||
| Autogen/CAN/Inc/GR_IDS.h | ||
| Autogen/CAN/Inc/output.dbc | ||
| Autogen/CAN/Src/output.dbc | ||
| Autogen/CAN/Doc/output.dbc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In it's current form I think the full paths will not work (off of memory) but also this can be simplified greatly
| inc/ | |
| !inc/output.dbc | |
| # CANfigurator | |
| Autogen/CAN/Inc/can_msg_ids.h | |
| Autogen/CAN/Inc/CANDler.h | |
| Autogen/CAN/Inc/Custom_CAN_ID.h | |
| Autogen/CAN/Inc/GR_IDS.h | |
| Autogen/CAN/Inc/output.dbc | |
| Autogen/CAN/Src/output.dbc | |
| Autogen/CAN/Doc/output.dbc | |
| Doc/*.dbc | |
| Inc/*.h |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is an extraneous duplicate of the one in Autogen/CAN/Inc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is an extraneous duplicate of the one in Autogen/CAN/Inc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is an extraneous duplicate of the one in Autogen/CAN/Inc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file is an extraneous duplicate of the one in Autogen/CAN/Inc
| use File::Basename; | ||
| use File::Path qw(make_path); | ||
| my $yaml_file = $ARGV[0] // 'format.CANdo'; | ||
| my $output_file = $ARGV[1] // 'can_msg_ids.h'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please pick a capitalization format and stick to it for all of them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CANDler.h is a reserved name, please call it something else (maybe GRCAN_MSG_DATA.h or similar)
|
Please use the
|
# Implement Perl Critic ## Problem and Scope Trying to resolve issue #174 for CAN URCA, who are writing in Perl. A Perl::Critic implementation was desired for verifying commits. ## Description Added a minimal Perl::Critic file with an appropriate GitHub Action in a .yml file, which is named similarly. Outputs to `$GITHUB_STEP_SUMMARY` and as GitHub annotations within the PR context ## Gotchas and Limitations A .perlcritic file allows for a range of harshness when it comes to checking, as well as how descriptive it is in describing errors. This ranges from 1-5 and 1-11, respectively. ## Testing - [x] HOOTL testing - [ ] HITL testing - [x] Human tested ### Testing Details Tested by copying current Perl code in and checking output of action by hand ## Larger Impact Will help Perl code be nicely written ## Additional Context and Ticket Resolves #174 Helps #176 Parallel to #185 --------- Co-authored-by: Daniel Hansen <dchansen06@gmail.com>
| - name: Install YAML::XS | ||
| uses: perl-actions/install-with-cpanm@v1 | ||
| with: | ||
| install: YAML::XS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider switching to one that provides caching for faster runtimes
| - name: Install YAML::XS | |
| uses: perl-actions/install-with-cpanm@v1 | |
| with: | |
| install: YAML::XS | |
| - name: Setup Perl | |
| uses: shogo82148/actions-setup-perl@v1 | |
| with: | |
| install-modules: 'YAML::XS' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Inspired from #179
URCA Can Tooler
Problem and Scope
Last year CAN ID updating very painful and sad -- manual downloading/parsing of google sheet per change.
Description
ID Constants to autogenerate header files upon compile from custom yaml format to enums/structs/as needed.
Gotchas and Limitations
No nice UI, single raw huge yaml file. Other stuff.
Testing
Lots of it. Error handling for all incorrect input, testing with last year's data spreadsheet
Testing Details
Yes
Larger Impact
Reduce data->code conversion errors, less manual human labor & upkeep needed to manage IDs.
Additional Context and Ticket