Skip to content

test(microvm): respect host umask in merge ownership assertions - #2014

Merged
jbeda merged 1 commit into
mainfrom
fix/microvm-merge-test-umask
Sep 30, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/microvm-merge-test-umask

Conversation

@jbeda

@jbeda jbeda commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Make the repository merge-back ownership test assert metadata against actual host file modes rather than assume the process umask is 0022.
  • Keep the stale guest-mode check unambiguous even if the host's umask yields 0640.

Development stage

  • Spike / Routine / Cleanup — Routine test correction; the documented host-derived mode contract is unchanged.

Contract linkage

  • Work classification: Routine
  • Classification rationale: Correct an existing test's assumption about host umask; no runtime or interface change.
  • Decision record: None — no new durable decision.
  • Human waiver of spine: No
  • Acceptance plan: N/A (Routine)
  • Human decisions resolved and recorded: N/A
  • Plan / Interface PR: N/A
  • Approved commit baseline: N/A
  • Combined/exemption rationale: Routine work does not use the acceptance spine.

Interface conformance

  • No interface change; existing host-derived merge-back behavior is preserved.

Issue relationship

Relates to #2008. This PR fixes the failing merge-back test; the issue also notes a separate artifact-packaging boundary to verify independently.

Type of change

  • Bug fix (test assertion)

Test plan

Baseline checks

  • Linting (task lint, clean validation worktree)
  • Fast offline test suite (task test, clean validation worktree)
  • Pre-review race suite (task test:race, clean validation worktree). The first aggregate attempt hit an unrelated intermittent internal/adapter/store/jsonlstore/TestJSONLStoreLineageConformance failure (lineage partition is incomplete); both the focused race rerun and second full race suite passed. If it fails in CI, track it separately as a flake.
  • Offline demo (go run ./cmd/mecademo: tool call, permission ask/approval, result)
  • Focused microVM test under umask 0002, 0022, 0027, and 0077; full microVM module suite and focused race test passed.

User-facing change

None. No umask is changed by this PR.

Special notes for reviewers

Only environment/microvm/repository_attachment_test.go is committed. The originating worktree also has pre-existing, uncommitted module-file edits; all aggregate gate results above were gathered from an isolated clean checkout of this commit.

@jbeda
jbeda marked this pull request as ready for review September 30, 2026 17:41
@jbeda
jbeda merged commit ce94858 into main Sep 30, 2026
61 of 64 checks passed
@jbeda
jbeda deleted the fix/microvm-merge-test-umask branch September 30, 2026 17:59
This was referenced Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant