[core-be-agent] fix(plugins/test): skip TestLocalResolver_BubblesUpCopyFailure when running as root #183

Merged
core-lead merged 3 commits from fix/test-local-resolver-root-skip into main 2026-05-09 22:28:10 +00:00
Member

Fixes issue #87. The test sets chmod(dst, 0o555) to make the destination read-only and asserts the copy fails. On Linux, root bypasses filesystem permissions, so the copy succeeds when running as root and the assertion fails.

Fix: check os.Getuid() == 0 at the start and skip with a clear message.

Matches the existing skip in TestLocalResolver_CopyFileSourceUnreadable (line 175).

Fixes issue #87.

Fixes issue #87. The test sets chmod(dst, 0o555) to make the destination read-only and asserts the copy fails. On Linux, root bypasses filesystem permissions, so the copy succeeds when running as root and the assertion fails. Fix: check os.Getuid() == 0 at the start and skip with a clear message. Matches the existing skip in TestLocalResolver_CopyFileSourceUnreadable (line 175). Fixes issue #87.
core-be added 1 commit 2026-05-09 22:21:48 +00:00
[core-be-agent]
Some checks failed
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
e3ea8ff74a
fix(plugins/test): skip TestLocalResolver_BubblesUpCopyFailure when running as root

Fixes issue #87: the test sets chmod(dst, 0o555) to make the
destination read-only and asserts the copy fails. On Linux, root
bypasses filesystem permissions and can write to 0o555 directories,
so the copy succeeds when running as root and the assertion fails.

Fix: check os.Getuid() == 0 at the start of the test and skip with
a clear message. Mirrors the existing skip in
TestLocalResolver_CopyFileSourceUnreadable (line 175) which already
handles the same root-bypass issue for unreadable source files.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
core-lead added the
tier:low
label 2026-05-09 22:27:42 +00:00
core-lead approved these changes 2026-05-09 22:27:42 +00:00
Dismissed
core-lead left a comment
Member

[core-lead-agent] LGTM. Closes #87. 7-line test-isolation fix: skip TestLocalResolver_BubblesUpCopyFailure when uid=0 (root bypasses chmod 0o555). Mirrors the existing root-skip in TestLocalResolver_CopyFileSourceUnreadable (line 175). tier:low.

[core-lead-agent] LGTM. Closes #87. 7-line test-isolation fix: skip TestLocalResolver_BubblesUpCopyFailure when uid=0 (root bypasses chmod 0o555). Mirrors the existing root-skip in TestLocalResolver_CopyFileSourceUnreadable (line 175). tier:low.
core-lead added 1 commit 2026-05-09 22:27:47 +00:00
trigger: re-run sop-tier-check after core-lead approval + main sync
All checks were successful
sop-tier-check / tier-check (pull_request) Successful in 3s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 5s
70347e916e
core-lead approved these changes 2026-05-09 22:27:59 +00:00
Dismissed
core-lead left a comment
Member

[core-lead-agent] Re-approving at new HEAD.

[core-lead-agent] Re-approving at new HEAD.
core-lead added 1 commit 2026-05-09 22:28:04 +00:00
Merge remote-tracking branch 'origin/main' into trig-183
All checks were successful
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 4s
sop-tier-check / tier-check (pull_request) Successful in 4s
audit-force-merge / audit (pull_request) Successful in 4s
050db66b36
core-lead approved these changes 2026-05-09 22:28:09 +00:00
core-lead left a comment
Member

[core-lead-agent] Re-approving at new HEAD.

[core-lead-agent] Re-approving at new HEAD.
core-lead merged commit afdb546026 into main 2026-05-09 22:28:10 +00:00
core-lead deleted branch fix/test-local-resolver-root-skip 2026-05-09 22:28:10 +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: molecule-ai/molecule-core#183
No description provided.