Repository navigation
fix(protos): import core.proto in configs.proto and compile protos in CI - #2475
Closed
apilaskowski wants to merge 1 commit into
Closed
apilaskowski wants to merge 1 commit into
apilaskowski wants to merge 1 commit into
Conversation
configs.proto references DefaultIcebergConfig and DefaultLakehouseConfig, defined in core.proto, without importing it, so protoc fails on //protos:dataform_proto. The generated JS/TS code is unaffected because it loads all .proto files into a shared namespace, and CI never runs protoc on these files. Add the missing import and build //protos:dataform_proto in scripts/run_tests to catch this in CI.
rafal-hawrylak
requested changes
Nov 23, 2026
rafal-hawrylak
left a comment
Collaborator
There was a problem hiding this comment.
I want to decouple core.proto and configs.proto once for good - #2477
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
protos/configs.protousesDefaultIcebergConfigandDefaultLakehouseConfig, which are defined incore.proto, but never imports it. Compiling//protos:dataform_protowithprotoc(e.g.bazel build //...) fails:Changes
protos/configs.proto: addimport "core.proto";. No import cycle —core.protono longer importsconfigs.proto.scripts/run_tests: build//protos:dataform_protobefore the unit tests, so CI catches this class of error.Impact
Nothing is broken today. The generated JS/TS code (
//protos:ts) is produced by loading all.protofiles together in one shared namespace, so the missing import is never noticed, and CI (bazel test --build_tests_only) never runsprotocon these files.It should still be fixed: the files are invalid for any
protoc-based consumer (other language bindings, external tooling) and breakbazel build //...locally.Background
DefaultIcebergConfigintocore.protowithout adding the import toconfigs.proto.DefaultLakehouseConfigthe same way.