Skip to content

Remove integration build constraint from pkg/fileutil#14892

Merged
pelikhan merged 2 commits intocopilot/standardize-path-validation-patternsfrom
copilot/fix-tests-one-more-time
Feb 11, 2026
Merged

Remove integration build constraint from pkg/fileutil#14892
pelikhan merged 2 commits intocopilot/standardize-path-validation-patternsfrom
copilot/fix-tests-one-more-time

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

Integration tests failed to compile because pkg/fileutil/fileutil.go had a //go:build !integration constraint, excluding the entire package from integration test builds. Any package importing fileutil (e.g., pkg/cli) would fail with:

imports github.com/github/gh-aw/pkg/fileutil: build constraints exclude all Go files in /home/runner/work/gh-aw/gh-aw/pkg/fileutil

Changes

  • Removed //go:build !integration from pkg/fileutil/fileutil.go
  • Kept the constraint on fileutil_test.go (unit tests should not run during integration tests)

Rationale

Utility packages providing core functionality like path validation must be available in all build configurations. Build constraints belong on test files, not on source files that other packages depend on.

Original prompt

Reference: https://github.com/github/gh-aw/actions/runs/21893740323/job/63205205275#step:10:1

Fix tests


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

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix issues in existing tests Remove integration build constraint from pkg/fileutil Feb 11, 2026
Copilot AI requested a review from pelikhan February 11, 2026 05:39
@pelikhan pelikhan marked this pull request as ready for review February 11, 2026 05:39
Copilot AI review requested due to automatic review settings February 11, 2026 05:39
@pelikhan pelikhan merged commit 7cebdb2 into copilot/standardize-path-validation-patterns Feb 11, 2026
3 checks passed
@pelikhan pelikhan deleted the copilot/fix-tests-one-more-time branch February 11, 2026 05: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

Removes an !integration build constraint from pkg/fileutil/fileutil.go so the fileutil package remains available during integration-tagged builds, preventing downstream compile failures (e.g., pkg/cli importing fileutil).

Changes:

  • Removed //go:build !integration from pkg/fileutil/fileutil.go so the package is included in integration builds.

💡 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

Comments