fix: use owner-level unidesk state

This commit is contained in:
Codex
2026-07-10 05:09:13 +02:00
parent 01ff35d0f8
commit fbd9dbbae1
48 changed files with 133 additions and 148 deletions
+2 -2
View File
@@ -228,7 +228,7 @@ pub async fn codex_queue_load_test(
chrono::Utc::now().timestamp_millis(),
rand::random::<u32>()
);
let dir = ".state/code-queue-perf";
let dir = "/root/.unidesk/.state/code-queue-perf";
let output_path = format!("{dir}/{run_id}.json");
let stderr_path = format!("{dir}/{run_id}.stderr");
let exit_path = format!("{dir}/{run_id}.exit");
@@ -239,7 +239,7 @@ pub async fn codex_queue_load_test(
.map(|value| format!(" --url {}", shell_quote(value)))
.unwrap_or_default();
let start_command = format!(
"mkdir -p {}; rm -f {} {} {}; (PLAYWRIGHT_BROWSERS_PATH=.state/playwright-browsers bun scripts/src/code-queue-perf.ts --json --timeout-ms {} --target-ms {}{} > {}; printf '%s' \"$?\" > {}) > {} 2>&1 & printf '%s\\n' {}",
"mkdir -p {}; rm -f {} {} {}; (PLAYWRIGHT_BROWSERS_PATH=/root/.unidesk/.state/playwright-browsers bun scripts/src/code-queue-perf.ts --json --timeout-ms {} --target-ms {}{} > {}; printf '%s' \"$?\" > {}) > {} 2>&1 & printf '%s\\n' {}",
shell_quote(dir),
shell_quote(&output_path),
shell_quote(&stderr_path),
+2 -2
View File
@@ -237,8 +237,8 @@ export async function codexQueueLoadTest(req: Request): Promise<Response> {
const timeoutMs = numberFromUnknown(body.timeoutMs, 90_000, 5_000, 180_000);
const targetMs = numberFromUnknown(body.targetMs, 1_000, 100, 60_000);
const runId = safePerfRunId();
const dir = ".state/code-queue-perf";
const browsersPath = ".state/playwright-browsers";
const dir = "/root/.unidesk/.state/code-queue-perf";
const browsersPath = "/root/.unidesk/.state/playwright-browsers";
const outputPath = `${dir}/${runId}.json`;
const stderrPath = `${dir}/${runId}.stderr`;
const exitPath = `${dir}/${runId}.exit`;
@@ -253,11 +253,11 @@ spec:
type: Directory
- name: logs
hostPath:
path: /root/unidesk/.state/code-queue/logs
path: /root/.unidesk/.state/code-queue/logs
type: DirectoryOrCreate
- name: state
hostPath:
path: /root/unidesk/.state/code-queue
path: /root/.unidesk/.state/code-queue
type: DirectoryOrCreate
---
apiVersion: apps/v1
@@ -505,11 +505,11 @@ spec:
type: Directory
- name: logs
hostPath:
path: /root/unidesk/.state/code-queue/logs
path: /root/.unidesk/.state/code-queue/logs
type: DirectoryOrCreate
- name: state
hostPath:
path: /root/unidesk/.state/code-queue
path: /root/.unidesk/.state/code-queue
type: DirectoryOrCreate
---
apiVersion: v1
@@ -1219,11 +1219,11 @@ spec:
type: Directory
- name: logs
hostPath:
path: /root/unidesk/.state/code-queue/logs
path: /root/.unidesk/.state/code-queue/logs
type: DirectoryOrCreate
- name: state
hostPath:
path: /root/unidesk/.state/code-queue
path: /root/.unidesk/.state/code-queue
type: DirectoryOrCreate
---
apiVersion: v1