chore: formatter cleanup and test updates from bot cherry-pick

This commit is contained in:
Eyejoker
2026-03-30 00:57:03 +09:00
parent 5865dea558
commit a215b2471a
3 changed files with 33 additions and 23 deletions

View File

@@ -72,10 +72,7 @@ function detectPnpmStorePath(workspaceDir: string): string | null {
if (!fs.existsSync(path.join(workspaceDir, 'pnpm-lock.yaml'))) {
return null;
}
if (
process.env.PNPM_STORE_DIR &&
fs.existsSync(process.env.PNPM_STORE_DIR)
) {
if (process.env.PNPM_STORE_DIR && fs.existsSync(process.env.PNPM_STORE_DIR)) {
return process.env.PNPM_STORE_DIR;
}
try {
@@ -108,11 +105,10 @@ function ensureContainerReady(): void {
if (containerRuntimeChecked) return;
ensureContainerRuntimeRunning();
try {
execFileSync(
CONTAINER_RUNTIME_BIN,
['image', 'inspect', CONTAINER_IMAGE],
{ stdio: 'pipe', timeout: 10000 },
);
execFileSync(CONTAINER_RUNTIME_BIN, ['image', 'inspect', CONTAINER_IMAGE], {
stdio: 'pipe',
timeout: 10000,
});
} catch {
throw new Error(
`Container image '${CONTAINER_IMAGE}' not found. Build it with: ./container/build.sh`,
@@ -191,7 +187,10 @@ export function stopReviewerContainer(groupFolder: string): void {
stdio: 'pipe',
timeout: 10000,
});
logger.info({ containerName: name }, 'Stopped persistent reviewer container');
logger.info(
{ containerName: name },
'Stopped persistent reviewer container',
);
} catch {
/* already gone */
}