Skip to content

Update grep replay snapshot for absolute paths#1598

Merged
stephentoub merged 1 commit into
mainfrom
stephentoub/csharp-ci-investigation
Jun 7, 2026
Merged

Update grep replay snapshot for absolute paths#1598
stephentoub merged 1 commit into
mainfrom
stephentoub/csharp-ci-investigation

Conversation

@stephentoub
Copy link
Copy Markdown
Collaborator

Runtime github/copilot-agent-runtime#9819 now honors the legacy grep path argument, so the builtin tools replay can receive grep output rooted at ${workdir} instead of ./. The C# SDK non-blocking CI leg was missing the cached response for that variant and surfaced repeated proxy 500s.

This adds an alternate conversation to should_search_for_patterns_in_files.yaml for the normalized absolute-path grep result while keeping the existing relative-path variant. That lets replay match both runtime output formats.

Generated by Copilot

Allow the builtin tools replay snapshot to match grep results that include the normalized workdir path, preserving the existing relative-path variant for older runtime output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 7, 2026 20:58
@stephentoub stephentoub requested a review from a team as a code owner June 7, 2026 20:58
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

Updates the built-in tools replay snapshot to tolerate the new grep output format where matched file paths are rooted at ${workdir} (absolute/normalized) rather than ./, preventing replay/proxy misses in CI (notably the C# SDK non-blocking leg) when the runtime emits the legacy-path-honoring variant.

Changes:

  • Add an alternate conversations entry to cover grep output lines prefixed with ${workdir}/data.txt.
  • Preserve the existing relative-path (./data.txt) snapshot variant so replay can match both runtime formats.
Show a summary per file
File Description
test/snapshots/builtin_tools/should_search_for_patterns_in_files.yaml Adds a second full replay conversation capturing ${workdir}-rooted grep output while keeping the existing ./ variant.

Copilot's findings

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

@stephentoub stephentoub merged commit 7de72a6 into main Jun 7, 2026
31 checks passed
@stephentoub stephentoub deleted the stephentoub/csharp-ci-investigation branch June 7, 2026 21:17
edburns pushed a commit that referenced this pull request Jun 8, 2026
Allow the builtin tools replay snapshot to match grep results that include the normalized workdir path, preserving the existing relative-path variant for older runtime output.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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