8000 Fix Go e2e tests not running in CI by SteveSandersonMS · Pull Request #47 · github/copilot-sdk · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@SteveSandersonMS
Copy link
Contributor
@SteveSandersonMS SteveSandersonMS commented Jan 19, 2026

The test.sh script was running go test -run TestX without ./..., so it only looked for tests in the root go/ directory and missed all tests in go/e2e/.

This adds ./... to each go test command so tests in subdirectories are discovered and executed.

Add ./... to go test commands to include tests in subdirectories like go/e2e/
@SteveSandersonMS SteveSandersonMS requested a review from a team as a code owner January 19, 2026 13:39
Copilot AI review requested due to automatic review settings January 19, 2026 13:39
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

This PR fixes a critical issue where Go e2e tests in the go/e2e/ directory were not being executed during CI runs. The test script was only looking for tests in the root go/ directory.

Changes:

  • Added ./... package pattern to all go test commands to recursively discover and run tests in subdirectories
Comments suppressed due to low confidence (4)

go/test.sh:55

  • The package pattern ./... should be placed after all flags for better readability and consistency with Go conventions. While the current syntax works, the idiomatic format is go test -v -run TestIntegration -timeout 60s ./... where all flags come before the package specification.

This issue also appears in the following locations of the same file:

  • line 59
  • line 47
  • line 51
    go/test.sh:59
  • The package pattern ./... should be placed after all flags for better readability and consistency with Go conventions. While the current syntax works, the idiomatic format is go test -v -run TestHelpers -timeout 90s ./... where all flags come before the package specification.
    go/test.sh:47
  • The package pattern ./... should be placed after all flags for better readability and consistency with Go conventions. While the current syntax works, the idiomatic format is go test -v -run TestClient -timeout 60s ./... where all flags come before the package specification.
    go/test.sh:51
  • The package pattern ./... should be placed after all flags for better readability and consistency with Go conventions. While the current syntax works, the idiomatic format is go test -v -run TestSession -timeout 60s ./... where all flags come before the package specification.

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

@SteveSandersonMS SteveSandersonMS added this pull request to the merge queue Jan 19, 2026
Merged via the queue into main with commit d4ca58f Jan 19, 2026
22 checks passed
@SteveSandersonMS SteveSandersonMS deleted the stevesa/run-go-e2e-on-ci branch January 19, 2026 15:26
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.

5 participants

0