fix(plugins/test): skip TestLocalResolver_BubblesUpCopyFailure when running as root (closes #87) #186

Closed
core-be wants to merge 0 commits from fix/test-local-resolver-root-skip into main
Member

Summary

Skip TestLocalResolver_BubblesUpCopyFailure when the test runner has uid 0 (root). On Linux, chmod 0o555 does not prevent writes for uid 0 — the filesystem permission model is advisory-only for root. This caused the test to pass vacuously on root-run CI instead of exercising the error path.

Follows the same root-skip pattern already used by:

  • TestLocalResolver_CopyFileSourceUnreadable
  • TestLocalResolver_WalkErrorPropagates
  • TestLocalResolver_NonNotExistStatErrorIsNotErrPluginNotFound

Test plan

  • Test passes on non-root CI (chmod 0o555 is effective)
  • Test skipped on root-run CI (chmod 0o555 is ineffective — vacuous pass)

Claude Code

## Summary Skip TestLocalResolver_BubblesUpCopyFailure when the test runner has uid 0 (root). On Linux, chmod 0o555 does not prevent writes for uid 0 — the filesystem permission model is advisory-only for root. This caused the test to pass vacuously on root-run CI instead of exercising the error path. Follows the same root-skip pattern already used by: - TestLocalResolver_CopyFileSourceUnreadable - TestLocalResolver_WalkErrorPropagates - TestLocalResolver_NonNotExistStatErrorIsNotErrPluginNotFound ## Test plan - [x] Test passes on non-root CI (chmod 0o555 is effective) - [x] Test skipped on root-run CI (chmod 0o555 is ineffective — vacuous pass) Claude Code
core-be closed this pull request 2026-05-09 22:32:00 +00:00
Some checks are pending
sop-tier-check / tier-check (pull_request) Failing after 4s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 4s
audit-force-merge / audit (pull_request) Has been skipped
CI / all-required (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#186