fix(scripts): avoid mutating tracked auth-monitor template during setup (#53920)

* fix(scripts): render auth monitor unit before install

Render the auth monitor service into temporary files instead of editing the tracked template. Quote the generated ExecStart safely, including spaces and literal dollars, then atomically install the rendered unit.

* fix(scripts): avoid mutating tracked auth-monitor template during setup

* fix(scripts): avoid mutating tracked auth-monitor template during setup

* fix(scripts): avoid mutating tracked auth-monitor template during setup

---------

Co-authored-by: JackWuGlobal <JackWuGlobal@users.noreply.github.com>
Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
This commit is contained in:
JackWu
2026-06-19 08:24:16 +08:00
committed by GitHub
parent 843b1d6fbb
commit e9e44bf83c
3 changed files with 99 additions and 12 deletions
+19
View File
@@ -1011,6 +1011,25 @@ describe("test-projects args", () => {
).toStrictEqual([]);
});
it("routes auth setup script changes to the focused tooling planner test", () => {
const changedPaths = ["scripts/setup-auth-system.sh"];
expect(resolveChangedTestTargetPlan(changedPaths)).toEqual({
mode: "targets",
targets: ["test/scripts/test-projects.test.ts"],
});
expect(
buildVitestRunPlans(["--changed=origin/main"], process.cwd(), () => changedPaths),
).toEqual([
{
config: "test/vitest/vitest.tooling.config.ts",
forwardedArgs: [],
includePatterns: ["test/scripts/test-projects.test.ts"],
watchMode: false,
},
]);
});
it("keeps core test-only changes on their owning test lane", () => {
const changedPaths = ["src/auto-reply/reply/commands-approve.test.ts"];