fix(build): pin Node 26.12.1 for development and standalone releases #23165
MergedPixPMusic(GitHub profile, opens in a new tab)merged 3 commits into
main fromrefs/pull/23165/headmerged by juliusmarminge View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- @@ -892,10 +930,18 @@892930 yield* runSteps(manager.activate);931+ // The new server may migrate its database as soon as it starts; a932+ // marker-cleanup failure must not switch back to the previous runtime.933+ activated = true;893934 yield* fs.remove(restartPendingPath, { force: true });894935 }895936 }).pipe(896937 Effect.mapError((cause) =>897938 cause._tag === "PlatformError" ? new BootServiceInstallError({ cause }) : cause,898939 ),899- Effect.tapError(() =>900- installed && start ? runSteps(manager.restart).pipe(Effect.ignore) : Effect.void,901- ),940+ Effect.onExit((exit) => {941+ if (Exit.isSuccess(exit) || !stopAttempted || activated) return Effect.void;942+ return Effect.gen(function* () {943+ if (previousFiles !== undefined) {944+ // Activation may have started a child even if its command failed.945+ // Stop it before restoring the state it would otherwise overwrite.946+ if (activationStarted) yield* runSteps(manager.stop);947+ for (const [filePath, contents] of previousFiles) {
- apps/server/vite.config.ts lines 47 to 51OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -44,3 +44,8 @@4444 "win-x64": { platform: "win", arch: "x64" },4545 } as const;4646 const packExecutableTarget = process.env.T3CODE_PACK_EXE_TARGET?.trim();47+if (packExecutable && !packExecutableTarget && process.versions.node !== CLI_NODE_VERSION) {48+ throw new Error(49+ `Native CLI executables must be built with Node ${CLI_NODE_VERSION}; running ${process.versions.node}.`,50+ );51+}scripts/smoke-cli-archive.ts lines 296 to 297OutdatedResolvedby coderabbitai[bot](GitHub profile, opens in a new tab)@@ -156,12 +288,10 @@288+ step: managed ? "starting the service launcher" : "serving from the extracted archive",289+ detail: `expected the shipped text/html page, environment metadata and Node ${CLI_NODE_VERSION}, followed by shutdown\n${stdout}${stderr}`,290+ });156291 }157- return true;158- });159- const ready = yield* pollUntilReady.pipe(160- Effect.timeout(Duration.seconds(30)),161- Effect.orElseSucceed(() => false),162- );163- yield* server.kill({ killSignal: "SIGTERM" }).pipe(Effect.ignore);164- yield* server.exitCode.pipe(Effect.timeout(Duration.seconds(10)), Effect.ignore);165- const [stdout, stderr] = yield* Fiber.join(output).pipe(166- Effect.timeout(Duration.seconds(5)),167- Effect.orElseSucceed(() => ["", ""] as const),292+ return ready;293+ }, Effect.scoped);294+ const environmentId = yield* checkServer(executable, false);295+ const managedDir = path.join(home, "runtime/versions", input.expectVersion);296+ yield* fs.makeDirectory(path.dirname(managedDir), { recursive: true });297+ yield* fs.rename(contentDir, managedDir);
PixPMusic(GitHub profile, opens in a new tab) changed the title
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:L
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
PixPMusic(GitHub profile, opens in a new tab) changed the title
juliusmarminge merged thised9b7ca
juliusmarminge closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed