test(image): cover OpenClaw writable state symlinks - #3
Draft
cursor[bot] wants to merge 1 commit into
Draft
Conversation
Co-authored-by: crab182 <crab182@gmail.com>
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
Adds a focused regression test for the Docker base-image OpenClaw writable-state layout. The test pins the EACCES-prone runtime paths added in the recent image fix:
exec-approvals.json,telegram/, andcredentials/.Risky behavior now covered:
/sandbox/.openclaw-data./sandbox/.openclawmust expose those state paths via symlinks instead of unwritable direct paths.Test files added/updated:
test/dockerfile-base.test.jsWhy these tests materially reduce regression risk:
Dockerfile.base; a missed symlink silently breaks runtime persistence with EACCES in sandboxed agents.Related Issue
Changes
Dockerfile.basecreates and links the runtime-writable OpenClaw state paths.Type of Change
Testing
npx prek run --all-filespasses (or equivalentlymake check).npm testpasses.make docsbuilds without warnings. (for doc-only changes)Focused validation run:
./node_modules/.bin/vitest run --project cli test/dockerfile-base.test.jspasses (3 tests).Notes:
npm test/make checkwere not run; this PR only adds a focused static regression test.npm install --include=dev --ignore-scriptsafter the repo prepare script pruned dev tools.Checklist
General
Code Changes
npx prek run --all-filesauto-fixes formatting (ormake formatfor targeted runs).Doc Changes
update-docsagent skill to draft changes while complying with the style guide. For example, prompt your agent with "/update-docscatch up the docs for the new changes I made in this PR."Signed-off-by: Cursor Agent cursoragent@cursor.com