@databricks-solutions/lakebase-scm-utils 0.2.43 → 0.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/scripts/github/index.cjs +21 -4
- package/dist/scripts/github/index.js +21 -4
- package/dist/scripts/github/pr.cli.cjs +21 -4
- package/dist/scripts/github/pr.cli.js +21 -4
- package/dist/scripts/index.cjs +40 -10
- package/dist/scripts/index.js +40 -10
- package/dist/scripts/lakebase/branch.cli.cjs +21 -4
- package/dist/scripts/lakebase/branch.cli.js +21 -4
- package/dist/scripts/lakebase/ci-app-endpoint.cli.cjs +21 -4
- package/dist/scripts/lakebase/ci-app-endpoint.cli.js +21 -4
- package/dist/scripts/lakebase/ci-resolve-branch.cli.cjs +23 -6
- package/dist/scripts/lakebase/ci-resolve-branch.cli.js +23 -6
- package/dist/scripts/lakebase/collapse-heads.cli.cjs +23 -6
- package/dist/scripts/lakebase/collapse-heads.cli.js +23 -6
- package/dist/scripts/lakebase/cut-backup.cli.cjs +21 -4
- package/dist/scripts/lakebase/cut-backup.cli.js +21 -4
- package/dist/scripts/lakebase/cut-tier.cli.cjs +21 -4
- package/dist/scripts/lakebase/cut-tier.cli.js +21 -4
- package/dist/scripts/lakebase/detect-language.cli.cjs +23 -6
- package/dist/scripts/lakebase/detect-language.cli.js +23 -6
- package/dist/scripts/lakebase/doctor.cli.cjs +23 -6
- package/dist/scripts/lakebase/doctor.cli.js +23 -6
- package/dist/scripts/lakebase/get-connection.cli.cjs +23 -6
- package/dist/scripts/lakebase/get-connection.cli.js +23 -6
- package/dist/scripts/lakebase/index.cjs +40 -10
- package/dist/scripts/lakebase/index.js +40 -10
- package/dist/scripts/lakebase/infra-runner.cli.cjs +23 -6
- package/dist/scripts/lakebase/infra-runner.cli.js +23 -6
- package/dist/scripts/lakebase/new-migration.cli.cjs +23 -6
- package/dist/scripts/lakebase/new-migration.cli.js +23 -6
- package/dist/scripts/lakebase/schema-diff.cli.cjs +23 -6
- package/dist/scripts/lakebase/schema-diff.cli.js +23 -6
- package/dist/scripts/lakebase/schema-migrate.cli.cjs +23 -6
- package/dist/scripts/lakebase/schema-migrate.cli.js +23 -6
- package/dist/scripts/lakebase/scm-abandon-feature.cli.cjs +21 -4
- package/dist/scripts/lakebase/scm-abandon-feature.cli.js +21 -4
- package/dist/scripts/lakebase/scm-adopt-state.cli.cjs +21 -4
- package/dist/scripts/lakebase/scm-adopt-state.cli.js +21 -4
- package/dist/scripts/lakebase/scm-claim-feature.cli.cjs +23 -6
- package/dist/scripts/lakebase/scm-claim-feature.cli.js +23 -6
- package/dist/scripts/lakebase/scm-cleanup.cli.cjs +21 -4
- package/dist/scripts/lakebase/scm-cleanup.cli.js +21 -4
- package/dist/scripts/lakebase/scm-doctor.cli.cjs +23 -6
- package/dist/scripts/lakebase/scm-doctor.cli.js +23 -6
- package/dist/scripts/lakebase/scm-merge.cli.cjs +23 -6
- package/dist/scripts/lakebase/scm-merge.cli.js +23 -6
- package/dist/scripts/lakebase/scm-reconcile-tier.cli.cjs +23 -6
- package/dist/scripts/lakebase/scm-reconcile-tier.cli.js +23 -6
- package/dist/scripts/lakebase/scm-recover-orphans.cli.cjs +21 -4
- package/dist/scripts/lakebase/scm-recover-orphans.cli.js +21 -4
- package/dist/scripts/util/index.cjs +23 -6
- package/dist/scripts/util/index.js +23 -6
- package/package.json +1 -1
- package/scripts/lakebase/databricks-cli.ts +44 -4
- package/scripts/lakebase/runner-setup.ts +18 -2
- package/scripts/lakebase/secret-auth.ts +9 -2
- package/templates/project/common/scripts/run-tests.sh +10 -0
|
@@ -100,10 +100,17 @@ export async function ensureLakebaseSecretAuth(
|
|
|
100
100
|
throw new Error("databricks tokens create returned no token_value");
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
// 3. Store the PAT
|
|
104
|
-
|
|
103
|
+
// 3. Store the PAT. Feed the secret in a `--json @/dev/stdin` body (via opts.input)
|
|
104
|
+
// rather than a `--string-value <pat>` argv element, so the 90-day user PAT never
|
|
105
|
+
// appears in the process table / `ps`. The JSON MUST use `string_value`
|
|
106
|
+
// (not bytes_value): bare stdin would flip the CLI to a base64 `bytes_value` field,
|
|
107
|
+
// which the app then cannot read back as its Lakebase password at runtime. `pat` is
|
|
108
|
+
// already validated non-empty above, so the empty-stdin "silent success on no value"
|
|
109
|
+
// trap cannot occur here.
|
|
110
|
+
await runDatabricks(["secrets", "put-secret", "--json", "@/dev/stdin"], {
|
|
105
111
|
profile,
|
|
106
112
|
timeout: timeoutMs,
|
|
113
|
+
input: JSON.stringify({ scope: scopeName, key: keyName, string_value: pat }),
|
|
107
114
|
});
|
|
108
115
|
|
|
109
116
|
// 4. ACL (best-effort)
|
|
@@ -176,6 +176,16 @@ if [ "$#" -eq 0 ] && [ -f "$REPO_ROOT/client/package.json" ]; then
|
|
|
176
176
|
( cd "$REPO_ROOT/client" && npm install --include=dev )
|
|
177
177
|
fi
|
|
178
178
|
fi
|
|
179
|
+
# Strict typecheck BEFORE the tests, matching CI. CI builds the client with
|
|
180
|
+
# `tsc --noEmit && vite build` (strict), but the local test lanes run vitest +
|
|
181
|
+
# Playwright against the Vite dev server, which does NOT strict-typecheck the whole
|
|
182
|
+
# app — so a cross-story type regression (a later story making a field REQUIRED,
|
|
183
|
+
# breaking an earlier story's construction of that type) passed the local honest-GREEN
|
|
184
|
+
# + deploy feature-verify and was caught ONLY by CI, after promote. Run the SAME strict
|
|
185
|
+
# typecheck here so local GREEN matches CI. `--if-present` no-ops on an older scaffold
|
|
186
|
+
# with no `typecheck` script; a type error fails the run (set -e), exactly like a test.
|
|
187
|
+
echo "Running client strict typecheck (tsc --noEmit, matching CI's build)..."
|
|
188
|
+
( cd "$REPO_ROOT/client" && npm run typecheck --if-present )
|
|
179
189
|
echo "Running client unit tests (Vitest)..."
|
|
180
190
|
( cd "$REPO_ROOT/client" && npm test )
|
|
181
191
|
fi
|