Skip to content

Commit 62e21bf

Browse files
committed
chore: drop Jira key references in favor of GitHub issue #932
altimate-code is tracked on GitHub, not Jira. Remove the `AI-7082` labels from code comments, test names, and the section header — the PR description carries the cross-reference instead. No functional changes; 24/24 bun:test still pass.
1 parent 62028a6 commit 62e21bf

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎packages/dbt-tools/src/dbt-cli.ts‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,9 @@ export async function execDbtShow(sql: string, limit?: number) {
222222
if (limit !== undefined) args.push("--limit", String(limit))
223223

224224
let lines: Record<string, unknown>[]
225-
// AI-7082: capture the run() error so we can bubble the real dbt failure
226-
// up if all parse tiers fail; the generic "Could not parse" alone misleads
227-
// callers into treating structural project errors as transient.
225+
// Capture the run() error so we can bubble the real dbt failure up if all
226+
// parse tiers fail; the generic "Could not parse" alone misleads callers
227+
// into treating structural project errors as transient.
228228
let primaryRunError: ExecFileError | undefined
229229
try {
230230
const { stdout } = await run(args)
@@ -305,8 +305,8 @@ export async function execDbtShow(sql: string, limit?: number) {
305305
plainRunError = e as ExecFileError
306306
}
307307

308-
// AI-7082: if either run() rejected, dbt actually crashed — surface the real
309-
// error instead of the generic "Could not parse" message.
308+
// If either run() rejected, dbt actually crashed — surface the real error
309+
// instead of the generic "Could not parse" message.
310310
const realError = extractDbtError(lines, primaryRunError, plainRunError)
311311
if (realError) {
312312
throw new Error(`dbt show failed: ${realError}`)
@@ -318,15 +318,15 @@ export async function execDbtShow(sql: string, limit?: number) {
318318
)
319319
}
320320

321-
/** AI-7082: shape of an execFile rejection — carries stdout/stderr alongside message. */
321+
/** Shape of an execFile rejection — carries stdout/stderr alongside message. */
322322
interface ExecFileError extends Error {
323323
stdout?: string
324324
stderr?: string
325325
code?: number | string
326326
}
327327

328328
/**
329-
* AI-7082: pick the best human-readable error from a failed `dbt show` invocation.
329+
* Pick the best human-readable error from a failed `dbt show` invocation.
330330
*
331331
* Preference order:
332332
* 1. A structured `level: "error"` event in the JSON log (dbt's own error msg).

‎packages/dbt-tools/test/dbt-cli.test.ts‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ describe("execDbtShow", () => {
150150
await expect(execDbtShow("SELECT 1")).rejects.toThrow("Could not parse dbt show output in any format")
151151
})
152152

153-
// --- AI-7082: bubble real dbt error instead of generic "Could not parse" ---
153+
// --- Bubble real dbt error instead of generic "Could not parse" ---
154154

155-
test("AI-7082: surfaces real dbt stderr when run fails", async () => {
155+
test("surfaces real dbt stderr when run fails", async () => {
156156
mockExecFile.mockImplementation((_cmd: string, _args: string[], _opts: any, cb: Function) => {
157157
const err: any = new Error("Command failed: dbt show --inline ...")
158158
err.code = 1
@@ -166,7 +166,7 @@ describe("execDbtShow", () => {
166166
await expect(execDbtShow("SELECT 1")).rejects.toThrow(/dbt show failed/)
167167
})
168168

169-
test("AI-7082: prefers structured error event in JSON log over raw stderr", async () => {
169+
test("prefers structured error event in JSON log over raw stderr", async () => {
170170
const errorLog = JSON.stringify({
171171
info: {
172172
level: "error",
@@ -184,7 +184,7 @@ describe("execDbtShow", () => {
184184
await expect(execDbtShow("SELECT 1")).rejects.toThrow(/Compilation Error.*Model 'foo'/)
185185
})
186186

187-
test("AI-7082: does not surface generic 'Could not parse' when dbt actually crashed", async () => {
187+
test("does not surface generic 'Could not parse' when dbt actually crashed", async () => {
188188
mockExecFile.mockImplementation((_cmd: string, _args: string[], _opts: any, cb: Function) => {
189189
const err: any = new Error("Command failed")
190190
err.code = 2
@@ -196,7 +196,7 @@ describe("execDbtShow", () => {
196196
await expect(execDbtShow("SELECT 1")).rejects.not.toThrow(/Could not parse dbt show output/)
197197
})
198198

199-
test("AI-7082: preserves generic 'Could not parse' when dbt exited 0 but output unparseable", async () => {
199+
test("preserves generic 'Could not parse' when dbt exited 0 but output unparseable", async () => {
200200
// Existing behavior — dbt didn't crash, we just couldn't decode its output.
201201
mockExecFile.mockImplementation((_cmd: string, _args: string[], _opts: any, cb: Function) => {
202202
cb(null, "some unparseable output", "")
@@ -205,7 +205,7 @@ describe("execDbtShow", () => {
205205
await expect(execDbtShow("SELECT 1")).rejects.toThrow("Could not parse dbt show output in any format")
206206
})
207207

208-
test("AI-7082: falls back to error message when stderr is empty", async () => {
208+
test("falls back to error message when stderr is empty", async () => {
209209
mockExecFile.mockImplementation((_cmd: string, _args: string[], _opts: any, cb: Function) => {
210210
const err: any = new Error("spawn ENOENT")
211211
err.code = "ENOENT"

0 commit comments

Comments
 (0)