The status page no longer checks models.g1t.sh: the agents' model proxy it listed as "Agents' model proxy" was deleted with g1t's own agents, so every check of it failed. MODELS_URL is gone from the status Worker's vars, the self-hosted configuration and the tests. Sandboxes stay listed, for checks, workflows and builds, wherever the installation has deployments, and the page's description names sandboxes instead of agents. Checked: the status app's 85 tests and its typecheck.
6 files+7−220/6 viewed
| 19 | 19 | DOCS_URL: string; | |
| 20 | 20 | /** Where deployed apps live: `https://g1t.page`. */ | |
| 21 | 21 | PAGES_URL: string; | |
| 22 | − | MODELS_URL: string; | |
| 23 | 22 | /** A public repository that always exists, `owner/name`, to fetch refs of. */ | |
| 24 | 23 | PROBE_REPO: string; | |
| 25 | 24 | /** The site as browsers reach it, when the checks reach it another way. */ | |
| ⋯ | |||
| 91 | 90 | const mcp = trim(vars.MCP_URL); | |
| 92 | 91 | const docs = trim(vars.DOCS_URL); | |
| 93 | 92 | const pages = trim(vars.PAGES_URL); | |
| 94 | − | const models = trim(vars.MODELS_URL); | |
| 95 | 93 | const repo = (vars.PROBE_REPO ?? "").trim(); | |
| 96 | 94 | // What the page shows as the site's address: where people reach it. | |
| 97 | 95 | const shown = host(trim(vars.PUBLIC_SITE_URL) || site); | |
| ⋯ | |||
| 186 | 184 | check: { kind: "http", steps: [{ url: `${pages}/` }] }, | |
| 187 | 185 | } | |
| 188 | 186 | : null, | |
| 189 | − | models | |
| 190 | − | ? { | |
| 191 | − | key: "agents", | |
| 192 | − | name: "Agents' model proxy", | |
| 193 | − | address: host(models), | |
| 194 | − | checks: "The proxy agents reach their model through. The model providers behind it are not checked.", | |
| 195 | − | core: false, | |
| 196 | − | check: { kind: "http", steps: [{ url: `${models}/` }] }, | |
| 197 | − | } | |
| 198 | − | : null, | |
| 199 | − | models | |
| 187 | + | pages | |
| 200 | 188 | ? { | |
| 201 | 189 | key: "sandboxes", | |
| 202 | 190 | name: "Sandboxes", | |
| 203 | − | address: "Agents, checks, workflows and builds", | |
| 191 | + | address: "Checks, workflows and builds", | |
| 204 | 192 | checks: "Starting a sandbox costs money and takes seconds, so it is not checked from here yet.", | |
| 205 | 193 | core: false, | |
| 206 | 194 | check: { kind: "none" }, | |
| 25 | 25 | MCP_URL: "https://mcp.g1t.sh", | |
| 26 | 26 | DOCS_URL: "https://docs.g1t.sh", | |
| 27 | 27 | PAGES_URL: "https://g1t.page", | |
| 28 | − | MODELS_URL: "https://models.g1t.sh", | |
| 29 | 28 | PROBE_REPO: "flagon-io/g1t", | |
| 30 | 29 | }; | |
| 31 | 30 | ||
| ⋯ | |||
| 188 | 187 | const all = components(VARS, true); | |
| 189 | 188 | assert.deepEqual( | |
| 190 | 189 | all.map((c) => c.key), | |
| 191 | − | ["site", "api", "git", "speed", "mcp", "docs", "deployments", "agents", "sandboxes", "billing"], | |
| 190 | + | ["site", "api", "git", "speed", "mcp", "docs", "deployments", "sandboxes", "billing"], | |
| 192 | 191 | ); | |
| 193 | 192 | const speed = all.find((c) => c.key === "speed")!; | |
| 194 | 193 | assert.deepEqual(speed.check, { kind: "http", steps: [{ url: "https://g1t.sh/flagon-io/g1t", browser: true }, { url: "https://g1t.sh/explore", browser: true }] }); | |
| 28 | 28 | SITE_URL: "https://g1t.sh", | |
| 29 | 29 | API_URL: "https://api.g1t.sh", | |
| 30 | 30 | DOCS_URL: "https://docs.g1t.sh", | |
| 31 | − | MODELS_URL: "https://models.g1t.sh", | |
| 31 | + | PAGES_URL: "https://g1t.page", | |
| 32 | 32 | PROBE_REPO: "flagon-io/g1t", | |
| 33 | 33 | }, | |
| 34 | 34 | false, | |
| ⋯ | |||
| 75 | 75 | }); | |
| 76 | 76 | ||
| 77 | 77 | test("the page: banner, every part with its bar, and no incidents", () => { | |
| 78 | − | const html = renderPage(page({ site: "up", api: "up", git: "up", docs: "up", agents: "up" }), OPTIONS); | |
| 78 | + | const html = renderPage(page({ site: "up", api: "up", git: "up", docs: "up", deployments: "up" }), OPTIONS); | |
| 79 | 79 | assert.match(html, /<h1>All systems normal<\/h1>/); | |
| 80 | 80 | for (const name of ["Website and sign-in", "API", "Git and repositories", "Documentation", "Sandboxes"]) assert.ok(html.includes(name), name); | |
| 81 | 81 | assert.equal((html.match(/<ol class="bar"/g) ?? []).length, 5, "Sandboxes has no bar"); | |
| ⋯ | |||
| 89 | 89 | ||
| 90 | 90 | test("an outage and an open incident are said at the top, escaped", () => { | |
| 91 | 91 | const html = renderPage( | |
| 92 | − | page({ site: "down", api: "up", git: "up", docs: "up", agents: "up" }, [ | |
| 92 | + | page({ site: "down", api: "up", git: "up", docs: "up" }, [ | |
| 93 | 93 | INCIDENT, | |
| 94 | 94 | ]), | |
| 95 | 95 | OPTIONS, | |
| 353 | 353 | const past = incidents.filter((i) => i.resolved_at != null && Date.parse(i.resolved_at) >= recentSince); | |
| 354 | 354 | const inProgress = maintenance.filter((m) => maintenanceState(m, options.now) === "in_progress"); | |
| 355 | 355 | const upcoming = maintenance.filter((m) => maintenanceState(m, options.now) === "scheduled"); | |
| 356 | − | const description = `${overall.title}. Live status of g1t: the website, API, git, MCP, docs, deployments, agents and billing, with 90 days of history.`; | |
| 356 | + | const description = `${overall.title}. Live status of g1t: the website, API, git, MCP, docs, deployments, sandboxes and billing, with 90 days of history.`; | |
| 357 | 357 | const checkedLine = checked_at | |
| 358 | 358 | ? stale | |
| 359 | 359 | ? `The checks have not run since ${time(checked_at, true)}, so what follows may be out of date.` |
| 53 | 53 | "MCP_URL": "https://mcp.g1t.sh", | |
| 54 | 54 | "DOCS_URL": "https://docs.g1t.sh", | |
| 55 | 55 | "PAGES_URL": "https://g1t.page", | |
| 56 | − | "MODELS_URL": "https://models.g1t.sh", | |
| 57 | 56 | // A public repository that always exists, whose branches are listed | |
| 58 | 57 | // as a clone would. | |
| 59 | 58 | "PROBE_REPO": "flagon-io/g1t", |
| 390 | 390 | MCP_URL: "", | |
| 391 | 391 | DOCS_URL: "", | |
| 392 | 392 | PAGES_URL: "", | |
| 393 | − | MODELS_URL: "", | |
| 394 | 393 | PROBE_REPO: process.env.STATUS_PROBE_REPO ?? "", | |
| 395 | 394 | SUPPORT_URL: `${PUBLIC_URL}/support`, | |
| 396 | 395 | OG_IMAGE: "", |
Comments
Sign in to comment.