Repository navigation
Matt Pocock Skills Reviewer #7205
mattpocock-skills-reviewer.lock.yml
on: pull_request
Annotations
3 errors and 2 notices
|
agent
Secret redaction failed (stage=read, code=EIO)\",\n \"2026-10-10T10:00:02.500Z ##[warning]Secret redaction failed (stage=unlink, code=EACCES)\",\n \"2026-10-10T10:00:03.000Z ##[error]ERR_VALIDATION: Secret redaction failed: ERR_VALIDATION: Failed to remove artifact source after secret redaction failed (input_bytes=12)\",\n \"2026-10-10T10:00:03.100Z ##[error]private-exception-message\",\n \"2026-10-10T10:00:03.200Z ##[error]Secret redaction failed (stage=read, code=private-code)\",\n \"2026-10-10T10:00:05.000Z ##[error]Secret redaction failed (stage=write, code=ENOSPC)\",\n ].join(\"\\n\"),\n });\n const diagnostics = await getFailedAgentDiagnostics();\n expect(diagnostics).toMatchObject({ failingStep: \"Redact secrets in logs\", secretRedactionFailed: true });\n expect(global.github.rest.actions.downloadJobLogsForWorkflowRun).toHaveBeenCalledWith({ owner: \"owner\", repo: \"repo\", job_id: 456 });\n const rendered = buildFailureDiagnosticsContext({ ...diagnostics, failureCategories: [\"engine_driver_failure\"], engineFailureContext: \"generic driver exit\" });\n expect(rendered).toContain(\"Secret redaction failed (stage=unlink, code=EACCES)\");\n expect(rendered).toContain(\"ERR_VALIDATION: Failed to remove artifact source after secret redaction failed (input_bytes=12)\");\n expect(rendered).not.toContain(\"generic driver exit\");\n expect(rendered).not.toContain(\"private-\");\n expect(rendered).not.toContain(\"code=EIO\");\n expect(rendered).not.toContain(\"code=ENOSPC\");\n });\n\n it(\"keeps a redaction-specific explanation when its job log is unavailable\", async () => {\n mockFailedStepLog(\"\");\n global.github.paginate.mockResolvedValue([\n { id: 456, name: \"agent\", conclusion: \"failure\", steps: [{ name: \"Redact secrets in logs\", conclusion: \"failure\", started_at: \"2026-10-10T10:00:02Z\", completed_at: \"2026-10-10T10:00:04Z\" }] },\n ]);\n global.github.rest.actions.downloadJobLogsForWorkflowRun = vi.fn().mockRejectedValue(new Error(\"private-api-error\"));\n const diagnostics = await getFailedAgentDiagnostics();\n expect(diagnostics.stepError).toContain(\"Secret redaction failed; error details are unavailable.\");\n expect(JSON.stringify(global.core.warning.mock.calls)).not.toContain(\"private-api-error\");\n });\n\n it(\"includes the first failing startup step for a recorded not_started agent\", async () => {\n mockFailedStepLog(\"private startup error\");\n global.github.paginate.mockResolvedValue([\n {\n name: \"agent\",\n conclusion: \"failure\",\n steps: [\n { name: \"Start MCP gateway\", conclusion: \"failure\" },\n { name: \"Run agent\", conclusion: \"skipped\" },\n { name: \"Post Run agent\", conclusion: \"failure\" },\n ],\n },\n ]);\n const diagnostics = await getFailedAgentDiagnostics({ startupFailure: true });\n const rendered = buildFailureDiagnosticsContext({ ...diagnostics, failureCategories: [\"agent_startup_failure\", \"report_incomplete\"], engineFailureContext: \"\" });\n expect(rendered).toContain(\"Failing step:** `Start MCP gateway`\");\n expect(rendered).not.toContain(\"private startup error\");\n expect(global.github.request).not.toHaveBeenCalled();\n });\n\n it(\"uses dependency results as the job fallback when the jobs API returns nothing\", async () => {\n global.github = {\n paginate: vi.fn().mockResolvedValue([]),\n rest: { actions: { listJobsForWorkflowRun: vi.fn() } },\n };\n const previousConclusion = process.env.GH_AW_AGENT_CONCLUSION;\n process.env.GH_AW_AGENT_CONCLUSION = \"failure\";\n try {\n<shellId: 47 completed with exit code 0>","detailedContent":"]),\n rest: { actions: { listJobsForWorkflowRun: vi.fn() } },\n request: vi.fn().mockResolvedValue({ data: log }),\n };\n global.context.runId = 123;\n }\n\n it(\"
|
|
agent
Secret redaction failed (stage=read, code=EIO)\",\n+ \"2026-10-10T10:00:02.500Z ##[warning]Secret redaction failed (stage=unlink, code=EACCES)\",\n+ \"2026-10-10T10:00:03.000Z ##[error]ERR_VALIDATION: Secret redaction failed: ERR_VALIDATION: Failed to remove artifact source after secret redaction failed (input_bytes=12)\",\n+ \"2026-10-10T10:00:03.100Z ##[error]private-exception-message\",\n+ \"2026-10-10T10:00:03.200Z ##[error]Secret redaction failed (stage=read, code=private-code)\",\n+ \"2026-10-10T10:00:05.000Z ##[error]Secret redaction failed (stage=write, code=ENOSPC)\",\n+ ].join(\"\\n\"),\n+ });\n+ const diagnostics = await getFailedAgentDiagnostics();\n+ expect(diagnostics).toMatchObject({ failingStep: \"Redact secrets in logs\", secretRedactionFailed: true });\n+ expect(global.github.rest.actions.downloadJobLogsForWorkflowRun).toHaveBeenCalledWith({ owner: \"owner\", repo: \"repo\", job_id: 456 });\n+ const rendered = buildFailureDiagnosticsContext({ ...diagnostics, failureCategories: [\"engine_driver_failure\"], engineFailureContext: \"generic driver exit\" });\n+ expect(rendered).toContain(\"Secret redaction failed (stage=unlink, code=EACCES)\");\n+ expect(rendered).toContain(\"ERR_VALIDATION: Failed to remove artifact source after secret redaction failed (input_bytes=12)\");\n+ expect(rendered).not.toContain(\"generic driver exit\");\n+ expect(rendered).not.toContain(\"private-\");\n+ expect(rendered).not.toContain(\"code=EIO\");\n+ expect(rendered).not.toContain(\"code=ENOSPC\");\n+ });\n+\n+ it(\"keeps a redaction-specific explanation when its job log is unavailable\", async () => {\n+ mockFailedStepLog(\"\");\n+ global.github.paginate.mockResolvedValue([\n+ { id: 456, name: \"agent\", conclusion: \"failure\", steps: [{ name: \"Redact secrets in logs\", conclusion: \"failure\", started_at: \"2026-10-10T10:00:02Z\", completed_at: \"2026-10-10T10:00:04Z\" }] },\n+ ]);\n+ global.github.rest.actions.downloadJobLogsForWorkflowRun = vi.fn().mockRejectedValue(new Error(\"private-api-error\"));\n+ const diagnostics = await getFailedAgentDiagnostics();\n+ expect(diagnostics.stepError).toContain(\"Secret redaction failed; error details are unavailable.\");\n+ expect(JSON.stringify(global.core.warning.mock.calls)).not.toContain(\"private-api-error\");\n+ });\n+\n it(\"includes the first failing startup step for a recorded not_started agent\", async () => {\n mockFailedStepLog(\"private startup error\");\n global.github.paginate.mockResolvedValue([\n@@ -903,6 +950,8 @@ describe(\"handle_agent_failure\", () => {\n \n it.each([\n [\"agent_startup_failure\", \"[aw] Test Workflow: failed before agent execution started\"],\n+ [\"driver_crash\", \"[aw] Test Workflow: engine driver crashed\"],\n+ [\"secret_redaction_failure\", \"[aw] Test Workflow: failed to redact secrets in logs\"],\n [\"engine_outage\", \"[aw] Test Workflow: experienced an engine outage\"],\n [\"request_rejection\", \"[aw] Test Workflow: had a request rejected\"],\n [\"prompt_exhaustion\", \"[aw] Test Workflow: reported incomplete result\"],\n@@ -913,9 +962,9 @@ describe(\"handle_agent_failure\", () => {\n });\n \n it.each([\n- [1, [], [], \"[aw] Test Workflow: failed (cause unknown)\"],\n- [137, [], [], \"[aw] Test Workflow: failed (cause unknown)\"],\n- [139, [], [], \"[aw] Test Workflow: failed (cause unknown)\"],\n+ [1, [], [], \"[aw] Test Workflow: engine driver crashed\"],\n+ [137, [], [], \"[aw] Test Workflow: engine driver crashed\"],\n+ [139, [], [], \"[aw] Test Workflow: engine driver crashed\"],\n [1, [\"capi_server_error\"], [502], \"[aw] Test Workflow: experienced an engine outage\"],\n ])(\"uses runtime evidence rather than a bare driver exit %s to choose an outage title\", (exitCode, categories, errorCodes, title) => {\n const { buildEmptyOutputOutcome } = require(\"./empty_outpu
|
|
agent
Secret redaction failed (stage=read, code=EIO)\",\n+ \"2026-10-10T10:00:02.500Z ##[warning]Secret redaction failed (stage=unlink, code=EACCES)\",\n+ \"2026-10-10T10:00:03.000Z ##[error]ERR_VALIDATION: Secret redaction failed: ERR_VALIDATION: Failed to remove artifact source after secret redaction failed (input_bytes=12)\",\n+ \"2026-10-10T10:00:03.100Z ##[error]private-exception-message\",\n+ \"2026-10-10T10:00:03.200Z ##[error]Secret redaction failed (stage=read, code=private-code)\",\n+ \"2026-10-10T10:00:05.000Z ##[error]Secret redaction failed (stage=write, code=ENOSPC)\",\n+ ].join(\"\\n\"),\n+ });\n+ const diagnostics = await getFailedAgentDiagnostics();\n+ expect(diagnostics).toMatchObject({ failingStep: \"Redact secrets in logs\", secretRedactionFailed: true });\n+ expect(global.github.rest.actions.downloadJobLogsForWorkflowRun).toHaveBeenCalledWith({ owner: \"owner\", repo: \"repo\", job_id: 456 });\n+ const rendered = buildFailureDiagnosticsContext({ ...diagnostics, failureCategories: [\"engine_driver_failure\"], engineFailureContext: \"generic driver exit\" });\n+ expect(rendered).toContain(\"Secret redaction failed (stage=unlink, code=EACCES)\");\n+ expect(rendered).toContain(\"ERR_VALIDATION: Failed to remove artifact source after secret redaction failed (input_bytes=12)\");\n+ expect(rendered).not.toContain(\"generic driver exit\");\n+ expect(rendered).not.toContain(\"private-\");\n+ expect(rendered).not.toContain(\"code=EIO\");\n+ expect(rendered).not.toContain(\"code=ENOSPC\");\n+ });\n+\n+ it(\"keeps a redaction-specific explanation when its job log is unavailable\", async () => {\n+ mockFailedStepLog(\"\");\n+ global.github.paginate.mockResolvedValue([\n+ { id: 456, name: \"agent\", conclusion: \"failure\", steps: [{ name: \"Redact secrets in logs\", conclusion: \"failure\", started_at: \"2026-10-10T10:00:02Z\", completed_at: \"2026-10-10T10:00:04Z\" }] },\n+ ]);\n+ global.github.rest.actions.downloadJobLogsForWorkflowRun = vi.fn().mockRejectedValue(new Error(\"private-api-error\"));\n+ const diagnostics = await getFailedAgentDiagnostics();\n+ expect(diagnostics.stepError).toContain(\"Secret redaction failed; error details are unavailable.\");\n+ expect(JSON.stringify(global.core.warning.mock.calls)).not.toContain(\"private-api-error\");\n+ });\n+\n it(\"includes the first failing startup step for a recorded not_started agent\", async () => {\n mockFailedStepLog(\"private startup error\");\n global.github.paginate.mockResolvedValue([\n@@ -903,6 +950,8 @@ describe(\"handle_agent_failure\", () => {\n \n it.each([\n [\"agent_startup_failure\", \"[aw] Test Workflow: failed before agent execution started\"],\n+ [\"driver_crash\", \"[aw] Test Workflow: engine driver crashed\"],\n+ [\"secret_redaction_failure\", \"[aw] Test Workflow: failed to redact secrets in logs\"],\n [\"engine_outage\", \"[aw] Test Workflow: experienced an engine outage\"],\n [\"request_rejection\", \"[aw] Test Workflow: had a request rejected\"],\n [\"prompt_exhaustion\", \"[aw] Test Workflow: reported incomplete result\"],\n@@ -913,9 +962,9 @@ describe(\"handle_agent_failure\", () => {\n });\n \n it.each([\n- [1, [], [], \"[aw] Test Workflow: failed (cause unknown)\"],\n- [137, [], [], \"[aw] Test Workflow: failed (cause unknown)\"],\n- [139, [], [], \"[aw] Test Workflow: failed (cause unknown)\"],\n+ [1, [], [], \"[aw] Test Workflow: engine driver crashed\"],\n+ [137, [], [], \"[aw] Test Workflow: engine driver crashed\"],\n+ [139, [], [], \"[aw] Test Workflow: engine driver crashed\"],\n [1, [\"capi_server_error\"], [502], \"[aw] Test Workflow: experienced an engine outage\"],\n ])(\"uses runtime evidence rather than a bare driver exit %s to choose an outage title\", (exitCode, categories, errorCodes, title) => {\n const { buildEmptyOutputOutcome } = require(\"./empty_outpu
|
|
agent
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
|
detection
"The ubuntu-latest label will migrate to Ubuntu 26 beginning October 19, 2026. For more information, see https://github.com/actions/runner-images/issues/14748"
|
Artifacts
Produced during runtime
| Name | Size | Digest | |
|---|---|---|---|
|
agent
|
4.63 MB |
sha256:9c3bcfb3f6e594ef7ce1bc9906a969ce5a828628be1be56632d2f89083614bf5
|
|
|
agent-output-fallback
|
9.85 KB |
sha256:7938960955c685f73a7bdbe4607a5b7d8caa5d550a7b33daef4e7bca91a03b64
|
|
|
detection
|
21 KB |
sha256:84fdb5e0c2bde5bd86e302fa3bae92225192a653f1b1bacffc877add8c1e8e1c
|
|
|
info
|
892 Bytes |
sha256:1b99c752905e9e5b308bfcfbf23eb33d0873ea79f1d04f0c22f82412e0f530e1
|
|
|
safe-outputs-items
|
765 Bytes |
sha256:051c33e13594bdeb96b3b157657f867743a0a412ce8990b7125bbb5334e32cf8
|
|
|
usage
|
219 KB |
sha256:7028dbd4a6dcbfab257d39224c19a5ae6acd423cc83b8c0894276f21ebac335a
|
|