fix: v0.7.2 语句级原子性 + 事务 DDL 拒绝 + 约束/绑定硬化 — 6 项修复 + 43 回归 + CI 重型套件串行
- UPDATE 语句级部分提交(P1,四引擎):两阶段全量预检后执行,批内唯一互查, 任何一行失败整句不执行(aria 场景 WAL 与内存不再错位) - 事务内 ALTER/CREATE INDEX/DROP INDEX 残留(P1):Memory/KVStore 显式拒绝 (对齐 Aria),createTable/dropTable 保持可回滚 - SET NULL 级联绕过 required 约束(P1):预检阶段整体拒绝 FOREIGN_KEY_VIOLATION - bindParameters 注释误判(P2):行注释/块注释中的 ? 与引号不再参与绑定 - 未闭合字符串静默接受 → lexer 抛 PARSE_ERROR;未知 where 操作符抛 QUERY_ERROR - UPDATE undefined 覆盖列值 → 语义化为不更新(null 仍置空) - Hybrid 写穿透非原子(P1):磁盘失败自动重载内存对齐磁盘再抛原错误 - CI:Run tests 拆常规并行 + 重型串行(runInBand),重型测试超时余量提升, 性能护栏 kv 120→240s / opfs 150→300s(仍拦截悬崖回归) - 测试 1155 → 1198(74 套件),覆盖率 89.82% 保持
This commit is contained in:
@@ -66,7 +66,7 @@ describe('AriaEngine — 二级索引完整性(P0 回归)', () => {
|
||||
expect(viaIdx.length).toBe(5000);
|
||||
}
|
||||
await engine2.close();
|
||||
}, 180000);
|
||||
}, 600000);
|
||||
|
||||
it('小批量高频写入(每批 50 行)触发极端 freeze 竞态', async () => {
|
||||
const engine = new AriaEngine({
|
||||
@@ -89,7 +89,7 @@ describe('AriaEngine — 二级索引完整性(P0 回归)', () => {
|
||||
expect(await engine.find('items', { table: 'items', where: { tag: 'a' } })).toHaveLength(Math.ceil(TOTAL / 3));
|
||||
expect(await engine.find('items', { table: 'items', where: { tag: 'b' } })).toHaveLength(TOTAL - Math.ceil(TOTAL / 3));
|
||||
await engine.close();
|
||||
}, 120000);
|
||||
}, 600000);
|
||||
|
||||
it('多索引列同时写入:每列索引都完整', async () => {
|
||||
const engine = new AriaEngine({
|
||||
@@ -119,5 +119,5 @@ describe('AriaEngine — 二级索引完整性(P0 回归)', () => {
|
||||
expect(await engine.find('multi', { table: 'multi', where: { grp: 0 } })).toHaveLength(TOTAL / 5);
|
||||
expect(await engine.find('multi', { table: 'multi', where: { grp: 4 } })).toHaveLength(TOTAL / 5);
|
||||
await engine.close();
|
||||
}, 120000);
|
||||
}, 600000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user