Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
16106ac
feat(appkit): apply committed database migrations on deploy start
ditadi Oct 12, 2026
19adf06
fix(appkit): apply each migration in its own transaction and fail closed
ditadi Oct 19, 2026
6a6ad01
Merge remote-tracking branch 'origin/main' into readiness/stack667-01
ditadi Oct 30, 2026
c517b83
chore: declare tools and the appkit bin as knip entry points
ditadi Oct 30, 2026
966a51a
fix(appkit): strand unapplied migrations that share a recorded timestamp
ditadi Oct 30, 2026
94fe291
test(appkit): pin one-to-one reconciliation of migrations sharing a t…
ditadi Nov 9, 2026
2e2cc4d
fix(appkit): reconcile migrations one to one per timestamp and refuse…
ditadi Nov 9, 2026
a97babb
test(appkit): refuse a journal relation that is not the schema owner'…
ditadi Nov 9, 2026
3983e74
fix(appkit): read and record the journal only through the schema owne…
ditadi Nov 9, 2026
4b190f9
test(appkit): warn when the connection check cannot be set while migr…
ditadi Nov 9, 2026
8a1ff22
fix(appkit): warn about lock retention when the connection check is r…
ditadi Nov 9, 2026
6213b0a
test(appkit): accept the app's own journal in a schema another role owns
ditadi Nov 9, 2026
03fd6a0
fix(appkit): trust the journal's owner by role, not by the schema's o…
ditadi Nov 9, 2026
573d680
test(appkit): a deploy start refuses an edited or diverged history, t…
ditadi Nov 15, 2026
9bd416f
fix(appkit): refuse an edited or diverged history on a deploy start, …
ditadi Nov 15, 2026
7462c42
test(appkit): the ownership hints stop suggesting ALTER OWNER
ditadi Nov 15, 2026
382383c
fix(appkit): the ownership hints stop suggesting ALTER OWNER
ditadi Nov 15, 2026
7ac125a
test(appkit): migrate on start only as the app's own service principal
ditadi Nov 15, 2026
b1d9829
fix(appkit): migrate on start only as the app's own service principal
ditadi Nov 15, 2026
c269a03
test(appkit): a deploy start refuses a stranded migration next to unk…
ditadi Nov 15, 2026
9a8fc90
fix(appkit): a deploy start refuses a stranded migration next to unkn…
ditadi Nov 15, 2026
61a3f76
test(appkit): migrate on start needs PGUSER set to the app's client id
ditadi Nov 15, 2026
f916f75
fix(appkit): migrate on start needs PGUSER set to the app's client id
ditadi Nov 15, 2026
4f565a7
docs(appkit): drop comments that narrate the migration code
ditadi Nov 15, 2026
d3132ad
refactor(appkit): name the branch-deployed-first rule in historyRefusal
ditadi Nov 15, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@ jobs:
runs-on:
group: databricks-ghec-untrusted-runner-group
labels: linux-ubuntu-latest-untrusted-2core-8gb
services:
postgres:
image: postgres:17@sha256:2d2b8998d31037bf721cfdf764d76ba74171b4fab3431b7f72c27c56ddbdf9e3
env:
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd "pg_isready -U postgres"
--health-interval 5s
--health-timeout 5s
--health-retries 10

steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
Expand All @@ -131,6 +143,8 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Run Tests
run: pnpm test
env:
APPKIT_TEST_PG_URL: postgres://postgres:postgres@localhost:5432/postgres

playground-integration-test:
name: Playground Integration Tests
Expand Down
8 changes: 8 additions & 0 deletions knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
"docs"
],
"workspaces": {
".": {
"entry": [
"tools/bundle-size.ts",
"tools/generate-json-schema.ts",
"tools/playground/deploy-playground.ts"
]
},
"packages/appkit": {
"entry": ["bin/appkit.js"],
"ignoreDependencies": [
"vitest",
"@databricks/sdk-apps",
Expand Down
Loading