This repository was archived by the owner on Oct 26, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
[SOFT-501] Uncommitted Protobuf Generated Code Check in CI #412
Draft
PurpleRhythms
wants to merge
90
commits into
master
Choose a base branch
from
soft_501_commit_generated_code
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 85 commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
e7c16a0
Update .gitignore
PurpleRhythms 1840c9f
Added check for uncommitted MU protobuf changes
PurpleRhythms 2446b93
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms 2346da2
Avoiding duplicate ifs
PurpleRhythms 9479c16
Merge branch 'soft_501_commit_generated_code' of https://github.com/u…
PurpleRhythms 1c81e14
make mu_protos disambiguation
PurpleRhythms 3bc0525
Testing
PurpleRhythms e2c6ce9
Testing #2
PurpleRhythms 6a70e4e
Testing #3
PurpleRhythms 8b179ed
Testing #4
PurpleRhythms e198ceb
More testing
PurpleRhythms 2d7684c
Continued testing #2
PurpleRhythms 24e5a46
Git conflict
PurpleRhythms d912b48
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms ccaaf90
More testing!
PurpleRhythms 8a8b73e
Merge branch 'soft_501_commit_generated_code' of https://github.com/u…
PurpleRhythms 8348ee0
Installing Go and protobufs
PurpleRhythms 603eb72
Test installation
PurpleRhythms a30692d
Get .tar file for Go
PurpleRhythms 8f6654a
Sudo tar instead of just tar
PurpleRhythms 9ee8485
--version -> version
PurpleRhythms cb488c2
More sudos
PurpleRhythms 1e70afa
Removed go and protobuf compilers
PurpleRhythms 2d97ba3
Set up protobuf-c from Jess Muir
PurpleRhythms c24df6c
Brute installing protoc
PurpleRhythms d388982
Install pkg-config
PurpleRhythms baa276c
autoconfig
PurpleRhythms fac4b74
autoreconfig install
PurpleRhythms 0f96adc
Installing folly
PurpleRhythms 47be59d
Copy Paste Jess' code
PurpleRhythms 9aee41c
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms eff696e
Empty commit to rerun CI
PurpleRhythms fc35373
Comments were causing syntax error?
PurpleRhythms 6ebda13
Update main.yml
PurpleRhythms 113782f
More testing!!
PurpleRhythms 2d768ac
More dependecies
PurpleRhythms c94b54b
Obselete package
PurpleRhythms 2c06ace
Some includes
PurpleRhythms 25ec03e
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms 7021e3e
Empty commit
PurpleRhythms 2c39fc1
Merge branch 'soft_501_commit_generated_code' of https://github.com/u…
PurpleRhythms 9d9335f
Removing comments
PurpleRhythms e07720b
All in ~
PurpleRhythms fb1695f
Start from scratch
PurpleRhythms e717694
pkg-config
PurpleRhythms 7a8e93f
Update main.yml
PurpleRhythms e9459ca
Update main.yml
PurpleRhythms 0b770e8
Update main.yml
PurpleRhythms feb72a3
Sudo on --version but keeping usr/local dir
PurpleRhythms 49d15c5
Please work
PurpleRhythms 81d30bb
PATH change?
PurpleRhythms 1579487
Try again with paths
PurpleRhythms 4c431ba
Adding $HOME to $GITHUB_PATH
PurpleRhythms 2a9d2f1
/bin is also extracted
PurpleRhythms 6417cb0
Return to .local/bin
PurpleRhythms 3e19e00
Rollback to when protoc --version worked
PurpleRhythms 01f3b9a
Attempting to install protobuf-c
PurpleRhythms 25ac386
Spaces matter
PurpleRhythms 217a4d3
Fix ZIP download link
PurpleRhythms b24afdd
Linux different?
PurpleRhythms 68511f7
Extracting wrong files
PurpleRhythms 6f98e89
cd before running autogen.sh
PurpleRhythms 15901a3
Update main.yml
PurpleRhythms 5f52ece
wokd
PurpleRhythms 99096f5
tree
PurpleRhythms deab9c5
Update main.yml
PurpleRhythms 5d79e49
Absolute Path
PurpleRhythms 02642e7
Unzip stopped working
PurpleRhythms d9fc1bb
Just tree
PurpleRhythms 0512585
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms 02cb386
No $ variables
PurpleRhythms 551cb2f
Trying to run autogen.sh twice
PurpleRhythms eabee34
Continue on error to run twice
PurpleRhythms 95285c5
Adding test step
PurpleRhythms 0cab591
Re-cd next step
PurpleRhythms 6fb5e8b
Sudo all installation lines + apt get libtool
PurpleRhythms aed5f30
Try installing protobuf cpp as protobuf for protobuf c installation
PurpleRhythms b9d230d
Fix protobuf installation script
PurpleRhythms e8067fb
Retest protobuf-c pakage installation
PurpleRhythms 4568f00
Removing make check and increasing job time
PurpleRhythms 792a838
Adding Caching to protobuf installation
PurpleRhythms 62ebb15
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms 5f120c9
Rerun with increased timeout
PurpleRhythms 6ad5a48
Merge branch 'soft_501_commit_generated_code' of https://github.com/u…
PurpleRhythms 24acd4b
Specify protobuf usr/local paths for caching, Increase timeout minute…
PurpleRhythms b2fc596
Empty Commit to test caching
PurpleRhythms ec1d6af
Merge branch 'master' into soft_501_commit_generated_code
PurpleRhythms efc735c
Change permissions for caching
PurpleRhythms 87b17d4
Fix permissions for all cached folders
PurpleRhythms 8734926
Add sudo
PurpleRhythms File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| <!-- This is posted as a PR comment when CI detects uncommitted protobuf changes. --> | ||
| ## Uncommitted MU protobuf changes detected! | ||
|
|
||
| Message in progress! | ||
|
|
||
| It looks like the generated .pb-c.c .pb-c.h and _pb2.py files in libraries/codegen-tooling don't match the CAN message definition file at codegen/can_messages.asciipb. If you've changed the CAN message definitions, please run `make codegen` locally and push the changes. | ||
|
|
||
| Alternatively, maybe you've edited can_messages.asciipb in the [codegen-tooling-msxiv][1] repo. This [has been deprecated][2]: please make your changes to codegen/can_messages.asciipb instead. | ||
|
|
||
| [1]: https://github.com/uw-midsun/codegen-tooling-msxiv | ||
| [2]: https://uwmidsun.atlassian.net/l/c/ghJhoqbT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Try and rerun the CI jobs to see if the caching works; if it does, great, but if it doesn't, I worry that caching all of /usr/local/lib will cause issues. I assume there's a particular protobuf library in there that you want to cache, so to cache only that library I'd recommend copying it from /usr/local/lib to some path you can restore (like make ~/.cache/protobuf or something and copy it there) in the install-protobuf step, then copying it back in a step that runs if the cache successfully restored.