Skip to content

[cli-tools-test] logs and audit MCP tools timeout at ~60s (context deadline exceeded); --timeout param ignored #49279

Description

@github-actions

Warning

threat detection engine error
The threat detection engine encountered an error and could not complete analysis. This is a tooling failure, not a security finding.

Details

The threat detection engine failed to produce results.

Review the workflow run logs for details.

Problem Description

Both the logs and audit tools in the agenticworkflows MCP server consistently fail with Error [0]: context deadline exceeded after exactly ~60 seconds, for any request that would return real data (valid run ID, valid workflow name, or a broad date-range query). Meanwhile status and compile work reliably and quickly (1-2s). This effectively makes logs and audit unusable via the MCP interface.

Notably, the --timeout parameter on audit/logs appears to be ignored — passing --timeout 90 still failed at ~60s, suggesting a hardcoded internal deadline (likely on the HTTP/MCP transport or gateway) that overrides the caller-supplied value.

Command/Tool

  • Tool: logs, audit (agenticworkflows MCP server)
  • Commands tested:
    • agenticworkflows logs --start_date -1d --count 3 --max_tokens 3000
    • agenticworkflows logs --workflow_name daily-cli-tools-tester --count 3 --max_tokens 3000
    • agenticworkflows logs --workflow_name daily-cli-tools-tester --count 1 --max_tokens 1000 --timeout 90
    • agenticworkflows audit --run_id 30608937034 --max_tokens 3000

Steps to Reproduce

  1. Call agenticworkflows status (works fine, returns 266 workflows in ~9s).
  2. Call agenticworkflows compile --workflows <any-existing-workflow> (works fine, ~1-2s).
  3. Call agenticworkflows logs --start_date -1d --count 3 --max_tokens 3000 → hangs for 60s, then fails.
  4. Call agenticworkflows audit --run_id 30608937034 --max_tokens 3000 (a real, current run ID for this very execution) → hangs for 60s, then fails.
  5. Compare with agenticworkflows audit --run_id 999999999 (an invalid run ID) → fails fast (~1s) with a clean, helpful error message. This isolates the problem to the code path that actually fetches/processes real run data (e.g. downloading logs/artifacts from GitHub Actions), not the tool dispatch itself.

Expected Behavior

  • logs and audit should complete within a reasonable time (per success criteria in the test plan: logs <10s, audit <30s) for valid, recent, small run IDs/workflows.
  • The --timeout parameter, if exposed, should be honored and allow requests to run longer if the caller explicitly requests it.
  • If a genuine timeout occurs, the error should be more actionable (e.g., indicate what stage timed out — log download, artifact extraction, parsing — and suggest reducing scope).

Actual Behavior

  • Every logs call attempted (3 variations: relative date range, specific workflow name, with explicit --timeout 90) failed identically after ~60-60.7s with:
    Error [0]: context deadline exceeded
    
  • The one audit call with a valid, real run ID (this workflow's own run, 30608937034) also failed after ~60.5s with the same error.
  • Passing --timeout 90 had no effect — the failure still occurred at ~60s, indicating the parameter is not wired through to the actual deadline, or a shorter deadline elsewhere (proxy/gateway) takes precedence.

Environment

  • Repository: github/gh-aw
  • Run ID: 30608937034
  • Date: 2026-07-31
  • Interface: agenticworkflows MCP server via CLI bridge

Impact

  • Severity: Critical — two of the three primary tools under test (logs, audit) are non-functional for any real-world query.
  • Frequency: Always (100% reproduction rate across all variations tried).
  • Workaround: None found within the MCP interface. status and compile remain usable.

Logs/Diagnostics

Representative log tail (identical pattern for all 4 failing calls):

[info] [agenticworkflows] MCP tools/call: tool=logs, args={"workflow_name":"daily-cli-tools-tester","count":1,"max_tokens":1000,"timeout":90}
[info] [agenticworkflows] MCP keepalive ping: id=1000, elapsed=107ms
[info] [agenticworkflows] MCP keepalive ping: id=1001, elapsed=292ms
[info] [agenticworkflows] MCP keepalive ping: id=1002, elapsed=17ms
[info] [agenticworkflows] MCP keepalive ping: id=1003, elapsed=10ms
[info] [agenticworkflows] MCP keepalive ping: id=1004, elapsed=349ms
[info] [agenticworkflows] MCP tools/call: status=200, elapsed=60025ms
[info] [agenticworkflows] MCP keepalive stopped
[info] [agenticworkflows] Tool call complete: total=60128ms
Error [0]: context deadline exceeded

Additional Context

  • status and compile calls in the same session, against the same MCP gateway, completed normally (status: ~9s for 266 workflows; compile: 1-2s per workflow), so the MCP bridge/transport itself is functional — the issue is isolated to logs/audit specifically, likely in the log-download or artifact-fetch code path (possibly bound by a fixed ~60s deadline in the gateway/proxy layer that isn't being extended by the tool's own --timeout param).
  • Given this blocks all further exploratory testing of logs/audit (log content analysis, filtering edge cases, safe-output detection, failed-run analysis, etc.), Phases 2, 3, and 5/6 of the planned test session could not be completed as scoped.

Generated by 🧪 Daily Cli Tools Tester · auto · 47.2 AIC · ⊞ 13.4K ·

  • expires on Aug 6, 2026, 10:25 PM UTC-08:00

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