Add tests, free-text model field, and K8s job improvements
- Add vitest with 26 passing tests for parse and job-manifest - Set models to undefined for free-text model input - Add fsGroupChangePolicy: "OnRootMismatch" to reduce volume chown delays - Change job name prefix to agent-opencode- for adapter identification - Add .npmrc to .gitignore Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -187,7 +187,7 @@ export function buildJobManifest(input: JobBuildInput): JobBuildResult {
|
||||
// Job naming
|
||||
const agentSlug = sanitizeForK8sName(agent.id);
|
||||
const runSlug = sanitizeForK8sName(runId);
|
||||
const jobName = `agent-${agentSlug}-${runSlug}`;
|
||||
const jobName = `agent-opencode-${agentSlug}-${runSlug}`;
|
||||
|
||||
// Build prompt
|
||||
const promptTemplate = asString(
|
||||
@@ -306,6 +306,7 @@ export function buildJobManifest(input: JobBuildInput): JobBuildResult {
|
||||
runAsUser: 1000,
|
||||
runAsGroup: 1000,
|
||||
fsGroup: 1000,
|
||||
fsGroupChangePolicy: "OnRootMismatch",
|
||||
};
|
||||
|
||||
// Build the main container command
|
||||
|
||||
Reference in New Issue
Block a user