-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
206 additions
and
38 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Validate Commit Message | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize, edited] | ||
merge_group: | ||
types: [checks_requested] | ||
|
||
jobs: | ||
validate: | ||
runs-on: ubuntu-latest | ||
# GitHub required checks are shared between PRs and the Merge Queue. | ||
# Since there is no PR title on Merge Queue, we need to trigger and | ||
# skip this test for Merge Queue to succeed. | ||
if: github.event_name == 'pull_request' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Validate Tag | ||
run: | | ||
TAG=$(echo ${{ github.event.pull_request.title }} | sed -ne 's/\[\(.*\)\].*/\1/p') | ||
if grep -q "tag: \"\[$TAG\]\"" .codegen/changelog_config.yml; then | ||
echo "Valid tag found: [$TAG]" | ||
else | ||
echo "Invalid or missing tag in commit message: [$TAG]" | ||
exit 1 | ||
fi |
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,10 @@ func awsClusterTemplate(availability string) string { | |
num_workers = 1 | ||
autotermination_minutes = 10 | ||
aws_attributes { | ||
availability = "%s" | ||
availability = "%s" | ||
} | ||
custom_tags = { | ||
"Owner" = "[email protected]" | ||
} | ||
node_type_id = "i3.xlarge" | ||
} | ||
|
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,34 @@ import ( | |
|
||
func TestAccSQLEndpoint(t *testing.T) { | ||
workspaceLevel(t, step{ | ||
Template: `resource "databricks_sql_endpoint" "this" { | ||
name = "tf-{var.RANDOM}" | ||
cluster_size = "2X-Small" | ||
max_num_clusters = 1 | ||
}`, | ||
Template: ` | ||
resource "databricks_sql_endpoint" "this" { | ||
name = "tf-{var.RANDOM}" | ||
cluster_size = "2X-Small" | ||
max_num_clusters = 1 | ||
tags { | ||
custom_tags { | ||
key = "Owner" | ||
value = "[email protected]" | ||
} | ||
} | ||
}`, | ||
}, step{ | ||
Template: ` | ||
resource "databricks_sql_endpoint" "that" { | ||
name = "tf-{var.RANDOM}" | ||
cluster_size = "2X-Small" | ||
max_num_clusters = 1 | ||
enable_serverless_compute = false | ||
tags { | ||
custom_tags { | ||
key = "Owner" | ||
value = "[email protected]" | ||
} | ||
} | ||
}`, | ||
Check: func(s *terraform.State) error { | ||
w, err := databricks.NewWorkspaceClient() | ||
|
This file contains 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
Oops, something went wrong.