mirror of
https://github.com/stablyai/orca.git
synced 2026-09-22 08:02:28 +00:00
test(ci): run the worktree-identity downgrade lane instead of describing it
The cross-version job names its files explicitly, so a new one is inert until it is listed; the sharded unit job excludes the whole directory and the E2E router only takes `*.spec.ts`. Also pairs the forward-compat case against the current build — the stack's own field-list walk is the guarantee that matters, and only the frozen build was exercised.
This commit is contained in:
@@ -695,6 +695,7 @@ jobs:
|
||||
tests/e2e/cross-version-wire/cross-version-terminal-wire.unit.test.ts
|
||||
tests/e2e/cross-version-wire/reported-lossy-initial-snapshot.unit.test.ts
|
||||
tests/e2e/cross-version-wire/cross-version-agent-session-wire.unit.test.ts
|
||||
tests/e2e/cross-version-wire/cross-version-worktree-identity-downgrade.unit.test.ts
|
||||
|
||||
managed_hook_node18:
|
||||
name: managed hooks on Node 18
|
||||
|
||||
@@ -142,11 +142,17 @@ describe('cross-version worktree identity downgrade', () => {
|
||||
})
|
||||
})
|
||||
|
||||
it('neither build drops a row shape it does not recognise', () => {
|
||||
// Both builds, because the load-bearing forward-compat guarantee is the CURRENT build's: the
|
||||
// stack repoints rows by walking a fixed field list, and a field a later build adds must pass
|
||||
// through untouched rather than be swept in by anything name-shaped.
|
||||
it.each([
|
||||
['the pre-stack build', (): Migrate => preStackMigrate],
|
||||
['the stack', (): Migrate => stackMigrate]
|
||||
])('%s drops no row shape it does not recognise', (_label, migrateOf) => {
|
||||
const state = persistedStateAfterRename()
|
||||
const session = state.workspaceSession as Record<string, unknown>
|
||||
session.someFutureFieldByKey = { k: { worktreeId: OLD_ID, fromANewerBuild: true } }
|
||||
preStackMigrate(state, OLD_ID, NEW_ID)
|
||||
expect(() => migrateOf()(state, OLD_ID, NEW_ID)).not.toThrow()
|
||||
expect((state.workspaceSession as Record<string, unknown>).someFutureFieldByKey).toEqual({
|
||||
k: { worktreeId: OLD_ID, fromANewerBuild: true }
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user