Repository navigation
fix(temp): use managed job tmp for isolated test runtime - #2278
Merged
Merged
Conversation
Accept active cmd and job test-home markers without depending on GC bookkeeping. Preserve lease validation and require private runtime destinations. Co-authored-by: Mecatl <[email protected]>
Merged
2 tasks
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
Use the managed command/job lease's existing private
tmpdirectory as the isolated command tests'XDG_RUNTIME_DIR, rather than falling back to a runtime directory nested beneath synthetic HOME.The runner already publishes
MECATL_TEST_TEMP_LEASE, andtesthome.Runalready selects<lease>/tmpfor an accepted marker. The validator previously accepted onlycmd-*leases, rejecting backgroundjob-*leases. It also required the namespace'sgc.lock, coupling test-runtime placement to unrelated harness reaper bookkeeping.gc.lockfrom test-home marker validation; leave namespace initialization and garbage collection unchanged.tmpdirectory and private regularlease.lock.gc.lock, HOME/XDG restoration, lease-owned cleanup, unsafe paths, manifest mismatches, and real background marker propagation. Wait for complete streamed output in the test fixture rather than assuming a single write.No
/worktreesUI changes or Darwin socket-fallback changes are included. This reduces socket-path nesting; it does not promise arbitrary-length managed roots will fit the platform's Unix-socket pathname limit.Validation
Temp-only checkout, using managed Shell temporary storage:
task linttask testtask test:racego run ./cmd/mecademo— tool call, permission ask/approval, and final resultgit diff --checkPanel review: Spec, Standards, Test adequacy, and Domain (security, architecture, library reuse, duplication) passed after adding the manifest-ID negative control. The foreign-owner test skips on unprivileged hosts where changing ownership is unavailable.