ci: tolerate release branches without llm core package

This commit is contained in:
Peter Steinberger
2026-05-30 14:48:08 +01:00
parent 941e04e9f3
commit 65fe2b7e91
2 changed files with 29 additions and 15 deletions

View File

@@ -1420,10 +1420,12 @@ jobs:
find src \
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.mts' -o -name '*.cts' -o -name '*.js' -o -name '*.mjs' -o -name '*.json' \) \
-exec touch -t 200001010000 {} +
find packages/llm-core/src \
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.mts' -o -name '*.cts' -o -name '*.js' -o -name '*.mjs' -o -name '*.json' \) \
-exec touch -t 200001010000 {} +
touch -t 200001010000 \
if [ -d packages/llm-core/src ]; then
find packages/llm-core/src \
-type f \( -name '*.ts' -o -name '*.tsx' -o -name '*.mts' -o -name '*.cts' -o -name '*.js' -o -name '*.mjs' -o -name '*.json' \) \
-exec touch -t 200001010000 {} +
fi
cache_inputs=(
tsconfig.json \
tsconfig.plugin-sdk.dts.json \
packages/plugin-sdk/tsconfig.json \
@@ -1435,6 +1437,12 @@ jobs:
scripts/lib/plugin-sdk-entries.mjs \
package.json \
pnpm-lock.yaml
)
for cache_input in "${cache_inputs[@]}"; do
if [ -e "$cache_input" ]; then
touch -t 200001010000 "$cache_input"
fi
done
- name: Run additional check shard
env:

View File

@@ -517,20 +517,26 @@ describe("waitForAgentRunsToDrain", () => {
});
it("defaults non-finite drain timeouts before computing the deadline", async () => {
vi.useFakeTimers();
vi.setSystemTime(new Date("2026-05-30T00:00:00Z"));
callGatewayMock.mockResolvedValue({ status: "ok" });
let activeRunIds = ["run-1"];
const result = await waitForAgentRunsToDrain({
timeoutMs: Number.NaN,
getPendingRunIds: () => {
const current = activeRunIds;
activeRunIds = [];
return current;
},
});
try {
const result = await waitForAgentRunsToDrain({
timeoutMs: Number.NaN,
getPendingRunIds: () => {
const current = activeRunIds;
activeRunIds = [];
return current;
},
});
expect(result.timedOut).toBe(false);
expect(Number.isFinite(result.deadlineAtMs)).toBe(true);
expectAgentWaitRequest(requireRequestAt(gatewayWaitRequests(), 0), "run-1", 1);
expect(result.timedOut).toBe(false);
expect(Number.isFinite(result.deadlineAtMs)).toBe(true);
expectAgentWaitRequest(requireRequestAt(gatewayWaitRequests(), 0), "run-1", 1);
} finally {
vi.useRealTimers();
}
});
});