Skip to content

dependabot-burner: bound Go validation and shell timeouts to avoid agent timeout - #78913

Merged
pelikhan merged 4 commits into
mainfrom
pelikhan/fix-dependabot-burner
Nov 18, 2026
Merged

pelikhan merged 4 commits into
mainfrom
pelikhan/fix-dependabot-burner

Conversation

@pelikhan

@pelikhan pelikhan commented Nov 18, 2026 •

Copy link
Copy Markdown
Collaborator

Why run 44044481567 failed

Execute Pi CLI hit the 20-minute step timeout. The dependabot-remediator subagent validated an indirect go.opentelemetry.io/otel bump with go test -short ./pkg/... and a 1200s shell timeout. That ran ~12 minutes (08:24→08:36). The orchestrator then had no time left to publish, so the conclusion reported report_incomplete.

The prompt asked for tests "only for packages that import the updated module", but gave no declared way to find them. The worker said it couldn't use go list | grep (pipelines aren't allowed), so it fell back to ./pkg/....

Fix

  • Root Go validation: if every updated module is // indirect, go mod tidy/verify plus go build ./... is the whole validation. For a direct dependency, find importers with a declared grep -rlF --include=*.go '"<module>' cmd pkg and test only those packages. ./... and ./pkg/... are forbidden.
  • Worker shell timeouts: capped at 300s. A timed-out check blocks only its own group, and the worker doesn't rerun or widen it.
  • timeout-minutes: raised from 20 to 30 for headroom.

The recompiled lock only changes the timeout values and hashes.

Timeout enforcement note

The 300-second bash cap in the worker prompt is advisory. The pi engine does not apply tools.timeout to shell commands, and its tool policy only checks commands against the allowlist, so nothing enforces a per-call limit. The hard guard is timeout-minutes: 30, which the job and pi subagents enforce through GH_AW_TIMEOUT_MINUTES.

…ent timeout

Run 44044481567 timed out: the remediator ran `go test -short ./pkg/...`
with a 1200s shell timeout for an indirect otel bump, consuming ~12 of the
20 agent minutes.

- Skip go test when every updated Go module is indirect; otherwise select
  importer packages with a declared grep and never use ./... or ./pkg/...
- Cap worker bash timeouts at 300s; a timeout blocks only that group.
- Raise timeout-minutes from 20 to 30 for headroom.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan marked this pull request as ready for review November 18, 2026 03:58
Copilot AI adaptive review requested due to automatic review settings November 18, 2026 03:58
@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~2 AIC · ⌖ ~2 AIC · ⊞ 7.3K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Matt Pocock Skills Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.7K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #78913 · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #78913 · codex · routed: gpt61 medium · ~3 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K · ◷

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Overview

Reviewed PR head c6ca7b9b6d8f3e324ee2f634c75e91a8227a4d46 against the workflow/frontmatter contracts. The 30-minute timeout is compatible with the documented timeout-minutes field, and no specification synchronization is warranted.

Blocking finding

  • The new Root Go validation instruction at .github/workflows/dependabot-burner.md:549 uses an exact import-string search that misses normal subpackage imports. This can cause required focused tests to be skipped for direct dependency updates. An inline comment describes the required module-prefix-aware matching correction.

Coverage

This was a static specification review; no tests or conformance scripts were run. The prefetched patch excludes generated lock content, so the generated lock was not independently diff-reviewed beyond its head metadata.

Generated by PR Specification Reviewer for #78913 · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.7K
Comment /review-specs to run again

