Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

OpenCode price holds (#5200): leave out the bundled test fixes from #5250, #5252 and #5306

milind-soni96d396d42ffd
diff --git a/electron/cloud-sync-engine.node-test.mjs b/electron/cloud-sync-engine.node-test.mjs
index 60f2dc07b3..a4060c94cc 100644
--- a/electron/cloud-sync-engine.node-test.mjs
+++ b/electron/cloud-sync-engine.node-test.mjs
@@ -125,22 +125,6 @@ test("bots' work: new files come down marked as downloaded; nothing here is dele
assert.equal(s.read("report.md"), "v1");
});
-test("bots' work: waits for the local disk reserve, then downloads when it fits", async (t) => {
- const s = setup(t);
- s.cloud.put("f1", "report.md", "v1");
- const waiting = await s.outputs({ freeBytes: () => GB + 1 });
- assert.equal(waiting.status, "waiting");
- assert.equal(waiting.waitingBytes, 2);
- assert.equal(existsSync(join(s.local, "report.md")), false);
- assert.deepEqual(s.cloud.calls.filter(([kind]) => kind === "download"), []);
-
- const ready = await s.outputs({ freeBytes: () => GB + 2 });
- assert.equal(ready.status, "synced");
- assert.equal(ready.waitingBytes, 0);
- assert.equal(s.read("report.md"), "v1");
- assert.deepEqual(s.cloud.calls.filter(([kind]) => kind === "download"), [["download", "report.md"]]);
-});
-
test("bots' work: a newer version replaces an untouched file (the old one to the Recycle Bin), and lands beside the person's edit", async (t) => {
const s = setup(t);
s.cloud.put("f1", "report.md", "v1");
diff --git a/server/cloud-sync.e2e.test.ts b/server/cloud-sync.e2e.test.ts
index 546bd87fea..85a385a0b9 100644
--- a/server/cloud-sync.e2e.test.ts
+++ b/server/cloud-sync.e2e.test.ts
@@ -115,7 +115,6 @@ function desktop(pcHome: string) {
settingsFile: join(pcHome, "user", "settings.json"), stateFile: join(pcHome, "user", "state.db"),
documentsDir: join(pcHome, "Documents"), localDataDir: join(pcHome, ".openmausbot"), homeDir: pcHome, platform: process.platform, hostname: "Ash-PC",
cloudOrigin: () => PC_ORIGIN, fetch: desktopFetch as typeof fetch, trashItem: async (file: string) => rmSync(file), markDownloaded: async () => {},
- freeBytes: () => 100 * 1024 ** 3,
watch: () => () => {}, now: () => Date.now() + 60_000,
});
}
diff --git a/server/engine-updates.test.ts b/server/engine-updates.test.ts
index 40e3b22e6c..4c01e785a2 100644
--- a/server/engine-updates.test.ts
+++ b/server/engine-updates.test.ts
@@ -55,13 +55,12 @@ function noSteps(): EngineUpdaterOptions["steps"] {
}
describe("the version table", () => {
- it("pins every engine installable on this platform, at or above its minimum, and a standalone engine at its pinned build", () => {
+ it("pins every engine the app installs, at or above its minimum, and a standalone engine at its pinned build", () => {
for (const driver of BUILT_IN_DRIVERS) {
const installs = Boolean(npmPackageOf(driver.install) || driver.install?.standalone || driver.install?.managed);
- if (installs) expect(ENGINE_VERSIONS[driver.driverKind], driver.driverKind).toBeDefined();
+ expect(Boolean(ENGINE_VERSIONS[driver.driverKind]), driver.driverKind).toBe(installs);
}
for (const [kind, pin] of Object.entries(ENGINE_VERSIONS)) {
- expect(BUILT_IN_DRIVERS.some((driver) => driver.driverKind === kind), kind).toBe(true);
if (pin.target !== LATEST) expect(isNewerVersion(pin.minimum, pin.target), kind).toBe(false);
}
for (const plan of enginePlans(BUILT_IN_DRIVERS)) {
diff --git a/server/testing/chrome-pipe.ts b/server/testing/chrome-pipe.ts
index ffcc9ba7e9..4e52d66f0a 100644
--- a/server/testing/chrome-pipe.ts
+++ b/server/testing/chrome-pipe.ts
@@ -35,7 +35,7 @@ export function chromeLaunchArgs(profile: string, args: string[], platform: Node
return [
"--headless=new", "--remote-debugging-pipe", `--user-data-dir=${profile}`,
"--no-first-run", "--no-default-browser-check", "--disable-background-networking", "--disable-component-update",
- "--disable-sync", "--disable-features=Translate,OptimizationHints,MediaRouter,AimEnabled,PreconnectToSearch",
+ "--disable-sync", "--disable-features=Translate,OptimizationHints,MediaRouter",
...credentialStoreFlags(platform),
// Ubuntu 23.10+ restricts the unprivileged user namespaces Chrome's sandbox needs; the sandbox is not under test here.
...(platform === "linux" ? ["--no-sandbox"] : []),