Skip to content

Commit 65fe2b7

Browse files
committed
ci: tolerate release branches without llm core package
1 parent 941e04e commit 65fe2b7

2 files changed

Lines changed: 29 additions & 15 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,10 +1420,12 @@ jobs:
14201420
find src \
14211421
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.mts' -o -name '*.cts' -o -name '*.js' -o -name '*.mjs' -o -name '*.json' \) \
14221422
-exec touch -t 200001010000 {} +
1423-
find packages/llm-core/src \
1424-
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.mts' -o -name '*.cts' -o -name '*.js' -o -name '*.mjs' -o -name '*.json' \) \
1425-
-exec touch -t 200001010000 {} +
1426-
touch -t 200001010000 \
1423+
if [ -d packages/llm-core/src ]; then
1424+
find packages/llm-core/src \
1425+
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.mts' -o -name '*.cts' -o -name '*.js' -o -name '*.mjs' -o -name '*.json' \) \
1426+
-exec touch -t 200001010000 {} +
1427+
fi
1428+
cache_inputs=(
14271429
tsconfig.json \
14281430
tsconfig.plugin-sdk.dts.json \
14291431
packages/plugin-sdk/tsconfig.json \
@@ -1435,6 +1437,12 @@ jobs:
14351437
scripts/lib/plugin-sdk-entries.mjs \
14361438
package.json \
14371439
pnpm-lock.yaml
1440+
)
1441+
for cache_input in "${cache_inputs[@]}"; do
1442+
if [ -e "$cache_input" ]; then
1443+
touch -t 200001010000 "$cache_input"
1444+
fi
1445+
done
14381446
14391447
- name: Run additional check shard
14401448
env:

src/agents/run-wait.test.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -517,20 +517,26 @@ describe("waitForAgentRunsToDrain", () => {
517517
});
518518

519519
it("defaults non-finite drain timeouts before computing the deadline", async () => {
520+
vi.useFakeTimers();
521+
vi.setSystemTime(new Date("2026-05-30T00:00:00Z"));
520522
callGatewayMock.mockResolvedValue({ status: "ok" });
521523
let activeRunIds = ["run-1"];
522524

523-
const result = await waitForAgentRunsToDrain({
524-
timeoutMs: Number.NaN,
525-
getPendingRunIds: () => {
526-
const current = activeRunIds;
527-
activeRunIds = [];
528-
return current;
529-
},
530-
});
525+
try {
526+
const result = await waitForAgentRunsToDrain({
527+
timeoutMs: Number.NaN,
528+
getPendingRunIds: () => {
529+
const current = activeRunIds;
530+
activeRunIds = [];
531+
return current;
532+
},
533+
});
531534

532-
expect(result.timedOut).toBe(false);
533-
expect(Number.isFinite(result.deadlineAtMs)).toBe(true);
534-
expectAgentWaitRequest(requireRequestAt(gatewayWaitRequests(), 0), "run-1", 1);
535+
expect(result.timedOut).toBe(false);
536+
expect(Number.isFinite(result.deadlineAtMs)).toBe(true);
537+
expectAgentWaitRequest(requireRequestAt(gatewayWaitRequests(), 0), "run-1", 1);
538+
} finally {
539+
vi.useRealTimers();
540+
}
535541
});
536542
});

0 commit comments

Comments
 (0)