Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/solid/src/mappers/deckMapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,12 @@ describe("toDeck", () => {
});

describe("toDecks over many decks and agents", () => {
it("takes time that grows with them, not their product (GHSA-hcrw-cr33-jg78)", () => {
// Thousands of decks, mapped many times over: seconds on a laptop, and many
// times that in CI, coverage on and every package's tests run at once. What
// is held to is the ratio, of CPU time; the clock only stops a test that never ends.
it("takes time that grows with them, not their product (GHSA-hcrw-cr33-jg78)", {
timeout: 180_000,
}, () => {
const ratio = growth(
(count) => {
const subjects = Array.from({ length: count }, (_, i) => [
Expand Down
7 changes: 6 additions & 1 deletion packages/solid/src/solidDeckArchive.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,12 @@ describe("readDeckFile", () => {
expect(agentNamesOf).not.toHaveBeenCalled();
});

it("refuses a file of many decks and agents in time that grows with them, not their product (GHSA-hcrw-cr33-jg78)", async () => {
// Thousands of decks, parsed many times over: seconds on a laptop, and many
// times that in CI, coverage on and every package's tests run at once. What
// is held to is the ratio, of CPU time; the clock only stops a test that never ends.
it("refuses a file of many decks and agents in time that grows with them, not their product (GHSA-hcrw-cr33-jg78)", {
timeout: 180_000,
}, async () => {
const ratio = await growthAsync(
(count) => {
let text = PREFIXES;
Expand Down
Loading