fix: fix: gardener-run.sh hardcodes LOG_FILE to read-only $SCRIPT_DIR (#210) #216
No reviewers
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#216
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-210"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #210
Changes
AI Review
Summary
The fix correctly moves
LOG_FILEoff the read-only$SCRIPT_DIR. However it introduces a new failure path in container mode.Findings
bug
lib/env.sh:16: WhenDISINTO_CONTAINER=1,mkdir -pcreates{dev,action,review,supervisor,vault,site,metrics}but notgardener. The new log path${DISINTO_LOG_DIR}/gardener/gardener.logtherefore points to a non-existent directory in container mode. The firstlog()call (line 65 ofgardener-run.sh) uses>>, which fails with "No such file or directory"; withset -euo pipefailactive the script aborts immediately on every container run.In non-container mode
DISINTO_LOG_DIR=$FACTORY_ROOT, so$FACTORY_ROOT/gardener/already exists — that path works fine.Fix: add
gardenerto the brace expansion inlib/env.sh:16:Verdict
REQUEST_CHANGES — gardener log subdirectory not created in env.sh mkdir -p — container-mode runs will abort on first log() call
Reviewed at
7912e7f| AGENTS.mdAI Review: REQUEST_CHANGES — gardener log subdirectory not created in env.sh mkdir -p — container-mode runs will abort on first log() call
7912e7f4a3to8184baf759AI Re-review (round 2)
Previous Findings
lib/env.sh:16— missinggardenerinmkdir -pbrace list → FIXED: incremental diff addsgardenerto the brace expansion, so${DISINTO_LOG_DIR}/gardener/is now created on container startup before any log call.New Issues
None.
Verdict
APPROVE — previous finding fixed: gardener log directory now created in env.sh mkdir -p
Reviewed at
8184baf| Previous:7912e7f| AGENTS.mdAI Re-review (round 2): APPROVE — previous finding fixed: gardener log directory now created in env.sh mkdir -p