expand ci quality gates
All checks were successful
CI / Validate (push) Successful in 1m13s

This commit is contained in:
dirtydishes 2026-05-30 02:34:28 -04:00
parent 65139bf8d0
commit 44431c4e66
71 changed files with 2262 additions and 1173 deletions

View file

@ -293,4 +293,3 @@ describe("compute classifiers", () => {
expect(hit!.explanations[0]).toMatch(/Consistent with/i);
});
});

View file

@ -17,16 +17,18 @@ export const TEST_CLASSIFIER_CONFIG: ClassifierConfig = {
zeroDteMinSize: 400
};
export const buildFlowPacket = (opts: {
id?: string;
source_ts?: number;
ingest_ts?: number;
seq?: number;
trace_id?: string;
members?: string[];
features?: FlowPacket["features"];
join_quality?: FlowPacket["join_quality"];
} = {}): FlowPacket => {
export const buildFlowPacket = (
opts: {
id?: string;
source_ts?: number;
ingest_ts?: number;
seq?: number;
trace_id?: string;
members?: string[];
features?: FlowPacket["features"];
join_quality?: FlowPacket["join_quality"];
} = {}
): FlowPacket => {
const id = opts.id ?? "flowpacket:test";
const source_ts = opts.source_ts ?? Date.parse("2025-01-01T14:30:00Z");
const ingest_ts = opts.ingest_ts ?? source_ts;
@ -66,4 +68,3 @@ export const buildFlowPacket = (opts: {
export const getHit = (hits: ClassifierHit[], id: string): ClassifierHit | null => {
return hits.find((hit) => hit.classifier_id === id) ?? null;
};

View file

@ -18,7 +18,9 @@ const placements = (overrides?: Partial<LegEvidence["placements"]>): LegEvidence
...overrides
});
const leg = (input: Partial<LegEvidence> & Pick<LegEvidence, "contractId" | "right" | "strike">): LegEvidence => {
const leg = (
input: Partial<LegEvidence> & Pick<LegEvidence, "contractId" | "right" | "strike">
): LegEvidence => {
return {
contractId: input.contractId,
root: "SPY",