Merge remote-tracking branch 'origin/master' into fix/github-unreachable-repo-access-error

# By Dotta (6) and Tonio (1)
# Via GitHub
* origin/master:
  perf(ci): shard native-server and chat lanes and split >85s Vitest files (#22974)
  perf(ci): cut E2E ceiling under 95s via 16 AWS shards, 8-core speedup, top serial splits, and parallel UI build (#22960)
  perf(ci): parallelize Runner Rust checks, Runner build, and typecheck lane (#22957)
  feat(ui): turn Connectors into a Plugins marketplace (#22869)
  perf(ci): skip prebaked pnpm setup, move rollups to ubuntu-slim, and narrow dep cache inputs (#22958)
  fix(github): silence anonymous sandbox launchers and auto-request GitHub connection on unconfigured git auth failures (#22954)
  Split heartbeat-process-recovery.test.ts into 4 balanced serialized suites (#22955)

# Conflicts:
#	server/src/__tests__/tool-gateway-service.test.ts
This commit is contained in:
Dotta committed 2026-11-25 14:08:16 -06:00
commit 621cbeada8
172 files changed
+17424 -11910

No files matched your search

@@ -9,12 +9,13 @@ import type { ExternalObservation } from "./external-support.js";
function pageFixture(missing?: string, connectorsInFlyout = false) {
const actions: string[] = [];
const page = {
getByRole: (role: string, options?: { name?: string }) => {
const name = options?.name ?? "";
getByRole: (role: string, options?: { name?: string | RegExp }) => {
// The Add menu's custom-server item is matched by pattern; record its source.
const name = typeof options?.name === "string" ? options.name : options?.name?.source ?? "";
const locator = {
filter: () => locator,
first: () => locator,
isVisible: async () => !(connectorsInFlyout && name === "Connectors" && !actions.includes("More workspace pages")),
isVisible: async () => !(connectorsInFlyout && name === "Plugins" && !actions.includes("More workspace pages")),
getByRole: (_r: string, o: { name: string }) => ({
click: async () => {
if (o.name === missing) throw new Error("Missing real control");
@@ -40,13 +41,13 @@ function pageFixture(missing?: string, connectorsInFlyout = false) {
return { page, actions };
}
describe("finite held external diagnostics and visible entry correction", () => {
it("uses visible catalog controls including the expanded custom server option", async () => {
it("uses visible catalog controls including the Add menu custom server option", async () => {
const { page, actions } = pageFixture();
await enterGenericMcpThroughCatalog(page, "RUN");
expect(actions).toEqual([
"Connectors",
"Connect",
"Connect your own MCP server",
"Plugins",
"Add",
"MCP server URL",
"actual /RUN/apps/byo",
]);
});
@@ -55,17 +56,17 @@ describe("finite held external diagnostics and visible entry correction", () =>
await enterGenericMcpThroughCatalog(page, "RUN");
expect(actions).toEqual([
"More workspace pages",
"Connectors",
"Connect",
"Connect your own MCP server",
"Plugins",
"Add",
"MCP server URL",
"actual /RUN/apps/byo",
]);
});
it("does not rescue a missing catalog entry with direct navigation", async () => {
for (const name of [
"Connectors",
"Connect",
"Connect your own MCP server",
"Plugins",
"Add",
"MCP server URL",
]) {
const { page, actions } = pageFixture(name);
await expect(enterGenericMcpThroughCatalog(page, "RUN")).rejects.toThrow(
@@ -18,23 +18,13 @@ export async function enterGenericMcpThroughCatalog(
) {
// The Coordinator sidebar keeps Connectors under its More flyout; the
// classic sidebar lists it directly. Use whichever the person sees.
const direct = page.getByRole("link", { name: "Connectors", exact: true });
const direct = page.getByRole("link", { name: "Plugins", exact: true });
if (!(await direct.first().isVisible())) {
await page.getByRole("button", { name: "More workspace pages", exact: true }).click();
}
await direct.first().click();
const card = page
.getByRole("listitem")
.filter({
has: page.getByRole("heading", {
name: "Connect your own tool",
exact: true,
}),
});
await card.getByRole("button", { name: "Connect", exact: true }).click();
await card
.getByRole("button", { name: "Connect your own MCP server" })
.click();
await page.getByRole("button", { name: "Add", exact: true }).click();
await page.getByRole("menuitem", { name: /MCP server URL/ }).click();
await page.waitForURL((url) => url.pathname === `/${prefix}/apps/byo`);
}
export function gradeUnreachableMcp(value: unknown) {
+1 -1
View File
@@ -203,7 +203,7 @@ async function createConnectionThroughUi(input: ConnectionFlowInput, agentURL: s
(mode === "bedrock" && connection.routing?.region !== input.settings.route?.region)) throw new ConnectionFailure("saved_routing_mismatch");
} else if (connection.provider !== harness.provider) throw new ConnectionFailure("saved_provider_mismatch");
// Navigate away and return through the normal list: proof includes durable UI state.
await page.goto(`${api.origin}/${company.issuePrefix}/apps`, { waitUntil: "domcontentloaded" });
await page.goto(`${api.origin}/${company.issuePrefix}/apps?source=installed`, { waitUntil: "domcontentloaded" });
await expect(page.getByText(connection.name, { exact: true }).first()).toBeVisible();
await page.reload({ waitUntil: "domcontentloaded" });
await expect(page.getByText(connection.name, { exact: true }).first()).toBeVisible();
+2 -10
View File
@@ -52,16 +52,8 @@ export async function setupConnectionReview(input: {
connection = { id: connected.connectionId };
} else {
await page.goto(`/${input.prefix}/apps`, { waitUntil: "domcontentloaded" });
const connector = page
.getByRole("list", { name: "Connector list" })
.getByRole("listitem")
.filter({ hasText: "Connect your own tool" });
await connector
.getByRole("button", { name: "Connect", exact: true })
.click();
await connector
.getByRole("button", { name: "Connect your own MCP server" })
.click();
await page.getByRole("button", { name: "Add", exact: true }).click();
await page.getByRole("menuitem", { name: /MCP server URL/ }).click();
await page
.getByPlaceholder("https://example.com/actions")
.fill(provider.url);
+1 -1
View File
@@ -42,7 +42,7 @@ export async function runGitHubReviewFlow(input: {
await enterGitHubJourneyCompany(page, api.origin, company);
await input.checkpoint("agent", page);
await input.phase("connector_navigation");
await page.getByRole("link", { name: "Connectors", exact: true }).click();
await page.getByRole("link", { name: "Plugins", exact: true }).click();
const botCard = page.getByRole("listitem").filter({ has: page.getByRole("heading", { name: "GitHub Code Review Bot", exact: true }) });
await botCard.getByRole("button", { name: /^(?:Connect|Add connection) GitHub Code Review Bot$/ }).click();
await page.getByRole("button", { name: /Select agent/ }).click();
@@ -60,7 +60,7 @@
"packages/shared/src/agent-setup-progress.ts": "44e3b42853c8c3c795d2b5701a371d95c69adf55",
"packages/shared/src/agent-url-key.ts": "d0ec20b3ea1636a960bc5372a2c1e5a124bc5511",
"packages/shared/src/aggregator-app-catalog.test.ts": "39ee377e55cc9565fce004b928bbe0998268e004",
"packages/shared/src/aggregator-app-catalog.ts": "d6778b07a41356878c549d039ae316553ca9a22b",
"packages/shared/src/aggregator-app-catalog.ts": "83d0009b8509ac3dd3979a72cad51d1cabc13435",
"packages/shared/src/aggregator-apps.ts": "2a69a54ee0cb305170275b6f4e97689c107defb1",
"packages/shared/src/ai-connection-router.ts": "9fbd89c385a4d5827bc68e1c7f6a66e00453d413",
"packages/shared/src/ai-connection-usage.ts": "4b51573ee92f8a2ae0f80dd15288a0e59b4dddc7",