Skip to content

Emit lint-clean code from CLI and Terraform schema generators#5804

Open
pietern wants to merge 2 commits into
mainfrom
lint-q
Open

Emit lint-clean code from CLI and Terraform schema generators#5804
pietern wants to merge 2 commits into
mainfrom
lint-q

Conversation

@pietern

@pietern pietern commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

The generated CLI command files (cmd/workspace/**, cmd/account/**) and Terraform schema files (bundle/internal/tf/schema/**) carried lint findings that stayed hidden only because generated files are excluded from linting via generated: lax. This fixes them at their source in the generator templates, so the output is clean regardless of the exclusion.

This does not touch the generated: lax exclusion. The remaining generated-file findings (staticcheck SA1019 on deprecated SDK methods, misspell on real SDK identifiers, dupword in SDK docstrings) are faithful reproductions of upstream spec/SDK content and are not fixable in this repo.

This pull request and its description were written by Isaac.

The generated CLI command files (cmd/workspace/**, cmd/account/**) and
Terraform schema files (bundle/internal/tf/schema/**) carried lint findings
that stayed hidden only because generated files are excluded from linting via
generated: lax. This fixes them at their source in the generator templates, so
the output is clean regardless of the exclusion.

This does not touch the generated: lax exclusion. The remaining generated-file
findings (staticcheck SA1019 on deprecated SDK methods, misspell on real SDK
identifiers, dupword in SDK docstrings) are faithful reproductions of upstream
spec/SDK content and are not fixable in this repo.

Co-authored-by: Isaac
@pietern pietern temporarily deployed to test-trigger-is July 2, 2026 13:35 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is July 2, 2026 13:35 — with GitHub Actions Inactive
@pietern pietern requested a review from janniklasrose July 2, 2026 13:47
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 70b95a7

Run: 28641545515

Env 🔄​flaky 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
💚​ aws linux 10 13 230 1041 5:05
💚​ aws windows 10 13 232 1039 3:58
💚​ aws-ucws linux 10 13 314 959 4:55
💚​ aws-ucws windows 10 13 316 957 4:15
💚​ azure linux 4 15 230 1040 4:50
💚​ azure windows 4 15 232 1038 3:57
💚​ azure-ucws linux 4 15 316 956 10:17
🔄​ azure-ucws windows 1 3 15 318 954 4:46
💚​ gcp linux 4 15 229 1042 4:50
💚​ gcp windows 4 15 231 1040 3:50
23 interesting tests: 13 SKIP, 9 RECOVERED, 1 flaky
Test Name aws linux aws windows aws-ucws linux aws-ucws windows azure linux azure windows azure-ucws linux azure-ucws windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/permissions 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=direct 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/with_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions 💚​R 💚​R 💚​R 💚​R 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=direct 💚​R 💚​R 💚​R 💚​R
💚​ TestAccept/bundle/resources/permissions/jobs/destroy_without_mgmtperms/without_permissions/DATABRICKS_BUNDLE_ENGINE=terraform 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/resources/postgres_branches/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/recreate 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/replace_existing 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/update_protected 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_branches/without_branch_id 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_endpoints/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/postgres_projects/update_display_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/synced_database_tables/basic 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🔄​ TestFetchRepositoryInfoAPI_FromRepo 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 🔄​f 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/root 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
💚​ TestFetchRepositoryInfoAPI_FromRepo/subdir 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
Top 6 slowest tests (at least 2 minutes):
duration env testname
5:14 azure-ucws linux TestSQLExecScalar
3:08 aws-ucws windows TestAccept
3:07 gcp windows TestAccept
3:05 azure windows TestAccept
3:01 azure-ucws windows TestAccept
2:59 aws windows TestAccept

@pietern pietern temporarily deployed to test-trigger-is July 3, 2026 05:55 — with GitHub Actions Inactive
@pietern pietern temporarily deployed to test-trigger-is July 3, 2026 05:55 — with GitHub Actions Inactive

@janniklasrose janniklasrose left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to enable linting for generated files but add an exception for the known violations? Otherwise, we won't catch regression for .tmpl changes.

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.

3 participants