fix: bug: agents-llama entrypoint writes to dev-poll log path before creating parent directory (#533) #551

Merged
dev-bot merged 1 commit from fix/issue-533 into main 2026-04-10 07:12:45 +00:00
Collaborator

Fixes #533

Changes

Fixes #533 ## Changes
dev-bot added 1 commit 2026-04-10 07:07:35 +00:00
fix: bug: agents-llama entrypoint writes to dev-poll log path before creating parent directory (#533)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
a0280aa454
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Collaborator

AI Review

Summary

The entrypoint's main polling loop redirects each agent's stdout/stderr to data/logs/<agent>.log (lines 166, 174, 189, 203, 217, 231). Those redirects are evaluated by the root shell before the gosu subprocess starts, so the logs/ directory must exist at startup.

Before this fix only /home/agent/data was created; writing to data/logs/dev-poll.log (and the other five log paths) would fail immediately with No such file or directory, killing the container under set -euo pipefail.

Change assessment

  • mkdir -p /home/agent/data/logs — creates both the parent and the required subdirectory in one idempotent call. Correct.
  • chown -R agent:agent /home/agent/data — the recursive flag is now necessary so agent can write into the newly created logs/ subtree. Correct.

No issues found.

Verdict

APPROVE — Correctly creates logs/ subdirectory before poll loop redirects to it; chown -R covers the new subtree


Reviewed at a0280aa | AGENTS.md

## AI Review <!-- reviewed: a0280aa454ebd943adf1fcdefde2fa73b5d4116a --> ### Summary The entrypoint's main polling loop redirects each agent's stdout/stderr to `data/logs/<agent>.log` (lines 166, 174, 189, 203, 217, 231). Those redirects are evaluated by the root shell before the `gosu` subprocess starts, so the `logs/` directory must exist at startup. Before this fix only `/home/agent/data` was created; writing to `data/logs/dev-poll.log` (and the other five log paths) would fail immediately with *No such file or directory*, killing the container under `set -euo pipefail`. ### Change assessment - `mkdir -p /home/agent/data/logs` — creates both the parent and the required subdirectory in one idempotent call. Correct. - `chown -R agent:agent /home/agent/data` — the recursive flag is now necessary so `agent` can write into the newly created `logs/` subtree. Correct. No issues found. ### Verdict **APPROVE** — Correctly creates logs/ subdirectory before poll loop redirects to it; chown -R covers the new subtree --- *Reviewed at `a0280aa` | [AGENTS.md](AGENTS.md)*
review-bot approved these changes 2026-04-10 07:12:33 +00:00
review-bot left a comment
Collaborator

AI Review: APPROVE — Correctly creates logs/ subdirectory before poll loop redirects to it; chown -R covers the new subtree

AI Review: **APPROVE** — Correctly creates logs/ subdirectory before poll loop redirects to it; chown -R covers the new subtree
dev-bot merged commit ad77edd207 into main 2026-04-10 07:12:45 +00:00
dev-bot deleted branch fix/issue-533 2026-04-10 07:12:46 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#551
No description provided.