feat(FN-4032): add tracking retry with actionable create issue error in tas

The merge adds a GitHub integration retry lifecycle to the task tracking system, including an actionable retry mechanism for failed issue creation, fixes to tracking and auth retry flow, and corresponding tests in the dashboard and engine packages. Documentation is updated in `docs/architecture.md`

Fusion-Task-Id: FN-4032
This commit is contained in:
Fusion
2026-05-11 16:27:40 -07:00
committed by gsxdsm
parent d589069b21
commit 2535de9f0f
10 changed files with 177 additions and 42 deletions

View File

@@ -211,4 +211,16 @@ describe("maybeCreateTrackingIssue", () => {
}));
expect(createIssueMock).not.toHaveBeenCalled();
});
it("passes global settings through to auth resolution", async () => {
const globalSettings = { githubTrackingDefaultRepo: "o/r", githubAuthMode: "token" } as any;
await maybeCreateTrackingIssue(buildTask({ githubTracking: { enabled: true } }), {
taskStore: { linkGithubIssue: vi.fn(), recordActivity: vi.fn() } as any,
projectSettings: {},
globalSettings,
logger: { warn: vi.fn(), info: vi.fn() },
});
expect(resolveAuthMock).toHaveBeenCalledWith(expect.objectContaining({ globalSettings }));
});
});