Skip to content

[aw] CI Cleaner failed #25257

Closed as not planned
Closed as not planned

Description

@github-actions

Workflow Failure

Workflow: CI Cleaner
Branch: main
Run: https://github.com/github/gh-aw/actions/runs/24122060357

⚠️ Engine Failure: The claude engine terminated unexpectedly.

Last agent output:

 Container awf-squid  Stopped
 Container awf-squid  Removing
 Container awf-squid  Removed
[SUCCESS] Containers stopped successfully
[INFO] API proxy logs available at: /tmp/gh-aw/sandbox/firewall/logs/api-proxy-logs
[INFO] CLI proxy logs available at: /tmp/gh-aw/sandbox/firewall/logs/cli-proxy-logs
[INFO] Squid logs available at: /tmp/gh-aw/sandbox/firewall/logs
[INFO] Audit artifacts available at: /tmp/gh-aw/sandbox/firewall/audit
[WARN] Command completed with exit code: 1
Process exiting with code: 1

Action Required

Assign this issue to Copilot using the agentic-workflows sub-agent to automatically debug and fix the workflow failure.

Debug with any coding agent

Use this prompt with any coding agent (GitHub Copilot, Claude, Gemini, etc.):

Debug the agentic workflow failure using https://raw.githubusercontent.com/github/gh-aw/main/debug.md

The failed workflow run is at https://github.com/github/gh-aw/actions/runs/24122060357
Manually invoke the agent

Debug this workflow failure using your favorite Agent CLI and the agentic-workflows prompt.

Tip

Stop reporting this workflow as a failure

To stop a workflow from creating failure issues, set report-failure-as-issue: false in its frontmatter:

safe-outputs:
  report-failure-as-issue: false

Generated from CI Cleaner · ◷

  • expires on Apr 15, 2026, 6:54 AM UTC

