Repository navigation
test(writ): the scenario harness — a pristine user, the real binary, two sources - #348
Merged
Merged
Conversation
…two sources Phase 1 of the writ-deploy scenario (#346). The harness stands up a sandbox user (fresh HOME + XDG triplet), registers the personal layer through the settled packaging mechanism — the layers-dir symlink; config plays no part per the config-vs-layers separation — and drives the built writ binary as a subprocess. The personal repo materializes from the checked-in 14-file neutral fixture by default, or from a real repo's devlore-cli/writ-layer branch via WRIT_SCENARIO_REPO (in-process git-archive extraction, traversal-guarded, checkout undisturbed). make test-scenario builds and runs it; make test skips it while the file stays compiled and linted. Q2 re-ruled and Q3 recorded in the plan. Verified green in both modes.
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.
Phase 1 of #346. The sandbox harness: fresh HOME + XDG homes, the personal layer registered via the layers-dir symlink (the settled packaging mechanism — Q2 re-ruled after finding the guide's
writ.reposconfig key is read by nothing; zero config-API migration debt), the builtwritdriven as a subprocess. Repo sources: the neutral 14-file fixture (CI) or a real repo'sdevlore-cli/writ-layerbranch viaWRIT_SCENARIO_REPO(in-processgit archiveextraction).make test-scenariobuilds + runs;make testskips. Verified green in both modes; board zero on both GOOS. Next: the deploy leg (phase 2).