Keep configs in ~/.config/build-release/ and tool state in ~/.local/state/build-release/, under XDG_* where set
CI / tests (pull_request) Successful in 6m34s

This commit is contained in:
2026-12-03 18:56:28 +01:00
parent 20c83f861f
commit 1ca2c8efe0
142 changed files with 1095 additions and 933 deletions
@@ -88,7 +88,7 @@ class BenchOfTasksCase(unittest.TestCase):
self.addCleanup(folder.cleanup)
self.root = pathlib.Path(folder.name).resolve()
self.home, self.repo, fakes = self.root / "home", self.root / "repo", self.root / "fakes"
for made in (self.home / ".claude-projects/calc", self.repo, fakes):
for made in (self.home / ".config/build-release/calc", self.repo, fakes):
made.mkdir(parents=True)
(fakes / "docker").write_text(DOCKER)
(fakes / "docker").chmod(0o755)
@@ -96,7 +96,7 @@ class BenchOfTasksCase(unittest.TestCase):
self.log = self.root / "docker.log"
self.env = {**isolated_env(), "HOME": str(self.home), "PATH": f"{fakes}{os.pathsep}{os.environ['PATH']}", "FAKE_LOG": str(self.log), "FAKE_CLAUDE": str(fakes / "claude.py"), "CLAUDE_CODE_OAUTH_TOKEN": "sk-secret-token"}
self.given = {"--image": "golang:1.27.4", "--test": TEST, "--tasks": "features", "--runs": "2", "--base": "main"}
self.config = self.home / ".claude-projects/calc/config.toml"
self.config = self.home / ".config/build-release/calc/config.toml"
self.config.write_text(f'checkout = "{self.repo}"\n{CONFIG}bench-tasks = "checkout:bench-tasks"\n')
self.tasks = self.repo / "bench-tasks"
self.git("init", "--quiet", "--initial-branch", "main")
@@ -188,7 +188,7 @@ class FeatureBenchTest(BenchOfTasksCase):
])
def test_reads_the_features_from_a_folder_outside_the_checkout(self):
outside = self.home / ".claude-projects/calc/bench-tasks"
outside = self.home / ".config/build-release/calc/bench-tasks"
self.tasks.rename(outside)
self.config.write_text(self.config.read_text().replace("checkout:bench-tasks", "folder:bench-tasks"))
self.head = self.commit("Move the features out")