Skip to content

Commit

Comments and the audit log stop speaking of g1t's agents as current. A workspace's runner settings send g1t's own work (checks, merge checks and the merge queue) to self-hosted runners, and the audit log now says "g1t's work on self-hosted runners" where it said "Agents on self-hosted runners"; the fields keep their names. The runner errors script names the sandboxes that run checks, workflow jobs and merge-queue builds, the reserved name waitlist is the retired waitlist's, and billing's context source is kept only so search embeddings noted before the context service was retired are still charged and closed. Checked: cargo test for g1t-contracts, g1t-billing (243) and g1t-actions (107), the wasm builds of billing and actions, and the ops scripts' tests.

syntaqxcommitted Parent7dc229bBrowse files
6 files+17−120/6 viewed
+1−1
3737 "device",
3838 "workspaces",
3939 "u",
40− // g1t.sh/invite/<code>: invite links; and the waitlist.
40+ // g1t.sh/invite/<code>: invite links; and the retired waitlist.
4141 "invite",
4242 "invites",
4343 "waitlist",
+6−4
146146 #[derive(Clone, Debug, Default, Serialize, Deserialize)]
147147 #[serde(rename_all = "camelCase")]
148148 pub struct RunnerSettings {
149− /// Agent runs, checks, reviews and the merge queue run on self-hosted
150− /// runners with `agent_labels`, instead of g1t's sandboxes.
149+ /// g1t's own work (checks, merge checks and the merge queue) runs on
150+ /// self-hosted runners with `agent_labels`, instead of g1t's sandboxes.
151+ /// The names are kept from when that work included agent runs.
151152 pub agents_on_self_hosted: bool,
152− /// The labels a runner needs to take agent work; `self-hosted` is
153+ /// The labels a runner needs to take g1t's own work; `self-hosted` is
153154 /// always one.
154155 pub agent_labels: Vec<String>,
155156 /// Jobs of pull requests from forks may run on self-hosted runners.
469470 pub cloud_jobs: Vec<CloudJob>,
470471 /// Workflow jobs queued for g1t's sandboxes.
471472 pub cloud_jobs_queued: u32,
472− /// Agent work on, or waiting for, the workspace's own runners.
473+ /// g1t's own work (checks, merge checks, the merge queue) on, or waiting
474+ /// for, the workspace's own runners.
473475 pub handed_over: Vec<HandedOverTask>,
474476 /// Workflow jobs waiting for one of the workspace's own runners.
475477 pub self_hosted_jobs_queued: u32,
+1−1
1313 "g1t", "g1t-agent", "ghost",
1414 // Trust pages on g1t.sh, and names kept for them.
1515 "policies", "security", "support", "status", "terms", "privacy", "help", "blog",
16− // Invite links, and the waitlist.
16+ // Invite links, and the retired waitlist.
1717 "invite", "invites", "waitlist",
1818 // g1t.sh/invitations: the workspace invitations waiting for an answer.
1919 "invitations",
+2−2
11 #!/usr/bin/env node
2−// What are the runner's Durable Object errors? The sandboxes that run agent
3−// attempts, workflow jobs and merge-queue builds are Durable Objects of the
2+// What are the runner's Durable Object errors? The sandboxes that run
3+// checks, workflow jobs and merge-queue builds are Durable Objects of the
44 // g1t-runner Worker (services/runner: AttemptSandbox, Sandbox2Core,
55 // Sandbox4Core). This asks Cloudflare, over the last N days:
66 //
+1−1
955955 place.repo.as_ref().map(|r| format!("{}/{}", r.namespace, r.name)),
956956 None,
957957 format!(
958− "Agents on self-hosted runners: {}; labels {}; pull requests from forks: {}.",
958+ "g1t's work on self-hosted runners: {}; labels {}; pull requests from forks: {}.",
959959 if settings.agents_on_self_hosted { "on" } else { "off" },
960960 settings.agent_labels.join(", "),
961961 if settings.fork_pull_requests { "allowed" } else { "not allowed" }
+6−3
11 //! Usage other services meter through the month, charged once it is over:
2−//! security scans, search embeddings, and two billing measures itself each
3−//! day: private repository storage and git operations.
2+//! security scans, the actions cache, and two billing measures itself each
3+//! day: private repository storage and git operations. `context` (search
4+//! embeddings) is no longer reported, since the context service was
5+//! retired; it stays a source so usage noted before is still charged and
6+//! closed.
47 //!
58 //! Each reports what it cost g1t so far this month (`note_pending`), so the
69 //! workspace's limit counts it as it happens. When the month is over,
5659 pub(crate) const PLAN_ONLY: [&str; 1] = ["cache"];
5760
5861 /// Sources g1t pays for itself on a free workspace: security scans and
59−/// search embeddings. No security feature is held back for the plan, and
62+/// (from before the context service was retired) search embeddings. No security feature is held back for the plan, and
6063 /// a free workspace never runs up a bill, so on a workspace without the
6164 /// plan they are recorded at cost, covered by g1t, and charged nothing
6265 /// (not even from the trial). On the plan they are charged like any usage.