Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
rauchy committed Oct 18, 2024
1 parent 98d71ac commit 9a07c46
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
- name: Check formatting
run: mvn --errors spotless:check


unit-tests:
strategy:
fail-fast: false
matrix:
os: [macos-latest, ubuntu-latest]
os: ['macos-latest', 'ubuntu22/20240922.1']
java-version: [8, 11, 17, 20] # 20 is the latest version as of 2023 and 17 is the latest LTS

runs-on: ${{ matrix.os }}
Expand All @@ -53,6 +54,11 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

# - name: Debug Build
# uses: stateful/vscode-server-action@v1
# with:
# timeout: 3000000

- name: Check Unit Tests
run: mvn --errors test

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ public String authType() {
}

public CliTokenSource tokenSourceFor(DatabricksConfig config, String resource) {
String azPath = config.getEnv().get("AZ_PATH");
if (azPath == null) {
azPath = "az";
}

List<String> cmd =
new ArrayList<>(
Arrays.asList(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,13 @@ public DatabricksConfig setAzureUseMsi(boolean azureUseMsi) {
return this;
}

/**
* @deprecated Use {@link #getAzureUseMsi()} instead.
*/
/** @deprecated Use {@link #getAzureUseMsi()} instead. */
@Deprecated()
public boolean getAzureUseMSI() {
return azureUseMsi;
}

/**
* @deprecated Use {@link #setAzureUseMsi(boolean)} instead.
*/
/** @deprecated Use {@link #setAzureUseMsi(boolean)} instead. */
@Deprecated
public DatabricksConfig setAzureUseMSI(boolean azureUseMsi) {
this.azureUseMsi = azureUseMsi;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ void azureCliWorkspaceHeaderPresent() {
StaticEnv env =
new StaticEnv()
.with("HOME", TestOSUtils.resource("/testdata/azure"))
.with("PATH", "testdata:/bin");
.with("PATH", "/bin:testdata");
//.with("AZ_PATH", TestOSUtils.resource("/testdata/az"));
String azureWorkspaceResourceId =
"/subscriptions/123/resourceGroups/abc/providers/Microsoft.Databricks/workspaces/abc123";
DatabricksConfig config =
Expand All @@ -32,7 +33,8 @@ void azureCliUserWithManagementAccess() {
StaticEnv env =
new StaticEnv()
.with("HOME", TestOSUtils.resource("/testdata/azure"))
.with("PATH", "testdata:/bin");
.with("PATH", "/bin:testdata");
//.with("AZ_PATH", TestOSUtils.resource("/testdata/az"));
String azureWorkspaceResourceId =
"/subscriptions/123/resourceGroups/abc/providers/Microsoft.Databricks/workspaces/abc123";
DatabricksConfig config =
Expand All @@ -50,7 +52,8 @@ void azureCliUserNoManagementAccess() {
StaticEnv env =
new StaticEnv()
.with("HOME", TestOSUtils.resource("/testdata/azure"))
.with("PATH", "testdata:/bin")
.with("PATH", "/bin:testdata")
//.with("AZ_PATH", TestOSUtils.resource("/testdata/az"))
.with("FAIL_IF", "https://management.core.windows.net/");
String azureWorkspaceResourceId =
"/subscriptions/123/resourceGroups/abc/providers/Microsoft.Databricks/workspaces/abc123";
Expand Down

0 comments on commit 9a07c46

Please sign in to comment.