fix: resolve test failures from read-only filesystem#552
Merged
Conversation
Tests for proposeWisdom, proposeDecision, and appendHistoryBuffer were writing to hardcoded /workspace paths which fail on read-only filesystems. Add env var overrides (DALCLI_WISDOM_INBOX, DALCLI_DECISIONS_INBOX, DALCLI_HISTORY_BUFFER) and use t.TempDir() in tests. Skip TestAutoGitWorkflow_NoWorkspace when workspace has uncommitted changes. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dalsoop
commented
Mar 30, 2026
Owner
Author
dalsoop
left a comment
There was a problem hiding this comment.
[Code Review] APPROVE — 환경변수 override + t.TempDir() 패턴 적절. 보안/로직/하위호환 이슈 없음.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
proposeWisdom,proposeDecision,appendHistoryBufferwere writing to hardcoded/workspacepaths, failing on read-only filesystemsDALCLI_WISDOM_INBOX,DALCLI_DECISIONS_INBOX,DALCLI_HISTORY_BUFFER) so tests can uset.TempDir()TestAutoGitWorkflow_NoWorkspacewhen workspace has uncommitted changes (prevents false failures)Test plan
go build ./...passesgo test ./...— all packages pass🤖 Generated with Claude Code