Skip to content

Reduce agent load in shell integration tests#2045

Merged
robgruen merged 2 commits intodev/robgruen/glasswormfrom
copilot/update-test-config-for-agents
Mar 23, 2026
Merged

Reduce agent load in shell integration tests#2045
robgruen merged 2 commits intodev/robgruen/glasswormfrom
copilot/update-test-config-for-agents

Conversation

Copy link
Contributor

Copilot AI commented Mar 23, 2026

Shell integration tests were timing out on CI due to dispatcher initialization loading all 20+ agents at startup.

Changes

  • defaultAgentProvider/data/config.test.json — New minimal config with only the 4 agents exercised by the test suite, all configured to run in-process (execMode: "dispatcher") to avoid child process spawn overhead:

    • chat, greeting — general Q&A and startup greeting
    • calendar@config schema calendar test
    • list — shopping list CRUD test
  • shell/src/main/instance.ts — When launched with --test, passes "test" as configName to both getDefaultAppAgentProviders and getIndexingServiceRegistry:

const configName = isTest ? "test" : undefined;
const indexingServiceRegistry =
    await getIndexingServiceRegistry(instanceDir, configName);
// ...
...getDefaultAppAgentProviders(instanceDir, configName),

@robgruen robgruen changed the base branch from main to dev/robgruen/glassworm March 23, 2026 00:30
@robgruen robgruen marked this pull request as ready for review March 23, 2026 00:30
@robgruen robgruen merged commit df6344d into dev/robgruen/glassworm Mar 23, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants