Skip to content

Commit

Permalink
explicitly set SINGLE_USER field. fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shichengzhou-db committed Nov 7, 2024
1 parent f28db3b commit 9b6faa2
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/generate-cicd-zip.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
generate-zip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Generate CICD Zip
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/run-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
run-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: timestamp
run: |
echo "timestamp=$(date +'%s')" >> "$GITHUB_ENV"
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: {{`${{ github.event.pull_request.head.sha || github.sha }}`}}
token: {{`${{ secrets.WORKFLOW_TOKEN }}`}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
concurrency: {{ .input_project_name }}-prod-bundle-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: databricks/setup-cli@{{template `cli_version` .}}
- name: Validate Bundle For Prod
id: validate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
concurrency: {{ .input_project_name }}-staging-bundle-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: databricks/setup-cli@{{template `cli_version` .}}
- name: Validate Bundle For Staging
id: validate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
concurrency: {{ .input_project_name }}-staging-bundle-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: {{`${{ github.event.pull_request.head.sha || github.sha }}`}}
- uses: databricks/setup-cli@{{template `cli_version` .}}
Expand All @@ -48,7 +48,7 @@ jobs:
run: |
databricks bundle validate -t {{ .input_staging_catalog_name }} > ../validate_output.txt
- name: Create Comment with Bundle Configuration
uses: actions/github-script@v6
uses: actions/github-script@v7
id: comment
with:
github-token: {{`${{ secrets.GITHUB_TOKEN }}`}}
Expand All @@ -75,7 +75,7 @@ jobs:
concurrency: {{ .input_project_name }}-prod-bundle-job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: {{`${{ github.event.pull_request.head.sha || github.sha }}`}}
- uses: databricks/setup-cli@{{template `cli_version` .}}
Expand All @@ -92,7 +92,7 @@ jobs:
run: |
databricks bundle validate -t {{ .input_prod_catalog_name }} > ../validate_output.txt
- name: Create Comment with Bundle Configuration
uses: actions/github-script@v6
uses: actions/github-script@v7
id: comment
with:
github-token: {{`${{ secrets.GITHUB_TOKEN }}`}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
unit_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.8
Expand All @@ -50,7 +50,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
uses: actions/checkout@v4
- uses: databricks/setup-cli@{{template `cli_version` .}}
- name: Validate Bundle For Test Deployment Target in Staging Workspace
id: validate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ new_cluster: &new_cluster
num_workers: 3
spark_version: 15.3.x-cpu-ml-scala2.12
node_type_id: {{template `cloud_specific_node_type_id` .}}
data_security_mode: "SINGLE_USER"
custom_tags:
clusterSource: mlops-stacks_{{template `stacks_version` .}}

Expand Down

0 comments on commit 9b6faa2

Please sign in to comment.