Skip to content
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

Regenerate changed flatbuffer definitions #1212

Merged
merged 1 commit into from
May 13, 2024

Conversation

sondavidb
Copy link
Contributor

@sondavidb sondavidb commented May 2, 2024

Issue #, if available:
Fixes #491

Description of changes:
Previously, any changes to the flatbuffer definitions (ztoc/fbs/ztoc.fbs and ztoc/compression/fbs/zinfo.fbs) would not automatically regenerate the flatbuffer definitions. This change allows the Makefile to track these changes, and the refactors to the flatc target to do so.. Additionally, I added flatc as a prereq to soci-snapshotter-grpc, so it should automatically regenerate if any changes are present when make is run.

Testing performed:
make after changing flatbuffer definition and confirmed that they were being regenerated.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@sondavidb sondavidb requested a review from a team as a code owner May 2, 2024 18:54
@austinvazquez
Copy link
Contributor

Change LGTM. While you have the hood open on this, can you also add a check to scripts/check-flatc.sh for a diff check on the compression flatbuffers as well to fail CI if a contributor forgets to add the new generated compression flatbuffers code to their commit?

@sondavidb sondavidb force-pushed the properly-check-for-changes-flatc branch 6 times, most recently from 31ffee3 to 23ed299 Compare May 2, 2024 23:30
austinvazquez
austinvazquez previously approved these changes May 3, 2024
Kern--
Kern-- previously approved these changes May 10, 2024
Makefile Show resolved Hide resolved
@sondavidb sondavidb dismissed stale reviews from Kern-- and austinvazquez via e455c86 May 10, 2024 22:16
@sondavidb sondavidb force-pushed the properly-check-for-changes-flatc branch from 23ed299 to e455c86 Compare May 10, 2024 22:16
@sondavidb sondavidb merged commit 2924990 into awslabs:main May 13, 2024
12 checks passed
@sondavidb sondavidb deleted the properly-check-for-changes-flatc branch May 13, 2024 16:49
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.

[Bug] Makefile does not recognize changed flatbuffer definitions
3 participants