Activity

  1. github-actions commented on Apr 8, 2026

    @github-actions
    ContributorAuthor

    Agent job 24152440183 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-08T18:48:20.515Z [DEBUG] MCP server "github": Connection error: This operation was aborted
    2026-04-08T18:48:20.515Z [DEBUG] MCP server "safeoutputs": HTTP connection dropped after 0s uptime
    2026-04-08T18:48:20.515Z [DEBUG] MCP server "safeoutputs": Connection error: This operation was aborted
    2026-04-08T18:48:20.676Z [DEBUG] [mcp-registry] Loaded 47 official MCP URLs
    2026-04-08T18:48:20.701Z [DEBUG] Failed to check metrics opt-out status: Request failed with status code 401
    2026-04-08T18:48:20.701Z [DEBUG] Metrics export disabled by organization setting
    2026-04-08T18:48:20.702Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-08T18:48:20.702Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-08T18:48:20.702Z [DEBUG] BigQuery metrics exporter shutdown complete
    [?1006l[?1003l[?1002l[?1000l[>4m[<u[?1004l[?2031l[?2004l[?25h]9;4;0;]0;[?25h[entrypoint] Unsetting sensitive tokens from parent shell environment...
    

    Generated from CI Cleaner · ◷

  2. github-actions commented on Apr 9, 2026

    @github-actions
    ContributorAuthor

    Agent job 24176713746 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-09T06:53:49.864Z [DEBUG] MCP server "github": HTTP connection dropped after 0s uptime
    2026-04-09T06:53:49.864Z [DEBUG] MCP server "github": Connection error: This operation was aborted
    2026-04-09T06:53:49.864Z [DEBUG] MCP server "safeoutputs": HTTP connection dropped after 0s uptime
    2026-04-09T06:53:49.864Z [DEBUG] MCP server "safeoutputs": Connection error: This operation was aborted
    2026-04-09T06:53:49.934Z [DEBUG] Failed to check metrics opt-out status: Request failed with status code 401
    2026-04-09T06:53:49.934Z [DEBUG] Metrics export disabled by organization setting
    2026-04-09T06:53:49.935Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-09T06:53:49.935Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-09T06:53:49.935Z [DEBUG] BigQuery metrics exporter shutdown complete
    [?1006l[?1003l[?1002l[?1000l[>4m[<u[?1004l[?2031l[?2004l[?25h]9;4;0;]0;[?25h[entrypoint] Unsetting sensitive tokens from parent shell environment...
    

    Generated from CI Cleaner · ◷

  3. github-actions commented on Apr 9, 2026

    @github-actions
    ContributorAuthor

    Agent job 24207053878 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-09T18:40:58.035Z [DEBUG] MCP server "safeoutputs": HTTP connection dropped after 0s uptime
    2026-04-09T18:40:58.035Z [DEBUG] MCP server "safeoutputs": Connection error: This operation was aborted
    2026-04-09T18:40:58.054Z [ERROR] Failed to fetch org fast mode status, defaulting to disabled (network_error): AxiosError: Request failed with status code 401
    2026-04-09T18:40:58.105Z [DEBUG] [mcp-registry] Loaded 47 official MCP URLs
    2026-04-09T18:40:58.128Z [DEBUG] Failed to check metrics opt-out status: Request failed with status code 401
    2026-04-09T18:40:58.128Z [DEBUG] Metrics export disabled by organization setting
    2026-04-09T18:40:58.128Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-09T18:40:58.129Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-09T18:40:58.129Z [DEBUG] BigQuery metrics exporter shutdown complete
    [?1006l[?1003l[?1002l[?1000l[>4m[<u[?1004l[?2031l[?2004l[?25h]9;4;0;]0;[?25h[entrypoint] Unsetting sensitive tokens from parent shell environment...
    

    Generated from CI Cleaner · ◷

  4. github-actions commented on Apr 11, 2026

    @github-actions
    ContributorAuthor

    Agent job 24276860098 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-11T06:53:20.441Z [DEBUG] MCP server "github": Cleared connection cache for reconnection
    2026-04-11T06:53:20.441Z [DEBUG] MCP server "safeoutputs": HTTP connection closed after 599s (with errors)
    2026-04-11T06:53:20.441Z [DEBUG] MCP server "safeoutputs": Cleared connection cache for reconnection
    2026-04-11T06:53:20.444Z [DEBUG] LSP server manager shut down successfully
    2026-04-11T06:53:20.445Z [DEBUG] Metrics export disabled by organization setting
    2026-04-11T06:53:20.445Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-11T06:53:20.445Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-11T06:53:20.445Z [DEBUG] BigQuery metrics exporter shutdown complete
    2026-04-11T06:53:20.446Z [DEBUG] Cleaned up session snapshot: /home/runner/.claude/shell-snapshots/snapshot-bash-1775889819436-8b171g.sh
    [?1006l[?1003l[?1002l[?1000l[>4m[<u[?1004l[?2031l[?2004l[?25h]9;4;0;]0;[?25h[WARN] Firewall blocked domains:
    

    Generated from CI Cleaner · ◷

  5. github-actions commented on Apr 12, 2026

    @github-actions
    ContributorAuthor

    Agent job 24300820441 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-12T06:58:23.344Z [DEBUG] Spawning shell without login (-l flag skipped)
    2026-04-12T06:58:23.355Z [DEBUG] Bash tool error (12ms): Shell command failed
    2026-04-12T06:58:23.356Z [DEBUG] LSP Diagnostics: getLSPDiagnosticAttachments called
    2026-04-12T06:58:23.356Z [DEBUG] LSP Diagnostics: Checking registry - 0 pending
    2026-04-12T06:58:23.356Z [DEBUG] Hooks: Found 0 total hooks in registry
    2026-04-12T06:58:23.356Z [DEBUG] Hooks: checkForNewResponses returning 0 responses
    {"type":"user","message":{"role":"user","content":[{"type":"tool_result","content":"Exit code 2\nsed: can't read actions/setup/js/send_otlp_span.test.cjs: No such file or directory","is_error":true,"tool_use_id":"toolu_0135vUZ3oNgUr2JsWW4arpyU"}]},"parent_tool_use_id":null,"session_id":"427d0090-6280-47bf-9759-9cdf694ee455","uuid":"e374ccf0-5d48-493d-8504-e1e03c46b7a9","timestamp":"2026-04-12T06:58:23.355Z","tool_use_result":"Error: Exit code 2\nsed: can't read actions/setup/js/send_otlp_span.test.cjs: No such file or directory"}
    2026-04-12T06:58:23.357Z [DEBUG] Fast mode unavailable: Fast mode is not available in the Agent SDK
    {"type":"result","subtype":"error_max_turns","duration_ms":377598,"duration_api_ms":59736,"is_error":true,"num_turns":21,"stop_reason":"tool_use","session_id":"427d0090-6280-47bf-9759-9cdf694ee455","total_cost_usd":0.5433208499999999,"usage":{"input_tokens":22,"cache_creation_input_tokens":64649,"cache_read_input_tokens":846287,"output_tokens":3129,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":64649},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{"claude-sonnet-4-6":{"inputTokens":22,"outputTokens":3129,"cacheReadInputTokens":846287,"cacheCreationInputTokens":64649,"webSearchRequests":0,"costUSD":0.5433208499999999,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"max_turns","fast_mode_state":"off","uuid":"ffd595d4-0524-4c30-b65f-f59d834447c1","errors":["Reached maximum number of turns (20)"]}
    2026-04-12T07:02:05.572Z [DEBUG] Metrics export disabled by organization setting
    

    Generated from CI Cleaner · ◷

  6. github-actions commented on Apr 12, 2026

    @github-actions
    ContributorAuthor

    Agent job 24313442923 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-12T18:36:52.819Z [DEBUG] MCP server "safeoutputs": HTTP connection dropped after 264s uptime
    2026-04-12T18:36:52.820Z [DEBUG] MCP server "safeoutputs": Connection error: This operation was aborted
    2026-04-12T18:36:52.824Z [DEBUG] LSP server manager shut down successfully
    2026-04-12T18:36:52.828Z [DEBUG] Cleaned up session snapshot: /home/runner/.claude/shell-snapshots/snapshot-bash-1776018767599-uwzv1h.sh
    2026-04-12T18:36:52.961Z [DEBUG] Failed to check metrics opt-out status: Request failed with status code 401
    2026-04-12T18:36:52.961Z [DEBUG] Metrics export disabled by organization setting
    2026-04-12T18:36:52.961Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-12T18:36:52.961Z [DEBUG] BigQuery metrics exporter flush complete
    2026-04-12T18:36:52.961Z [DEBUG] BigQuery metrics exporter shutdown complete
    [?1006l[?1003l[?1002l[?1000l[>4m[<u[?1004l[?2031l[?2004l[?25h]9;4;0;]0;[?25h[INFO] Stopping containers...
    

    Generated from CI Cleaner · ◷

  7. github-actions commented on Apr 13, 2026

    @github-actions
    ContributorAuthor

    Agent job 24330229061 failed.

    ⚠️ Engine Failure: The claude engine terminated unexpectedly.

    Last agent output:

    2026-04-13T07:16:13.412Z [DEBUG] Spawning shell without login (-l flag skipped)
    {"type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_013J5idVVghcDEkwxMWaii29","type":"tool_result","content":"d1c210e Add exception.type to OTel exception span events; sanitize event attributes (#25972)","is_error":false}]},"parent_tool_use_id":null,"session_id":"fcb2629b-dd16-40b9-a94c-e1e97168860a","uuid":"03ad4ba5-c4cb-4ede-a1eb-746ba92627cb","timestamp":"2026-04-13T07:16:13.425Z","tool_use_result":{"stdout":"d1c210e Add exception.type to OTel exception span events; sanitize event attributes (#25972)","stderr":"","interrupted":false,"isImage":false,"noOutputExpected":false}}
    {"type":"user","message":{"role":"user","content":[{"tool_use_id":"toolu_018rGWq8R2NNLJmUpdgizTWL","type":"tool_result","content":"// ---------------------------------------------------------------------------\n// sendJobConclusionSpan\n// ---------------------------------------------------------------------------\n\ndescribe(\"sendJobConclusionSpan\", () => {\n  /** `@type` {Record<string, string | undefined>} */\n  const savedEnv = {};\n  const envKeys = [\n    \"OTEL_EXPORTER_OTLP_ENDPOINT\",\n    \"OTEL_SERVICE_NAME\",\n    \"GH_AW_EFFECTIVE_TOKENS\",\n    \"GH_AW_INFO_VERSION\",\n    \"GITHUB_AW_OTEL_TRACE_ID\",\n    \"GITHUB_AW_OTEL_PARENT_SPAN_ID\",\n    \"GITHUB_RUN_ID\",\n    \"GITHUB_RUN_ATTEMPT\",\n    \"GITHUB_ACTOR\",\n    \"GITHUB_REPOSITORY\",\n    \"GITHUB_EVENT_NAME\",\n    \"GITHUB_REF\",\n    \"GITHUB_SHA\",\n    \"INPUT_JOB_NAME\",\n    \"GH_AW_AGENT_CONCLUSION\",\n  ];\n  let mkdirSpy, appendSpy;\n\n  beforeEach(() => {\n    vi.stubGlobal(\"fetch\", vi.fn());\n    for (const k of envKeys) {\n      savedEnv[k] = process.env[k];\n      delete process.env[k];\n    }\n    mkdirSpy = vi.spyOn(fs, \"mkdirSync\").mockImplementation(() => {});\n    appendSpy = vi.spyOn(fs, \"appendFileSync\").mockImplementation(() => {});\n  });\n\n  afterEach(() => {\n    vi.unstubAllGlobals();\n    for (const k of envKeys) {\n      if (savedEnv[k] !== undefined) {\n        process.env[k] = savedEnv[k];\n      } else {\n        delete process.env[k];\n      }\n    }\n    mkdirSpy.mockRestore();\n    appendSpy.mockRestore();\n  });\n\n  it(\"skips OTLP export but writes JSONL mirror when OTEL_EXPORTER_OTLP_ENDPOINT is not set\", async () => {\n    await sendJobConclusionSpan(\"gh-aw.job.conclusion\");\n    expect(fetch).not.toHaveBeenCalled();\n    expect(appendSpy).toHaveBeenCalledOnce();\n    const [filePath, content] = appendSpy.mock.calls[0];\n    expect(filePath).toBe(OTEL_JSONL_PATH);\n    const payload = JSON.parse(content.trim());\n    expect(payload).toHaveProperty(\"resourceSpans\");\n  });\n\n  it(\"sends a span with the given span name\", async () => {\n    const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: \"OK\" });\n    vi.stubGlobal(\"fetch\", mockFetch);\n\n    process.env.OTEL_EXPORTER_OTLP_ENDPOINT = \"(traces.example.com/redacted)\";\n    process.env.GITHUB_RUN_ID = \"111\";\n    process.env.GITHUB_ACTOR = \"octocat\";\n    process.env.GITHUB_REPOSITORY = \"owner/repo\";\n\n    await sendJobConclusionSpan(\"gh-aw.job.safe-outputs\");\n\n    expect(mockFetch).toHaveBeenCalledOnce();\n    const body = JSON.parse(mockFetch.mock.calls[0][1].body);\n    const span = body.resourceSpans[0].scopeSpans[0].spans[0];\n    expect(span.name).toBe(\"gh-aw.job.safe-outputs\");\n    expect(span.traceId).toMatch(/^[0-9a-f]{32}$/);\n    expect(span.spanId).toMatch(/^[0-9a-f]{16}$/);\n  });\n\n  it(\"includes gh-aw.run.attempt attribute from GITHUB_RUN_ATTEMPT env var\", async () => {\n    const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: \"OK\" });\n    vi.stubGlobal(\"fetch\", mockFetch);","is_error":false}]},"parent_tool_use_id":null,"session_id":"fcb2629b-dd16-40b9-a94c-e1e97168860a","uuid":"ea6eef39-ae55-405f-a63d-1c7559acd6c9","timestamp":"2026-04-13T07:16:13.429Z","tool_use_result":{"stdout":"// ---------------------------------------------------------------------------\n// sendJobConclusionSpan\n// ---------------------------------------------------------------------------\n\ndescribe(\"sendJobConclusionSpan\", () => {\n  /** `@type` {Record<string, string | undefined>} */\n  const savedEnv = {};\n  const envKeys = [\n    \"OTEL_EXPORTER_OTLP_ENDPOINT\",\n    \"OTEL_SERVICE_NAME\",\n    \"GH_AW_EFFECTIVE_TOKENS\",\n    \"GH_AW_INFO_VERSION\",\n    \"GITHUB_AW_OTEL_TRACE_ID\",\n    \"GITHUB_AW_OTEL_PARENT_SPAN_ID\",\n    \"GITHUB_RUN_ID\",\n    \"GITHUB_RUN_ATTEMPT\",\n    \"GITHUB_ACTOR\",\n    \"GITHUB_REPOSITORY\",\n    \"GITHUB_EVENT_NAME\",\n    \"GITHUB_REF\",\n    \"GITHUB_SHA\",\n    \"INPUT_JOB_NAME\",\n    \"GH_AW_AGENT_CONCLUSION\",\n  ];\n  let mkdirSpy, appendSpy;\n\n  beforeEach(() => {\n    vi.stubGlobal(\"fetch\", vi.fn());\n    for (const k of envKeys) {\n      savedEnv[k] = process.env[k];\n      delete process.env[k];\n    }\n    mkdirSpy = vi.spyOn(fs, \"mkdirSync\").mockImplementation(() => {});\n    appendSpy = vi.spyOn(fs, \"appendFileSync\").mockImplementation(() => {});\n  });\n\n  afterEach(() => {\n    vi.unstubAllGlobals();\n    for (const k of envKeys) {\n      if (savedEnv[k] !== undefined) {\n        process.env[k] = savedEnv[k];\n      } else {\n        delete process.env[k];\n      }\n    }\n    mkdirSpy.mockRestore();\n    appendSpy.mockRestore();\n  });\n\n  it(\"skips OTLP export but writes JSONL mirror when OTEL_EXPORTER_OTLP_ENDPOINT is not set\", async () => {\n    await sendJobConclusionSpan(\"gh-aw.job.conclusion\");\n    expect(fetch).not.toHaveBeenCalled();\n    expect(appendSpy).toHaveBeenCalledOnce();\n    const [filePath, content] = appendSpy.mock.calls[0];\n    expect(filePath).toBe(OTEL_JSONL_PATH);\n    const payload = JSON.parse(content.trim());\n    expect(payload).toHaveProperty(\"resourceSpans\");\n  });\n\n  it(\"sends a span with the given span name\", async () => {\n    const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: \"OK\" });\n    vi.stubGlobal(\"fetch\", mockFetch);\n\n    process.env.OTEL_EXPORTER_OTLP_ENDPOINT = \"(traces.example.com/redacted)\";\n    process.env.GITHUB_RUN_ID = \"111\";\n    process.env.GITHUB_ACTOR = \"octocat\";\n    process.env.GITHUB_REPOSITORY = \"owner/repo\";\n\n    await sendJobConclusionSpan(\"gh-aw.job.safe-outputs\");\n\n    expect(mockFetch).toHaveBeenCalledOnce();\n    const body = JSON.parse(mockFetch.mock.calls[0][1].body);\n    const span = body.resourceSpans[0].scopeSpans[0].spans[0];\n    expect(span.name).toBe(\"gh-aw.job.safe-outputs\");\n    expect(span.traceId).toMatch(/^[0-9a-f]{32}$/);\n    expect(span.spanId).toMatch(/^[0-9a-f]{16}$/);\n  });\n\n  it(\"includes gh-aw.run.attempt attribute from GITHUB_RUN_ATTEMPT env var\", async () => {\n    const mockFetch = vi.fn().mockResolvedValue({ ok: true, status: 200, statusText: \"OK\" });\n    vi.stubGlobal(\"fetch\", mockFetch);","stderr":"","interrupted":false,"isImage":false,"noOutputExpected":false}}
    2026-04-13T07:16:13.430Z [DEBUG] LSP Diagnostics: getLSPDiagnosticAttachments called
    2026-04-13T07:16:13.430Z [DEBUG] LSP Diagnostics: Checking registry - 0 pending
    2026-04-13T07:16:13.430Z [DEBUG] Hooks: Found 0 total hooks in registry
    2026-04-13T07:16:13.430Z [DEBUG] Hooks: checkForNewResponses returning 0 responses
    2026-04-13T07:16:13.431Z [DEBUG] Fast mode unavailable: Fast mode is not available in the Agent SDK
    {"type":"result","subtype":"error_max_turns","duration_ms":559270,"duration_api_ms":102497,"is_error":true,"num_turns":21,"stop_reason":"tool_use","session_id":"fcb2629b-dd16-40b9-a94c-e1e97168860a","total_cost_usd":0.7118649000000001,"usage":{"input_tokens":70,"cache_creation_input_tokens":84104,"cache_read_input_tokens":1127133,"output_tokens":3875,"server_tool_use":{"web_search_requests":0,"web_fetch_requests":0},"service_tier":"standard","cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":84104},"inference_geo":"","iterations":[],"speed":"standard"},"modelUsage":{"claude-sonnet-4-6":{"inputTokens":70,"outputTokens":3875,"cacheReadInputTokens":1127133,"cacheCreationInputTokens":84104,"webSearchRequests":0,"costUSD":0.7118649000000001,"contextWindow":200000,"maxOutputTokens":32000}},"permission_denials":[],"terminal_reason":"max_turns","fast_mode_state":"off","uuid":"8b4b38e6-6e02-4511-a396-05e8bf0c7720","errors":["Reached maximum number of turns (20)"]}
    2026-04-13T07:16:53.974Z [DEBUG] Metrics export disabled by organization setting
    

    Generated from CI Cleaner · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions