test: speed up channel contract CI

This commit is contained in:
Peter Steinberger
2026-04-21 06:09:42 +01:00
parent 048766fea5
commit 663501206f
7 changed files with 269 additions and 35 deletions

View File

@@ -43,4 +43,15 @@ describe("scripts/lib/channel-contract-test-plan.mjs", () => {
expect(actual).toEqual(listContractTests());
expect(new Set(actual).size).toBe(actual.length);
});
it("keeps registry-backed surface shards spread across checks", () => {
for (const shard of createChannelContractTestShards().filter((entry) =>
entry.checkName.includes("-registry-"),
)) {
const surfaceRegistryFiles = shard.includePatterns.filter((pattern) =>
pattern.includes("/surfaces-only.registry-backed-shard-"),
);
expect(surfaceRegistryFiles.length).toBeLessThanOrEqual(1);
}
});
});