[WIP] Fix lint-go failure after PR #10756 merge#10777
Merged
Conversation
Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot stopped work on behalf of
mnkiefer due to an error
January 20, 2026 02:46
This was referenced Jan 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix lint-go Failure from PR #10756
Investigation Summary
hasInternalPrefixinpkg/workflow/compiler_orchestrator_test.goRoot Cause
The lint-go failure was caused by an unused helper function
hasInternalPrefixin the new test filepkg/workflow/compiler_orchestrator_test.go. The unused linter detected this function was defined but never called.Resolution Status
✅ Already Fixed - PR #10774 removed the unused function and the linter now passes.
Documentation Added
Added comprehensive "Test File Linting Requirements" section to AGENTS.md with:
hasInternalPrefixissue as a cautionary exampleThis documentation will help prevent similar issues in the future by making AI agents aware of:
make lintafter creating test filesOriginal prompt
This section details on the original issue you should resolve
<issue_title>[CI Failure Doctor] lint-go failure after merge of PR #10756 (compiler test files)</issue_title>
<issue_description>## Summary
The lint-go CI job failed on main branch after merging PR #10756 which added comprehensive test coverage for compiler core files.
Failure Details
Root Cause Analysis
What Changed
PR #10756 added 3 new test files with 41 test functions totaling 1,278 lines:
pkg/workflow/compiler_test.go(328 lines, 12 tests)pkg/workflow/compiler_orchestrator_test.go(489 lines, 12 tests)pkg/workflow/compiler_activation_jobs_test.go(461 lines, 17 tests)What Failed
The lint-go job runs these steps in sequence:
go fmt ./...) - PASSEDmake golint) - FAILEDEnabled Linters
The golangci-lint configuration (
.golangci.yml) enables:Most Likely Cause
Since go fmt passed but golangci-lint failed, and the changes are all test files, the issue is most likely testifylint violations. Common testifylint issues include:
Investigation Findings
Timeline
Pre-merge Status
Historical Context
Recent PR #10742 ("chore: fix lint errors from go fmt") indicates recurring linting issues in the codebase. The AGENTS.md file has mandatory pre-commit validation requirements but they may not have been followed.
Reproduction Steps
To reproduce this failure locally:
Recommended Actions
Immediate Fix
make golintlocally to see specific linting errorsmake agent-finishto verify all checks passSpecific Files to Check
pkg/workflow/compiler_test.gopkg/workflow/compiler_orchestrator_test.gopkg/workflow/compiler_activation_jobs_test.goCommon testifylint Fixes
Prevention Strategies
For Contributors
The AGENTS.md file already has mandatory pre-commit requirements, but they need to be reinforced:
Always run before committing:
make agent-finish # Runs build, test, recompile, fmt, lintMinimum for Go code changes:
Process Improvements
make fmt && make lintAI Team Self-Improvement
Add to AGENTS.md under "Critical Requirements":