Skip to content

fix: increase timeout and tool-timeout for copilot-session-insights#28450

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-copilot-session-insights-failure
Apr 25, 2026
Merged

fix: increase timeout and tool-timeout for copilot-session-insights#28450
pelikhan merged 2 commits intomainfrom
copilot/fix-copilot-session-insights-failure

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 25, 2026

The workflow was hitting its 20-minute step timeout because AWF container setup (~19 min) left Claude with barely 1 minute of execution time. The default 60-second tool/bash timeout also prevented complex session-analysis operations from completing.

Changes

  • timeout-minutes: 20 → 45 — matches api-consumption-report.md, a comparable complex analysis workflow
  • tools: timeout: 300 — increases BASH_MAX_TIMEOUT_MS / MCP_TOOL_TIMEOUT from 60 s to 5 min, needed for processing up to 50 session logs
  • Recompiled lock file — reflects new timeouts (BASH_MAX_TIMEOUT_MS: 300000, MCP_TOOL_TIMEOUT: 300000, GH_AW_TIMEOUT_MINUTES: "45")

The failure signature was Claude calling TaskOutput(block=true, timeout=120000) near end-of-window and the step being killed before the sub-task returned.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh gh repo view --json owner,name --jq .owner.login + "/" + .name x_amd64/compile /../../.prettiergit erignore 64/bin/git x_amd64/compile /opt�� prettier --write .cfg **/*.ts **/*.json --ignore-path ache/go/1.25.8/x64/pkg/tool/linu--jq (http block)
    • Triggering command: /usr/bin/gh gh repo view owner/repo (http block)
    • Triggering command: /usr/bin/gh gh repo view owner/host-repo (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name -c=4 -nolocalimports -importcfg /tmp/go-build1704486685/b430/importcfg -embedcfg /tmp/go-build1704486685/b430/embedcfg -pack rev-�� ghts-failure (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq [.object.sha, .object.type] | @tsv printf '%s' "$1"; printf '%s' "$2" 1>&2 sh /usr/bin/git diagnostic noisegit on 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a 4486685/b039/vet/opt/hostedtoolcache/node/24.14.1/x64/bin/npm k git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq [.object.sha, .object.type] | @tsv /home/REDACTED/work/gh-aw/gh-aw rev-parse /usr/bin/git REDACTED/work/gh-agit (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv 3246-13818/test---workflow 4486685/b215/vetnonexistent-workflow-test-12345 ache/go/1.25.8/x--limit =error 2>&1 (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linu/tmp/go-build1704486685/b111/vet.cfg /usr/bin/git ugs5kA4FK (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/infocmp --symref origin ache/node/24.14.--show-toplevel infocmp -1 xterm-color git /usr/bin/git k/gh-aw/gh-aw/.ggit rev-parse /usr/bin/git git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq [.object.sha, .object.type] | @tsv --show-toplevel git /usr/bin/git FETCH_HEAD (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq [.object.sha, .object.type] | @tsv --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url /usr/bin/git st-2848669035/.gbash /tmp/go-build170/tmp/gh-aw-test-runs/20260425-123303-16499/test-patch-priority-42330�� (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v9
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv --local credential.username _modules/.bin/sh (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv w/gh-aw/.github/workflows/api-co**/*.ts credential.helper lock.yml (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v9 --jq [.object.sha, .object.type] | @tsv w/gh-aw/.github/workflows/approach-validator.md ==="; grep "timeout-minutes" /home/REDACTED/work/g/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet user.email _modules/.bin/node (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv user.name Test User /usr/bin/git ty-test.md (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv /tmp/TestGuardPolicyMinIntegrityOnlyrepos_only_without_min-integrity436150748/001 remote /usr/bin/git FETCH_HEAD (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv test/concurrent-image:v1.0.0 x_amd64/compile /usr/bin/infocmp te '**/*.cjs' '*git .cfg 64/pkg/tool/linu--show-toplevel infocmp -1 xterm-color 64/pkg/tool/linuTest User /usr/bin/git 434543458/.githugit (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq [.object.sha, .object.type] | @tsv v1.0.0 config /opt/hostedtoolcache/node/24.14.1/x64/bin/node remote.origin.urgit -c=4 -nolocalimports node /tmp�� /tmp/TestHashConsistency_GoAndJavaScript3637141391/001/test-frontmatter-with-env-s /tmp/go-build1704486685/b438/_testmain.go /usr/bin/git 01 (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq [.object.sha, .object.type] | @tsv (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv ErrorFormatting336394394/001 -buildtags .test -errorsas -ifaceassert -nilfunc .test lope�� ere 4486685/b459/_testmain.go /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet --noprofile (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv k/gh-aw/gh-aw/.github/workflows/agentic-optimiza.artifacts[].name remote /usr/bin/git 734384359/001' 734384359/001' _modules/.bin/no--show-toplevel git -C 2" 1>&2 remote rue,"errors":[],"warnings":[]}] eturned (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 .cfg sole.test (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name .cfg 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 .cfg 64/pkg/tool/linux_amd64/vet rkflow/js/**/*.jgit (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name --others 64/pkg/tool/linux_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 .cfg 64/pkg/tool/linux_amd64/vet rkflow/js/**/*.jgit (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 origin util.test (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name l_test.go 64/pkg/tool/linu-importcfg rkflow/js/**/*.jgit (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 --ignore-submodules .test (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 o 64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name go-udiff@v0.4.1/export.go 64/pkg/tool/linux_amd64/vet rkflow/js/**/*.jgit (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 piler_events_test.go 64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path w/gh-aw/.github/workflows/copilot-agent-analysis.md ==="; grep "timeout-minutes" /home/REDACTED/wo/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/link core.hooksPath cal/bin/bash ner/work/gh-aw/g/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 (http block)
  • https://api.github.com/repos/github/gh-aw/contents/.github/workflows/shared/reporting.md
    • Triggering command: /tmp/go-build1704486685/b404/cli.test /tmp/go-build1704486685/b404/cli.test -test.testlogfile=/tmp/go-build1704486685/b404/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true core.hooksPath (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq [.object.sha, .object.type] | @tsv --show-toplevel ortcfg /usr/bin/git agentic-optimizagit --write ache/go/1.25.8/x--show-toplevel git rev-�� --show-toplevel ache/go/1.25.8/xtest-owner/test-repo-13818 /usr/bin/git 2568611102 /tmp/go-build170-lh 1/x64/bin/node git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq [.object.sha, .object.type] | @tsv g_.a 4486685/b056/vet.cfg .cfg (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq [.object.sha, .object.type] | @tsv '**/*.ts' '**/*.-c=4 -30 x_amd64/vet pkg/workflow/clagit pkg/workflow/cla-C (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv -c=4 -nolocalimports -importcfg /tmp/go-build1704486685/b449/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/styles/huh_theme.go /home/REDACTED/work/gh-aw/gh-aw/pkg/styles/theme.go 8d51�� --noprofile 53 x_amd64/vet eout-minutes" /hgit (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv iant-3155976949/--exclude-hidden=receive security x_amd64/vet timeout-minutes"git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq [.object.sha, .object.type] | @tsv REDACTED/work/gh-a-c=4 (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq [.object.sha, .object.type] | @tsv '**/*.ts' '**/*.json' --ignore-p-errorsas g/parser/frontmatter_hash_test_m-ifaceassert x_amd64/vet timeout-minutes"git -d 168.63.129.16 SLlQ1ZG/V_z3kiodremote 8d51�� Gitcustom_branch734384359/001' Gitcustom_branch734384359/001' x_amd64/vet eout-minutes" /hgit -j DROP x_amd64/vet (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq [.object.sha, .object.type] | @tsv se 4486685/b051/vet.cfg .cfg (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion /../../.prettiergit erignore (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo /home/REDACTED/go/bin/bash ner/work/gh-aw/g/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo -importcfg /tmp/go-build1704486685/b434/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/repoutil/repoutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/repoutil/repoutil_test.go --no�� ../pkg/workflow/-errorsas (http block)
    • Triggering command: /usr/bin/gh gh workflow list --repo owner/repo --json name,path,state .cfg ./../.prettierigdocker tdrain_test (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name w/gh-aw/.github/workflows/copilot-agent-analysis.md ==="; grep "timeout-minutes" /home/REDACTED/wo/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile k/gh-aw/gh-aw/.github/workflows/copilot-session-insights.lock.ym-d /usr/local/sbin/git " /home/REDACTED/w/opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/test/repo
    • Triggering command: /usr/bin/gh gh api /repos/test/repo --jq .default_branch 91/001/test-frontmatter-with-nested-objects.md 4486685/b099/vet.cfg .cfg pkg/workflow/temgit util pkg/workflow/thr--show-toplevel ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url /opt�� 6/001/noflag-a.md --write ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet --ignore-path .prettierignore --log-level=errodownload ortcfg (http block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue Apr 25, 2026 that may be closed by this pull request
@github-actions github-actions Bot mentioned this pull request Apr 25, 2026
…orkflow

The workflow was failing because:
1. AWF container setup takes ~19 minutes, leaving Claude only ~1 minute
   within the 20-minute step timeout
2. The default 60-second tool/bash timeout was too short for analysis ops

Fix:
- Increase timeout-minutes from 20 to 45 (matching api-consumption-report)
- Add tools.timeout: 300 to allow 5-minute bash/MCP operations

This aligns with similar complex analysis workflows (api-consumption-report.md
uses timeout-minutes: 45 and tools.timeout: 300).

Recompile lock file with updated timeouts:
- BASH_MAX_TIMEOUT_MS: 300000 (was 60000)
- MCP_TOOL_TIMEOUT: 300000 (was 60000)
- timeout-minutes: 45 on Execute Claude Code CLI step (was 20)

Fixes #28448

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/9d239f17-6126-420a-ad05-efec33ca9f43

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix Copilot Session Insights engine failure fix: increase timeout and tool-timeout for copilot-session-insights Apr 25, 2026
Copilot AI requested a review from pelikhan April 25, 2026 12:40
@pelikhan pelikhan marked this pull request as ready for review April 25, 2026 12:42
Copilot AI review requested due to automatic review settings April 25, 2026 12:42
@pelikhan pelikhan merged commit 14ace4d into main Apr 25, 2026
31 checks passed
@pelikhan pelikhan deleted the copilot/fix-copilot-session-insights-failure branch April 25, 2026 12:43
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR increases execution time allowances for the copilot-session-insights agentic workflow so it can complete AWF container setup plus longer-running session analysis without being killed by step/tool timeouts.

Changes:

  • Increased the workflow step timeout from 20 to 45 minutes.
  • Increased the tool/bash timeout configuration to 300 seconds (5 minutes).
  • Regenerated the compiled lock workflow to reflect the new timeout values in the rendered Actions YAML/env.
Show a summary per file
File Description
.github/workflows/copilot-session-insights.md Raises workflow timeout-minutes and sets tools.timeout: 300 to allow longer tool execution.
.github/workflows/copilot-session-insights.lock.yml Regenerated lockfile applying the new step timeout and env timeouts (BASH_*, MCP_TOOL_TIMEOUT, GH_AW_TIMEOUT_MINUTES).

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[aw] Copilot Session Insights failed

3 participants