Comment thread .github/workflows/dependabot-burner.md Resolved
@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-6b16faa0-741b-4499-be93-ea77b9d6e1eb","parents":[],"payload":{"id":"ldg-825480b2-af7e-473c-bbbb-c5968d1e7656","operation":"append","value":{"finding_count":1,"head_sha":"c6ca7b9b6d8f3e324ee2f634c75e91a8227a4d46","outcome":"regression"}},"sha":"sha256:fedd6a29e0df7b24dc660681c929fe4836c46bd83229ccc22555b3ba1d4fc912","timestamp":"2026-11-18T04:05:29.800Z","type":"ledger_append","version":1}
History

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Reviewed the changed workflow instructions and generated lock update. No actionable correctness, security, or maintainability issues were found in the changed lines. The specialist pass completed; its advisory concerns were not sufficiently grounded in the reviewed diff to warrant comments.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~3 AIC · ⌖ ~1 AIC · ⊞ 1.5K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-8224fd32-3b6d-40e4-a793-03a2392d0883","parents":[],"payload":{"id":"ldg-20e2bcac-1ff4-4cde-a71a-6434a9994373","operation":"append","value":{"finding_count":0,"head_sha":"c6ca7b9b6d8f3e324ee2f634c75e91a8227a4d46","outcome":"no_findings"}},"sha":"sha256:15d98fe4263df1b2971cd6841af44321d99186b41034bd8aa691a0987540960d","timestamp":"2026-11-18T04:07:33.554Z","type":"ledger_append","version":1}
History

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The prescribed short-mode test command still runs TestLintPerformanceBudget, whose wall-clock thresholds can reject valid dependency updates in the sandbox.

1 open issue
What changed in this PR

This PR limits dependency-validation work in the Dependabot remediation workflow to leave more time for publishing results.

Changes:

  • Uses build-only validation for indirect Go updates and targeted package tests for direct dependencies.
  • Caps worker shell timeouts at 300 seconds and stops validation of timed-out groups without retrying.
  • Raises the agent timeout from 20 to 30 minutes and refreshes the generated workflow.
File Description
.github/​workflows/​dependabot-burner.md Defines bounded validation, timeout handling, and increased agent runtime.
.github/​workflows/​dependabot-burner.lock.yml Updates generated timeout settings and workflow hashes.

Review effort: Balanced (adaptive)

Comment thread .github/workflows/dependabot-burner.md Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /tdd and /diagnosing-bugs to the timeout and validation-scope changes. Two advisory comments; no blocking issues.

📋 Key Themes & Highlights

Key Themes

  • Enforcement gap: the 300s per-shell cap is prompt-only and not enforced by config.
  • Validation scope: the grep ... cmd pkg importer rule is correct for the current root module, but it has no branch for an empty result and skips internal/, scripts/, actions/setup/, and specs/.
  • Pre-existing, outside this diff: the nested .github/workflows/go.mod is a live Dependabot gomod ecosystem with no requires, and no validation rule covers it. Worth a follow-up, not a blocker for this PR.

Verification

  • Reviewed committed PR head c6ca7b9. The local working tree is dirty and reverts these changes, so it was not used as the review target.
  • Recompiled the PR-head source; the regenerated lock matches the committed lock except for the cron seed, which is expected in a scratch tree without a git remote.
  • All 37 direct requires in root go.mod have importers under cmd/ or pkg/, so the scoping rule works for the current module.

Positive Highlights

  • ✅ Explicitly forbidding ./... and ./pkg/... with a stated reason keeps the validation bounded.
  • ✅ Timeout failure is handled as a group-level failure with a clear recovery rule.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~8 AIC · ⌖ ~2 AIC · ⊞ 6.7K
Comment /matt to run again

Comment thread .github/workflows/dependabot-burner.md Resolved
Comment thread .github/workflows/dependabot-burner.md Resolved
pelikhan and others added 3 commits November 17, 2026 20:24
…, pin pip targets

Run 44234218944 ended report_incomplete because:
- npm tarball redirects from packagefeedproxy.microsoft.io to
  ms-feed-25.pkgs.visualstudio.com and *.vsblob.vsassets.io were denied by the
  firewall, surfacing as DEPTH_ZERO_SELF_SIGNED_CERT.
- Parallel go mod tidy and make build raced on go.sum.
- pip hash checks omitted the lock-header target flags and downloaded host wheels.

Co-authored-by: Copilot App <[email protected]>
@pelikhan
pelikhan merged commit 017301d into main Nov 18, 2026
36 checks passed
@pelikhan
pelikhan deleted the pelikhan/fix-dependabot-burner branch November 18, 2026 04:40
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.3.1

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.

2 participants