Skip to content
Source
Sign inSign up
pingdotgg/t3code

[codex] Enrich Git VCS driver errors #3253

Mergedjuliusmarmingemerged 5 commits intomain fromrefs/pull/3253/headmerged by juliusmarminge View on GitHub

Showing 5 changed files with 114 additions and 1 deletion (loading 3).

x
0 of 5 viewed, 5 left
6 additions and 1 deletionapps/server/src/git/GitManager.test.tsModified
View file
@@ -3377,13 +3377,18 @@
Effect.map((error) => error.message),
- expect(errorMessage).toContain("hook: fail");
+ expect(errorMessage).toContain("Git command failed in GitVcsDriver.commit.commit");
+ expect(errorMessage).not.toContain("hook: fail");
expect(events).toEqual(
expect.arrayContaining([
expect.objectContaining({
kind: "hook_started",
hookName: "pre-commit",
+ expect.objectContaining({
+ kind: "hook_output",
+ text: "hook: fail",
+ }),
expect.objectContaining({
kind: "action_failed",
phase: "commit",
108 additions and 0 deletionsapps/server/src/vcs/GitVcsDriverCore.test.tsModified
View file
@@ -78,6 +78,114 @@
});
​
it.layer(TestLayer)("GitVcsDriver core integration", (it) => {
+ describe("structured errors", () => {
+ it.effect("preserves structured spawn context and the platform cause", () =>