Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Fix test failures due to repository migration from githubnext/gh-aw to github/gh-aw

The tests were failing because some test cases had URLs with github.com/github/gh-aw but still expected the owner to be githubnext. This is due to the repository being migrated from githubnext/gh-aw to github/gh-aw.

Plan:

  • Identify all failing tests
  • Fix pkg/repoutil/repoutil_test.go - TestParseGitHubURL
  • Fix pkg/cli/git_helpers_test.go - TestParseGitHubRepoSlugFromURL
  • Fix pkg/parser/github_urls_test.go - TestParseGitHubURL_FileURLs and TestParseRunURL
  • Fix pkg/cli/spec_github_url_test.go - TestParseGitHubURL
  • Fix pkg/cli/spec_test.go - TestParseWorkflowSpec
  • Fix Serena MCP server container references in test files
  • Update comment in pkg/workflow/mcp_config_serena_renderer.go
  • Run tests to verify all fixes work
  • Run full validation before committing

Changes Made:

  1. URL parsing tests: Updated expected owner from "githubnext" to "github" in test cases where URLs contain github.com/github/gh-aw
  2. Serena container image: Updated test expectations from ghcr.io/githubnext/serena-mcp-server to ghcr.io/github/serena-mcp-server
  3. Documentation: Updated comment to reflect correct container image path

All unit tests now pass successfully ✅

Original prompt

Fix the failing GitHub Actions workflow test
Analyze the workflow logs, identify the root cause of the failure, and implement a fix.
Job ID: 62280916079
Job URL: https://github.com/github/gh-aw/actions/runs/21611451449/job/62280916079


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…ithubnext to github

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@pelikhan pelikhan marked this pull request as ready for review February 3, 2026 00:44
Copilot AI review requested due to automatic review settings February 3, 2026 00:44
@pelikhan pelikhan merged commit b409134 into main Feb 3, 2026
48 checks passed
@pelikhan pelikhan deleted the copilot/fix-github-actions-workflow-3800eccb-3106-48c2-b482-acb5fded77c8 branch February 3, 2026 00:44
Copilot AI requested a review from pelikhan February 3, 2026 00:44
Copilot stopped work on behalf of pelikhan due to an error February 3, 2026 00:44
Copy link
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 test fixtures and documentation to reflect the repository migration from githubnext/gh-aw to github/gh-aw, eliminating mismatched expectations in URL parsing and workflow-related tests.

Changes:

  • Updated URL parsing test expectations where URLs already reference github/… but tests still expected githubnext.
  • Updated Serena MCP server container image expectations from ghcr.io/githubnext/serena-mcp-server to ghcr.io/github/serena-mcp-server.
  • Updated an in-code comment documenting the default Serena container image.

Reviewed changes

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

Show a summary per file
File Description
pkg/workflow/mcp_config_serena_renderer.go Updates documentation comment to reference the correct Serena container image path.
pkg/workflow/mcp_config_comprehensive_test.go Aligns Serena container expectations with the new ghcr.io/github/... image path.
pkg/workflow/importable_tools_test.go Updates compiled workflow assertions to the new Serena container image location.
pkg/repoutil/repoutil_test.go Fixes GitHub URL parsing test expectation for migrated github/gh-aw repo URL.
pkg/parser/github_urls_test.go Updates GitHub URL parsing expectations (owner) for migrated URLs and run/job URL case.
pkg/cli/spec_test.go Updates workflow spec parsing expectation for github/gh-aw-trial blob URL.
pkg/cli/spec_github_url_test.go Updates GitHub URL parsing expectations for migrated github/... repos.
pkg/cli/git_helpers_test.go Updates repo slug parsing expectations for HTTPS URLs pointing at github/gh-aw.

💡 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.

2 participants