Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/azure-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
azure-smoke:
runs-on: ubuntu-latest
runs-on: ubuntu-26.04
timeout-minutes: 30
env:
# The token's licence must include LocalStack for Azure, or the emulator refuses to start.
Expand Down
16 changes: 14 additions & 2 deletions playwright.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@ import { tmpdir } from "node:os";
import { join } from "node:path";

const mcpCommand = process.env.MCP_TEST_COMMAND || "node";

// The model keys are for the eval host, not the server under test: the server and the CLIs it spawns (lstk,
// terraform, cdk, sam) never see them.
const MODEL_KEYS = [
"OPENROUTER_API_KEY",
"GOOGLE_GENERATIVE_AI_API_KEY",
"ANTHROPIC_API_KEY",
"ANTHROPIC_AUTH_TOKEN",
];
const serverEnv = Object.fromEntries(
Object.entries(process.env).filter(([name]) => !MODEL_KEYS.includes(name))
);
const mcpArgs = process.env.MCP_TEST_ARGS
? process.env.MCP_TEST_ARGS.split(" ").filter(Boolean)
: ["dist/cli.js"];
Expand Down Expand Up @@ -44,7 +56,7 @@ export default defineConfig({
requestTimeoutMs: 300000,
callTimeoutMs: 300000,
env: {
...process.env,
...serverEnv,
LOCALSTACK_AUTH_TOKEN: process.env.LOCALSTACK_AUTH_TOKEN || "",
},
},
Expand All @@ -66,7 +78,7 @@ export default defineConfig({
requestTimeoutMs: 300000,
callTimeoutMs: 300000,
env: {
...process.env,
...serverEnv,
LOCALSTACK_AUTH_TOKEN: "ls-dummy-token-for-offline-tests",
LOCALSTACK_PORT: String(freePort),
LOCALSTACK_AZ_CONFIG_DIR: join(tmpdir(), "lsmcp-azure-offline"),
Expand Down
10 changes: 5 additions & 5 deletions src/core/dependency-pins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ describe("dependency pins", () => {
// Runners are either a literal label or `${{ matrix.runner }}`, whose values are checked
// as literals; any other expression could hide an unpinned label.
const docker = read(".github/workflows/docker.yml");
const workflow = [
docker,
read(".github/workflows/ci.yml"),
read(".github/workflows/mcp-evals.yml"),
].join("\n");
const workflow = fs
.readdirSync(path.join(ROOT, ".github/workflows"))
.filter((file) => /\.ya?ml$/.test(file))
.map((file) => read(`.github/workflows/${file}`))
.join("\n");
for (const [, value] of workflow.matchAll(/^[ \t]*runs-on:[ \t]*(.*)$/gm)) {
if (value.startsWith("${{")) expect(value).toBe("${{ matrix.runner }}");
}
Expand Down