Skip to content

fix: correct serena-go.md import path to fix integration test failure#23452

Merged
pelikhan merged 2 commits intomainfrom
copilot/fix-issue-from-actions-run
Mar 29, 2026
Merged

fix: correct serena-go.md import path to fix integration test failure#23452
pelikhan merged 2 commits intomainfrom
copilot/fix-issue-from-actions-run

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 29, 2026

Summary

Fixes the CI failure: https://github.com/github/gh-aw/actions/runs/23708693837/job/69064735931#step:8:1

Root Cause

TestAddWorkflowWithDispatchWorkflowFromSharedImport was failing because serena-go.md (at .github/workflows/shared/mcp/serena-go.md) imported shared/mcp/serena.md.

When fetchFrontmatterImportsRecursive processes imports recursively, it resolves each import path relative to the importing file's directory. So when processing serena-go.md's imports:

  • currentBaseDir = .github/workflows/shared/mcp
  • import path = shared/mcp/serena.md
  • resolved = .github/workflows/shared/mcp/shared/mcp/serena.md ❌ (doesn't exist → HTTP 404)

The import path shared/mcp/serena.md was written as if paths are always relative to .github/workflows/, but for nested imports the path is resolved relative to the importing file's directory.

Fix

  • Changed serena-go.md import from shared/mcp/serena.mdserena.md (correct relative path since both serena-go.md and serena.md live in the same shared/mcp/ directory)
  • Updated TestAddWorkflowWithDispatchWorkflowFromSharedImport to pin to commit 15af946 which contains the fix (so the integration test fetches the corrected serena-go.md from GitHub)

Changes

  • .github/workflows/shared/mcp/serena-go.md: fix import path
  • pkg/cli/add_integration_test.go: update pinned commit SHA to 15af946

Copilot AI and others added 2 commits March 29, 2026 12:22
Copilot AI requested a review from pelikhan March 29, 2026 12:30
@pelikhan pelikhan marked this pull request as ready for review March 29, 2026 12:31
Copilot AI review requested due to automatic review settings March 29, 2026 12:31
@pelikhan pelikhan merged commit 4537ff6 into main Mar 29, 2026
47 of 50 checks passed
@pelikhan pelikhan deleted the copilot/fix-issue-from-actions-run branch March 29, 2026 12:31
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

Fixes an integration test/CI failure caused by an incorrect nested frontmatter import path in .github/workflows/shared/mcp/serena-go.md, and updates the integration test to fetch a commit that contains the corrected workflow content.

Changes:

  • Correct serena-go.md to import serena.md via a path relative to its own directory.
  • Update the pinned smoke-copilot.md commit SHA in the integration test to one that includes the workflow fix.
  • Minor cleanup in a remote workflow unit test (removes an extraneous blank line).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.github/workflows/shared/mcp/serena-go.md Fixes nested import path so recursive import resolution finds serena.md.
pkg/cli/add_integration_test.go Pins integration test to a commit that contains the upstream workflow fix.
pkg/cli/remote_workflow_test.go Removes a stray blank line (no behavior change).

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

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.

3 participants