Skip to content

Add CI job to verify generated protobuf files are up to date#153

Merged
benthecarman merged 1 commit intolightningdevkit:mainfrom
benthecarman:ci-gen-protos
Mar 17, 2026
Merged

Add CI job to verify generated protobuf files are up to date#153
benthecarman merged 1 commit intolightningdevkit:mainfrom
benthecarman:ci-gen-protos

Conversation

@benthecarman
Copy link
Collaborator

Runs proto generation and checks for uncommitted diffs whenever files in ldk-server-protos/ are changed. Now we will know if the generated files were correctly updated when we edit the protobufs.

This found a formatting issue in the types.rs for me.

Runs proto generation and checks for uncommitted diffs whenever files
in ldk-server-protos/ are changed. Now we will know if the generated
files were correctly updated when we edit the protobufs.

This found a formatting issue in the types.rs for me.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@benthecarman benthecarman requested a review from joostjager March 16, 2026 17:55
@ldk-reviews-bot
Copy link

ldk-reviews-bot commented Mar 16, 2026

👋 Thanks for assigning @joostjager as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
Copy link
Contributor

Choose a reason for hiding this comment

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

Quite a few diff checkout actions are used across the workflows in this repo. Newest used is v5.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am just going to do this in a follow up in the future since we are using different ones across multiple

run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
- name: Install protoc
run: sudo apt-get install -y protobuf-compiler
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure how important version pinning is here? It would be nice to know what to use locally perhaps.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

you just need a version >3.15 of protoc which basically all modern systems have

@benthecarman benthecarman merged commit 3764edb into lightningdevkit:main Mar 17, 2026
8 checks passed
@benthecarman benthecarman deleted the ci-gen-protos branch March 17, 2026 16:33
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.

3 participants