-
Notifications
You must be signed in to change notification settings - Fork 34
Daily Test Coverage Improvement - File Watching and Compilation Functions #118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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
…te related references in workflow files
…ify context and improve guidance on issue evaluation
…with proper CI/CD setup (#736) * Initial plan * Initial exploration and planning for agentic activity in daily workflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Add agentic activity overview to daily team status workflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Revert unrelated files and move build steps to frontmatter in daily-team-status workflow - Removed .github/actions/reaction/action.yml that was accidentally added - Reverted go.mod to original state - Moved make deps and make build commands to frontmatter as custom steps - Added actions/checkout and actions/setup-go steps as requested - Updated workflow content to use the pre-built gh-aw binary Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Add agent standup workflow configuration and steps * Refactor daily team status workflow: update checkout step name and remove unnecessary setup steps --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
…ns (#734) * Initial plan * Initial analysis and plan for travel agent workflow Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Complete travel agent workflow implementation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Revert go.mod and go.sum changes as requested Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Revert incorrectly added reaction action file Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> * Fix label typo in travel agent workflow and documentation * Refactor concurrency group naming in travel agent workflow for clarity and consistency --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Co-authored-by: Peli de Halleux <pelikhan@users.noreply.github.com>
…e and focus on key metrics
* Add security guidelines for AW Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com> * .github: add the security best practices to agent instructions Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com> --------- Signed-off-by: Jiaxiao Zhou <duibao55328@gmail.com>
…lity improvements (#813)
…hance clarity on tool usage
…ate tool usage instructions
… sub-issue creation instructions
- Updated last modified date to December 17, 2024 - Added missing workflows: Issue Labeller and Run Doctor - Fixed duplicate entries and inconsistencies - Updated footer with correct GitHub Actions run ID - Comprehensive analysis of all 26 agentic workflows completed Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Add TestMainFunctionExecutionPath with integration tests - Test main() function execution via go run command - Test help, version, and error handling paths - Test version info setup and basic execution flow - Covers main() function at cmd/gh-aw/main.go:360 - Improves main function test coverage from 0% to significant coverage
- Add TestWatchAndCompileWorkflows covering file watching setup and error conditions - Add TestCompileAllWorkflowFiles covering bulk workflow compilation - Add TestCompileModifiedFiles covering modified file compilation - Add TestHandleFileDeleted covering file deletion and cleanup - Covers functions at pkg/cli/commands.go:644, 790, 837, and 888 - Improves coverage from 0% to 58.6-77.3% for these critical functions - Includes comprehensive error handling, edge cases, and verbose mode testing
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.
Summary
This PR adds comprehensive test coverage for file watching and compilation functions that previously had 0% coverage.
Functions Improved
watchAndCompileWorkflows(pkg/cli/commands.go:644) - 0% → 58.6%compileAllWorkflowFiles(pkg/cli/commands.go:790) - 0% → 77.3%compileModifiedFiles(pkg/cli/commands.go:837) - 0% → 62.5%handleFileDeleted(pkg/cli/commands.go:888) - 0% → 100%Coverage Impact
pkg/cli/commands_file_watching_test.go(382 lines)Test Features
✅ Comprehensive edge case coverage
✅ Integration testing patterns
t.TempDir()✅ Robust test infrastructure
Technical Details
initTestGitRepohelper fromcommands_auto_compile_test.goPart of the Daily Test Coverage Improvement initiative to maintain high-quality test coverage across the codebase.