mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-03 17:54:04 +00:00
ci: tolerate release branches without llm core package
This commit is contained in:
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user