mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-28 05:16:23 -06:00
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:
@@ -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"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user