Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): preserve safe service selections during launcher upgrades #23173

ClosedPixPMusic(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/23173/headopened View on GitHub

Showing 17 changed files with 99 additions and 7 deletions (loading 14).

x
0 of 17 viewed, 17 left
55 additions and 0 deletionsapps/server/src/cli/doctor.test.tsModified
View file
@@ -2,10 +2,65 @@
import { assert, it } from "@effect/vitest";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
+import * as FileSystem from "effect/FileSystem";
+import * as Path from "effect/Path";
+import * as TestConsole from "effect/testing/TestConsole";
​
import * as BootService from "../cloud/bootService.ts";
import { runDoctor } from "./doctor.ts";
import { DatabaseMaintenance } from "../persistence/DatabaseMaintenance.ts";
+import {
+ makePersistedServerRuntimeState,
+ persistServerRuntimeState,
+} from "../serverRuntimeState.ts";
+​
+it.effect("reports the CLI, running server and launcher Node versions independently", () =>
+ Effect.gen(function* () {
+ const fs = yield* FileSystem.FileSystem;
+ const path = yield* Path.Path;
+ const runtimeStatePath = path.join(yield* fs.makeTempDirectoryScoped(), "server-runtime.json");
+ const state = yield* makePersistedServerRuntimeState({
+ config: { host: undefined, devUrl: undefined },
+ port: 3773,
+ });
+ yield* persistServerRuntimeState({
+ path: runtimeStatePath,
+ state: {
+ ...state,
+ nodeVersion: "26.12.1",