mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-13 15:47:28 +00:00
ci: bound live cache release retries
This commit is contained in:
@@ -455,7 +455,7 @@ jobs:
|
||||
needs: validate_selected_ref
|
||||
if: inputs.include_live_suites && !inputs.live_models_only && (inputs.live_suite_filter == '' || inputs.live_suite_filter == 'live-cache')
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
timeout-minutes: 40
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
||||
@@ -490,12 +490,12 @@ jobs:
|
||||
- name: Verify live prompt cache floors
|
||||
run: |
|
||||
set -euo pipefail
|
||||
for attempt in 1 2 3; do
|
||||
echo "live-cache attempt ${attempt}/3"
|
||||
if timeout --foreground --kill-after=30s 12m pnpm test:live:cache; then
|
||||
for attempt in 1 2; do
|
||||
echo "live-cache attempt ${attempt}/2"
|
||||
if timeout --foreground --kill-after=30s 8m pnpm test:live:cache; then
|
||||
exit 0
|
||||
fi
|
||||
if [[ "$attempt" == "3" ]]; then
|
||||
if [[ "$attempt" == "2" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
sleep $((attempt * 15))
|
||||
|
||||
@@ -347,7 +347,7 @@ describe("package artifact reuse", () => {
|
||||
expect(workflow).toContain("live_suite_filter:");
|
||||
expect(workflow).toContain("validate_live_suite_filter:");
|
||||
expect(workflow).toContain("LIVE_SUITE_FILTER: ${{ inputs.live_suite_filter }}");
|
||||
expect(workflow).toContain("live-cache attempt ${attempt}/3");
|
||||
expect(workflow).toContain("live-cache attempt ${attempt}/2");
|
||||
expect(workflow).toContain(
|
||||
"live_suite_filter '${LIVE_SUITE_FILTER}' does not match any runnable suite",
|
||||
);
|
||||
@@ -909,9 +909,10 @@ describe("package artifact reuse", () => {
|
||||
expect(fullRelease.jobs?.prepare_release_package?.["timeout-minutes"]).toBe(15);
|
||||
expect(releaseChecks.jobs?.prepare_release_package?.["timeout-minutes"]).toBe(15);
|
||||
expect(crossOs.jobs?.cross_os_release_checks?.["timeout-minutes"]).toBe(60);
|
||||
expect(liveE2e.jobs?.validate_release_live_cache?.["timeout-minutes"]).toBe(40);
|
||||
expect(liveE2e.jobs?.validate_release_live_cache?.["timeout-minutes"]).toBe(20);
|
||||
expect(readFileSync(LIVE_E2E_WORKFLOW, "utf8")).toContain(
|
||||
"timeout --foreground --kill-after=30s 12m pnpm test:live:cache",
|
||||
"timeout --foreground --kill-after=30s 8m pnpm test:live:cache",
|
||||
);
|
||||
expect(readFileSync(LIVE_E2E_WORKFLOW, "utf8")).toContain("live-cache attempt ${attempt}/2");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user