Skip to content

Commit a9f5a37

Browse files
committed
Stabilize fixture scorecard test
Signed-off-by: a-baran-orhan <a.baranorhan@gmail.com>
1 parent b3561ed commit a9f5a37

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

packages/posecode-eval/test/eval.test.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,17 @@ describe("metrics", () => {
301301
describe("fixture scorecard", () => {
302302
it("scores every declared canonical contact and keeps the fallback catalog green", () => {
303303
const fixtures = loadFixtures(examplesDir);
304-
const report = runEval(fixtures);
304+
// This test validates the scorecard/contact catalog, not diagnostic peak
305+
// sampling. Keep one clip-wide sample per second so the full fixture pass
306+
// remains stable on slower shared CI runners.
307+
const report = runEval(fixtures, { diagnosticSampleRateHz: 1 });
305308
const declaredContacts = fixtures.reduce(
306-
(count, fixture) => count + probeMovement(fixture.source).contactResiduals.length,
309+
(count, fixture) => count + probeMovement(
310+
fixture.source,
311+
undefined,
312+
undefined,
313+
{ diagnosticSampleRateHz: 1 },
314+
).contactResiduals.length,
307315
0,
308316
);
309317
const contactChecks = report.movements.flatMap((movement) =>
@@ -315,7 +323,7 @@ describe("fixture scorecard", () => {
315323
expect(report.summary.parseFailures).toBe(0);
316324
expect(report.summary.clampWarnings).toBe(0);
317325
expect(report.summary.checksPassed).toBe(report.summary.checksTotal);
318-
});
326+
}, 20_000);
319327

320328
it("does not give the supplied bad superhero landing a perfect score", () => {
321329
const source = `posecode posture "Superhero Three-Point Landing"

0 commit comments

Comments
 (0)