chore: prepare GoodBuddy 0.8.2
Cross-platform packages / Validate source (push) Waiting to run
Cross-platform packages / ${{ matrix.platform }} ${{ matrix.arch }} (arm64, macos, macos-15) (push) Blocked by required conditions
Cross-platform packages / ${{ matrix.platform }} ${{ matrix.arch }} (arm64, windows, windows-2025) (push) Blocked by required conditions
Cross-platform packages / ${{ matrix.platform }} ${{ matrix.arch }} (x64, linux, ubuntu-24.04) (push) Blocked by required conditions
Cross-platform packages / ${{ matrix.platform }} ${{ matrix.arch }} (x64, macos, macos-15-intel) (push) Blocked by required conditions
Cross-platform packages / ${{ matrix.platform }} ${{ matrix.arch }} (x64, windows, windows-2025) (push) Blocked by required conditions
Cross-platform packages / Publish GitHub Release (push) Blocked by required conditions
Cross-platform packages / ${{ matrix.platform }} ${{ matrix.arch }} (arm64, linux, ubuntu-24.04-arm) (push) Blocked by required conditions

This commit is contained in:
lofyer
2026-08-06 22:47:13 +08:00
parent 8d00e6371d
commit b8fc7bc86e
114 changed files with 22916 additions and 1560 deletions
+16 -18
View File
@@ -59,7 +59,7 @@ const summary = {
}
describe('AssistantDatabase heartbeat persistence', () => {
it('migrates v2 to v3 without changing existing schedules', async () => {
it('migrates a v2 database without changing existing schedules', async () => {
const { database, path } = await createDatabase()
const schedule = database.createSchedule({
title: 'Existing schedule',
@@ -85,25 +85,23 @@ describe('AssistantDatabase heartbeat persistence', () => {
})
])
const check = new DatabaseSync(path)
expect(
(
check.prepare('PRAGMA user_version').get() as {
user_version: number
}
).user_version
).toBe(7)
expect(
(
check
.prepare(
`SELECT COUNT(*) AS count FROM sqlite_master
WHERE type = 'table' AND name LIKE 'heartbeat_%'`
)
.get() as { count: number }
).count
).toBe(3)
const version = (
check.prepare('PRAGMA user_version').get() as {
user_version: number
}
).user_version
const heartbeatTableCount = (
check
.prepare(
`SELECT COUNT(*) AS count FROM sqlite_master
WHERE type = 'table' AND name LIKE 'heartbeat_%'`
)
.get() as { count: number }
).count
check.close()
migrated.close()
expect(version).toBe(8)
expect(heartbeatTableCount).toBe(3)
})
it('claims one scheduled run durably and advances local recurrence', async () => {