| description | Rules for how to deal with auto-generated files | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| globs |
|
||||||||||||||||||||
| paths |
|
Files matching this rule's glob pattern are most likely generated artifacts. Auto-generated files generally have a comment (when the file type allows it) at or near the top indicating they are generated, or their name or path signals it. You may also consult the Makefile as a starting point to determine if a file is auto-generated.
RULE: Do not manually edit auto-generated files.
RULE: To change a generated file, edit the source and regenerate.
- Find the source logic, template, or annotation that drives the file.
- Run the appropriate generator or update command.
- Commit both the source change (if any) and the regenerated outputs.
- Everything, in one shot:
./task generate— aggregator that runs all generators below
- OpenAPI SDK/CLI command stubs and related generated artifacts:
./task generate-cligen— regeneratescmd/account/**,cmd/workspace/**and.gitattributesfrom the checked-in.codegen/cli.json../task generate-clijson— refreshes.codegen/cli.jsonfrom the OpenAPI spec via genkit (requires universe repo); also updatesinternal/genkit/tagging.py.
- Direct engine generated YAML:
./task generate-direct(or./task generate-direct-apitypes,./task generate-direct-resources)
- Bundle schemas:
./task generate-schema./task generate-schema-docs- This can also refresh
bundle/internal/schema/annotations_openapi.ymlwhen OpenAPI annotation extraction is enabled.
- Validation generated code:
./task generate-validation
- Mock files:
go run github.com/vektra/mockery/v2@b9df18e0f7b94f0bc11af3f379c8a9aea1e1e8da
- Python bundle codegen:
./task pydabs-codegen
RULE: Do not hand-edit acceptance outputs. Exception: rare, intentional mass replacement when explicitly justified by repo guidance.
Regeneration commands:
./task test-update./task test-update-templates(templates only)
Typical generated files:
acceptance/**/out*acceptance/**/output.txtacceptance/**/output.*.txtacceptance/**/output/**(materialized template output trees)
RULE: When touching acceptance sources, regenerate outputs instead of editing generated files. Sources include databricks.yml, scripts, templates, and test config.