Skip to content

test(gateway): give the cron failure-repair fixture a model - #204022

Merged
obviyus merged 1 commit into
mainfrom
fix/cron-repair-test-model
Nov 23, 2026
Merged

obviyus merged 1 commit into
mainfrom
fix/cron-repair-test-model

Conversation

@obviyus

@obviyus obviyus commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Result

Scheduled main CI is red in src/gateway/server-cron-failure-repair.final-effect.test.ts (11 of 12 cases: "Cron failure repair was not accepted: Session event was not admitted"). The cause is a stale fixture, not the one-time-admission change. This PR gives the fixture a model. Test only.

Problem

  • fix: stop sending chats to OpenAI when no model is configured #203271 (265577c) added a guard in src/auto-reply/reply/get-reply.ts: a chat with no model is refused before execution starts (NO_MODEL_CONFIGURED_MESSAGE).
  • This test used cfg from requester-cron-authority.test-support.ts, which is { agents: { entries: { main: {} } } }: no model.
  • The repair turn never started, so session-event-handoff.ts reported "Session event was not admitted", for the owner case too.

Fix

The two fixture configs in this file set agents.entries.main.model = "openai/gpt-4.1" (the value the sibling cron fixtures use). The shared cfg is unchanged, so its 9 other importers are not affected. The expected authority outcomes are unchanged.

Evidence

  • vitest-source on head: 12/12 pass.
  • Red on main: scheduled runs 45126271894, 45131412779, 45139268047 (job large-17).
  • oxfmt and oxlint clean.

Since #203271 a chat with no configured model is refused before execution starts, so every cron failure-repair case failed with 'Session event was not admitted'. Set an explicit model in the two fixture configs; the authority outcomes stay as they were.

Co-authored-by: obviyus <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS labels Nov 23, 2026
@obviyus
obviyus merged commit 1dae747 into main Nov 23, 2026
104 checks passed
@obviyus
obviyus deleted the fix/cron-repair-test-model branch November 23, 2026 10:08
@obviyus

obviyus commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as 1dae747. Cause: the fixture had no model, and #203271 refuses a chat with no model before it starts. Proof: the file passes 12/12 on the head; scheduled main runs were red on it; CI green; local review clean.

obviyus added a commit that referenced this pull request Nov 23, 2026
`src/agents/tools/sessions-spawn-outcome.test.ts` passes again: its fixture config now names a model for the `main` agent.

Part of #204008.

## Problem

Since #203271 ("stop sending chats to OpenAI when no model is configured"), model selection throws `No model is configured…` when neither the agent nor defaults name a model. This fixture had `entries: { main: {} }`, so three spawn cases failed before dispatch (`expected "callInProcessGatewayTool" to be called once, but got 0 times`) in every scheduled `main` run (latest: 45147591436, `checks-node-compact-large-39`).

## Solution

Set `entries.main.model` to `openai/gpt-4.1`, the same fixture change #204022 made for the cron failure-repair test. No product change. `openclaw-tools.subagents.sessions-spawn.lifecycle.test.ts` has the same cause but is owned by open PR #203569, so it is left alone.

## Evidence

- Scheduled `main` run 45147591436: 3 cases fail with the error above.
- This branch, locally: `sessions-spawn-outcome.test.ts` 16/16 pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
…#204022)

Since openclaw#203271 a chat with no configured model is refused before execution starts, so every cron failure-repair case failed with "Session event was not admitted". Set an explicit model in the two fixture configs; the authority outcomes stay as they were.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 24, 2026
…aw#204033)

`src/agents/tools/sessions-spawn-outcome.test.ts` passes again: its fixture config now names a model for the `main` agent.

Part of openclaw#204008.

## Problem

Since openclaw#203271 ("stop sending chats to OpenAI when no model is configured"), model selection throws `No model is configured…` when neither the agent nor defaults name a model. This fixture had `entries: { main: {} }`, so three spawn cases failed before dispatch (`expected "callInProcessGatewayTool" to be called once, but got 0 times`) in every scheduled `main` run (latest: 45147591436, `checks-node-compact-large-39`).

## Solution

Set `entries.main.model` to `openai/gpt-4.1`, the same fixture change openclaw#204022 made for the cron failure-repair test. No product change. `openclaw-tools.subagents.sessions-spawn.lifecycle.test.ts` has the same cause but is owned by open PR openclaw#203569, so it is left alone.

## Evidence

- Scheduled `main` run 45147591436: 3 cases fail with the error above.
- This branch, locally: `sessions-spawn-outcome.test.ts` 16/16 pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant