Skip to content

fix(protos): decouple configs.proto from core.proto under protoc - #2477

Open
rafal-hawrylak wants to merge 5 commits into
mainfrom
fix/decouple-configs-proto-and-ci-protoc
Open

rafal-hawrylak wants to merge 5 commits into
mainfrom
fix/decouple-configs-proto-and-ci-protoc

Conversation

@rafal-hawrylak

@rafal-hawrylak rafal-hawrylak commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

WorkflowSettings in configs.proto referenced DefaultIcebergConfig and DefaultLakehouseConfig from core.proto without importing core.proto, which protobufjs tolerated when loading all protos together while standalone protoc compilation failed. Define matching nested messages on WorkflowSettings, scope core README extraction to configs.proto, update the configs reference docs and add per-file proto_library build tests so CI enforces direct proto imports.

Note: WorkflowSettings.default_iceberg_config and default_lakehouse_config now resolve to nested dataform.WorkflowSettings.DefaultConfig (WorkflowSettings.IDefaultConfig in TypeScript), while wire encoding and top-level dataform.Default*Config on ProjectConfig in core.proto remain unchanged.

WorkflowSettings in configs.proto referenced DefaultIcebergConfig and DefaultLakehouseConfig from core.proto without importing core.proto, which protobufjs tolerated when loading all protos together while standalone protoc compilation failed. Define matching nested messages on WorkflowSettings, scope core README proto extraction to configs.proto, update the configs reference docs and add per-file proto_library build tests so CI enforces direct proto imports.
@rafal-hawrylak
rafal-hawrylak requested a review from a team as a code owner November 23, 2026 08:30
@apilaskowski

Copy link
Copy Markdown
Collaborator

Yesterday I prepared #2475

Do you think it superseeds it?

Comment thread protos/configs.proto Resolved
Comment thread protos/BUILD Resolved
Comment thread core/readme_test.ts Resolved
Comment thread core/readme_generator_test.ts Resolved
Comment thread core/workflow_settings_test.ts Resolved
Comment thread docs/reference/configs.md Resolved
rafal-hawrylak and others added 2 commits November 23, 2026 17:38
Mark per-file proto_library targets private in protos/BUILD with a load-time glob completeness check against _PROTO_DEPS, use a plain loop over packaged protos in core/readme_test.ts and match OnlyInCore in core/readme_generator_test.ts.
rafal-hawrylak and others added 2 commits November 24, 2026 13:11
…ables

Compare DefaultIcebergConfig and DefaultLakehouseConfig field names, ids and types directly via fieldsArray in core/readme_test.ts, verify bidirectional wire decoding in core/workflow_settings_test.ts and align Markdown table column padding in docs/reference/configs.md.

This branch has not been deployed

No deployments
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.

2 participants