Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(ci): a declared skip row covers an all-skipped lane (Tier 2 without provider secrets)

garrytan09601f90a43f
diff --git a/docs/test-audit/2026-10-04/expected-deltas.tsv b/docs/test-audit/2026-10-04/expected-deltas.tsv
index ac3eb23040..712432bc56 100644
--- a/docs/test-audit/2026-10-04/expected-deltas.tsv
+++ b/docs/test-audit/2026-10-04/expected-deltas.tsv
@@ -23,3 +23,4 @@
# A move passes only when the target identity executes in head; a skip row
# (planned pass-to-skip) passes only when head reports the test skipped.
kind lane file test arm new_lane new_file new_test reason evidence
+skip tier2 test/e2e/skills.test.ts * D-1: OPENAI_API_KEY and ANTHROPIC_API_KEY repo secrets are unset, so every Tier 2 skill test skips; delete this row once the owner sets them (TODOS P1)
diff --git a/scripts/ci-executed-counts.ts b/scripts/ci-executed-counts.ts
index 537441adb0..57d8ec552a 100644
--- a/scripts/ci-executed-counts.ts
+++ b/scripts/ci-executed-counts.ts
@@ -412,6 +412,15 @@ export function deltaRow(kind: DeltaKind, id: Pick<Identity, 'lane' | 'file' | '
export function compare(head: Side, base: Side | undefined, deltas: { rows: DeltaRow[]; errors: string[] }, opts: { failOnAdditions?: boolean } = {}): Comparison {
const result: Comparison = { ok: true, base, head, drops: [], additions: [], issues: [...(base?.issues.map(i => ({ ...i, detail: `base: ${i.detail}` })) ?? []), ...head.issues.map(i => ({ ...i, detail: base ? `head: ${i.detail}` : i.detail }))], deltaErrors: deltas.errors, unusedRows: [], suggestions: [] };
const used = new Set<DeltaRow>();
+ const sideOf = (detail: string) => (base && detail.startsWith('base: ') ? base : head);
+ result.issues = result.issues.filter(issue => {
+ if (issue.kind !== 'empty-lane') return true;
+ const ids = [...sideOf(issue.detail).identities.values()].filter(id => id.lane === issue.lane);
+ const rows = ids.map(id => deltas.rows.find(r => r.kind === 'skip' && r.lane === id.lane && r.file === id.file && r.test === '*'));
+ if (!ids.length || rows.some(r => !r)) return true;
+ for (const r of rows) used.add(r!);
+ return false;
+ });
if (base) {
for (const artifact of base.artifacts) {
if (head.artifacts.has(artifact)) continue;
diff --git a/test/scripts/ci-executed-counts.test.ts b/test/scripts/ci-executed-counts.test.ts
index 4ece08f135..2bd47d555e 100644
--- a/test/scripts/ci-executed-counts.test.ts
+++ b/test/scripts/ci-executed-counts.test.ts
@@ -228,6 +228,17 @@ describe('completeness', () => {
expect(kinds).toEqual(['empty-lane', 'missing-shard']);
});
+ test('an all-skipped lane passes only when skip rows cover every file in it', () => {
+ const gated: Case = { file: 'test/e2e/skills.test.ts', name: 'needs keys', status: 'skip' };
+ for (const name of ['base', 'head']) writeReceipt(name, { artifact: 'receipts-tier2', id: 't', lane: 'tier2', files: [gated.file], cases: [gated] });
+ expect(compare(side('head'), side('base'), noDeltas).issues.map(i => i.kind)).toEqual(['empty-lane', 'empty-lane']);
+ const row = ['skip', 'tier2', gated.file, '*', '', '', '', '', 'D-1: provider secrets unset', ''].join('\t');
+ const result = compare(side('head'), side('base'), parseDeltas(`${HEADER}\n${row}\n`));
+ expect(result.issues).toEqual([]);
+ expect(result.ok).toBe(true);
+ expect(result.unusedRows).toEqual([]);
+ });
+
test('drops in a lane declared empty (doc-only E2E selection) are reported, not failed', () => {
writeReceipt('base', { artifact: 'receipts-e2e-1', id: 'e', lane: 'e2e', files: ['test/e2e/x.test.ts'], cases: [{ file: 'test/e2e/x.test.ts', name: 'x' }] });
writeReceipt('head', { artifact: 'receipts-e2e-1', id: 'e', lane: 'e2e', files: [], junit: null, extra: ['declared_empty=1'] });