You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
core.setFailed(`${ERR_CONFIG}: Claude execution failed: no structured log entries were produced. This usually indicates a startup or configuration error before tool execution.`);
342
+
if(safeOutputEntriesCount>0){
343
+
core.warning(
344
+
`Claude produced no structured log entries, but agent completed with ${safeOutputEntriesCount} safe output ${safeOutputEntriesCount===1 ? "entry" : "entries"} — treating as non-fatal post-completion infrastructure failure`
345
+
);
346
+
}else{
347
+
core.setFailed(`${ERR_CONFIG}: Claude execution failed: no structured log entries were produced. This usually indicates a startup or configuration error before tool execution.`);
expect(mockCore.warning).toHaveBeenCalledWith("Claude produced no structured log entries, but agent completed with 1 safe output entry — treating as non-fatal post-completion infrastructure failure");
221
+
}finally{
222
+
fs.unlinkSync(logFile);
223
+
fs.unlinkSync(safeOutputsFile);
224
+
deleteprocess.env.GH_AW_SAFE_OUTPUTS;
225
+
fs.rmdirSync(tmpDir);
226
+
}
227
+
}),
228
+
it("should fail when Claude has empty logEntries and no safe outputs (startup failure)",()=>{
expect(mockCore.setFailed).toHaveBeenCalledWith(`${ERR_CONFIG}: Claude execution failed: no structured log entries were produced. This usually indicates a startup or configuration error before tool execution.`);
238
+
}finally{
239
+
fs.unlinkSync(logFile);
240
+
fs.rmdirSync(tmpDir);
241
+
}
242
+
}),
243
+
it("should not print 'parsed successfully' for Claude when logEntries is empty",()=>{
expect(mockCore.warning).toHaveBeenCalledWith("Claude produced no structured log entries, but agent completed with 1 safe output entry — treating as non-fatal post-completion infrastructure failure");
258
+
}finally{
259
+
fs.unlinkSync(logFile);
260
+
fs.unlinkSync(safeOutputsFile);
261
+
deleteprocess.env.GH_AW_SAFE_OUTPUTS;
262
+
fs.rmdirSync(tmpDir);
263
+
}
264
+
}),
265
+
it("should treat logEntries: null as missing entries for Claude guardrail (no safe outputs → setFailed)",()=>{
expect(mockCore.setFailed).toHaveBeenCalledWith(`${ERR_CONFIG}: Claude execution failed: no structured log entries were produced. This usually indicates a startup or configuration error before tool execution.`);
275
+
}finally{
276
+
fs.unlinkSync(logFile);
277
+
deleteprocess.env.GH_AW_AGENT_OUTPUT;
278
+
fs.rmdirSync(tmpDir);
279
+
}
280
+
}),
281
+
it("should treat logEntries: null as missing entries for Claude guardrail (safe outputs → warning)",()=>{
expect(mockCore.warning).toHaveBeenCalledWith("Claude produced no structured log entries, but agent completed with 1 safe output entry — treating as non-fatal post-completion infrastructure failure");
0 commit comments