mirror of
https://github.com/Matysh/houseplan-card
synced 2026-09-28 19:01:34 +00:00
test(ci): учитывать локальную аттестацию эталонов (#663)
Issue: #663 User-Visible: no
This commit is contained in:
@@ -486,7 +486,10 @@ test('#573: evidence живого дерева считается детерми
|
||||
assert.match(first.product.tree, /^[0-9a-f]{64}$/);
|
||||
assert.match(first.baselines.tree, /^[0-9a-f]{40}$/);
|
||||
assert.match(first.baselines.manifestSha256, /^[0-9a-f]{64}$/);
|
||||
assert.equal(first.baselines.reviewedLocal, null);
|
||||
const baselineIndex = JSON.parse(readFileSync(
|
||||
new URL('../demo/golden/baselines/baselines-index.json', import.meta.url), 'utf8',
|
||||
));
|
||||
assert.equal(first.baselines.reviewedLocal, baselineIndex.localAttestation?.sha256 ?? null);
|
||||
for (const job of REUSE_JOBS) assert.equal(first.keys[job], reuseKey(root, job));
|
||||
assert.throws(() => localEvidence(root, { keys: { ...first.keys, smoke: 'f'.repeat(64) } }), /smoke: reuse job key/);
|
||||
});
|
||||
|
||||
@@ -758,7 +758,10 @@ test('decor toggle uses the canonical designer furniture vector path', () => {
|
||||
});
|
||||
|
||||
test('current 20-room large-house space builds from the visible geometry cache under 200 ms', () => {
|
||||
const fixture = makeLargeHouseFixture();
|
||||
// Здесь охраняется построение PDF из кеша видимой геометрии. Стресс-набор
|
||||
// лестниц остаётся в общем large-house benchmark, чтобы этот узкий witness
|
||||
// не смешивал два независимых бюджета (#663).
|
||||
const fixture = makeLargeHouseFixture({ includeStairs: false });
|
||||
const largeConfig = { ...fixture.config, model_version: 9 };
|
||||
const largeRaw = largeConfig.spaces[0];
|
||||
const largeSpace = spaceModels(largeConfig)[0];
|
||||
|
||||
@@ -479,7 +479,10 @@ test('#509 AC3: один этаж большого дома считается
|
||||
// shared-аргументов та объединяет кладку заново для каждой комнаты, и
|
||||
// единственный наблюдаемый признак — время (S2: 176 мс на комнату).
|
||||
// Разрыв семикратный, поэтому порог грубый и не флейкует.
|
||||
const fixture = makeLargeHouseFixture();
|
||||
// Этот AC измеряет повторное построение кладки. Максимальные 250 лестниц
|
||||
// отдельно входят в общий large-house benchmark и не должны превращать
|
||||
// узкий wall-cache witness в тест другой подсистемы (#663).
|
||||
const fixture = makeLargeHouseFixture({ includeStairs: false });
|
||||
const config = { ...fixture.config, spaces: fixture.config.spaces.slice(0, 1) };
|
||||
const model = spaceModels(config);
|
||||
assert.equal(model[0].rooms.length, 20, 'фикстура даёт этаж из 20 комнат');
|
||||
|
||||
Reference in New Issue
Block a user