Skip to content

Conversation

@AndrewQuijano
Copy link
Collaborator

@AndrewQuijano AndrewQuijano commented Dec 22, 2025

Your checklist for this pull request

  • I've documented or updated the documentation of every function and struct this PR changes.
  • I've added tests that prove my fix is effective or that my feature works (if possible)

Detailed description

This PR completes the following tasks:

  1. Utilize Protobuf to generate some of the C++/Python database classes. Use this to confirm the table names and fields match to protobuf to avoid database drift.
    a) For C++ there is a function called __enforce_proto, this confirms the fields match what is on protobuf and on the struct. It also confirms the name of the Struct and Protobuf match, e. g. it is called Loc and Loc.
    b) For Python a test case was added to confirm it matches with protobuf too.

  2. Other minor fixes, such as:
    a. changing the argument to just be 'x86_64', not 'panda-system-x86_64'
    b. Updating the Hypercall to be multi-arch, prep for ARM
    c. We use the new SQL Alchemy version of Composite, not the hack used.

Test plan

Since I am only changing for the database is built, the same CI/CD should pass.
...

Closing issues

...

@github-actions github-actions bot added the dependencies Pull requests that update a dependency file label Dec 31, 2025
@AndrewQuijano AndrewQuijano changed the title Utilize Protobuf for one file for Databases Utilize Protobuf for enforcing Schema Synchronization Dec 31, 2025
@github-actions github-actions bot added the Github-files GitHub CI/CD label Dec 31, 2025
@AndrewQuijano AndrewQuijano force-pushed the one-db branch 6 times, most recently from 37b836f to 6cd2b9e Compare December 31, 2025 06:35
@AndrewQuijano AndrewQuijano force-pushed the one-db branch 2 times, most recently from 26b98cb to 6faa887 Compare January 6, 2026 01:32
@AndrewQuijano AndrewQuijano marked this pull request as ready for review January 6, 2026 03:04
@AndrewQuijano AndrewQuijano merged commit 9eadf70 into master Jan 6, 2026
4 checks passed
@AndrewQuijano AndrewQuijano deleted the one-db branch January 6, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file Documentation LAVA documentation Github-files GitHub CI/CD Lava-Core LAVA C/C++ code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants