Databricks CLI
Go to file
shreyas-goenka ed56fc01cb
[DECO-68] Modify acceptance test to work with deco testing infra and represent vscode usecase (#78)
Contains changes to make this integration test work on our GitHub
actions testing env

1. use go run main.go to run bricks sync to run the latest bricks from
master
2. Log the output from the bricks sync process to allow for debugging
3. removed databricks.yml and instead rely on BRICKS_ROOT and other env
vars for auth and bricks sync
4. Added --persist-snapshot set to false to test full sync (same as is
used in the vscode extension

<img width="898" alt="Screenshot 2022-09-27 at 4 26 18 PM"
src="https://user-images.githubusercontent.com/88374338/192553769-7af08ca0-b73a-4cf6-a214-8c58edc4c3e5.png">

The additional logs in the picture above are from a wip PR in deco cli
that I made some changes to in order to make deco cli work with bricks :
https://github.com/databricks/eng-dev-ecosystem/pull/97
2022-10-05 13:28:53 +02:00
.github fix release (#45) 2022-09-08 15:12:26 +02:00
.vscode Scope snippets to Go (#51) 2022-09-13 17:58:59 +02:00
cmd [DECO-94] Execute uploads in parallel instead of sequentailly (#81) 2022-10-05 00:12:57 +02:00
experimental/github Make tests pass (#40) 2022-09-07 20:08:42 +02:00
ext Update SDK (#79) 2022-09-27 09:58:55 -07:00
folders Don't depend on working directory in folders.FindDirWithLeaf (#54) 2022-09-14 15:08:55 +02:00
git Respect project root in sync command (#63) 2022-09-16 15:18:46 +02:00
internal [DECO-68] Modify acceptance test to work with deco testing infra and represent vscode usecase (#78) 2022-10-05 13:28:53 +02:00
project Update SDK (#79) 2022-09-27 09:58:55 -07:00
python Store project object in context.Context instead of global (#61) 2022-09-16 11:06:58 +02:00
retries Experimental sync command 2022-07-07 20:56:59 +02:00
sandbox updated dependencies 2022-05-14 19:56:09 +02:00
terraform Ensure Go code is formatted (#37) 2022-09-07 15:15:23 +02:00
utilities Update SDK (#79) 2022-09-27 09:58:55 -07:00
.gitignore Experimental sync command 2022-07-07 20:56:59 +02:00
.gitmodules Replace terraform dependency with go sdk (#19) 2022-09-07 11:55:59 +02:00
.goreleaser.yaml Build 32 bit Windows (#47) 2022-09-09 10:31:41 +02:00
Makefile updated dependencies 2022-05-14 19:56:09 +02:00
README.md Update README.md 2022-05-16 13:31:47 +02:00
go.mod [DECO-94] Execute uploads in parallel instead of sequentailly (#81) 2022-10-05 00:12:57 +02:00
go.sum [DECO-94] Execute uploads in parallel instead of sequentailly (#81) 2022-10-05 00:12:57 +02:00
main.go Add `bricks configure` command to bricks CLI (#18) 2022-09-05 20:25:54 +02:00

README.md

Bricks CLI 🧱 build

Where's "data"? Secured by the unity catalog. Projects build lifecycle is secured by bricks 🧱

This is an early PoC at this stage. make build (or download the latest from releases page).

Reuses authentication from Databricks CLI. And terraform provider. See details here: https://registry.terraform.io/providers/databrickslabs/databricks/latest/docs#environment-variables

Supports:

  • Databricks CLI
  • Databricks CLI Profiles
  • Azure CLI Auth
  • Azure MSI Auth
  • Azure SPN Auth
  • Google OIDC Auth
  • Direct DATABRICKS_HOST, DATABRICKS_TOKEN or DATABRICKS_USERNAME + DATABRICKS_PASSWORD variables.

What works:

  • ./bricks fs ls /
  • ./bricks test
  • ./bricks launch test.py

What doesn't work:

  • Everything else.

This project reuses some code from Databricks Terraform Provider