Add test coverage for hasSubstantiveContent property#318
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive test coverage for the hasSubstantiveContent property introduced in #316 to prevent creating follow-up issues with only placeholder text. The PR also includes an implementation fix that wraps hasSubstantiveContent calculations in Boolean() to ensure boolean return values in edge cases.
Key Changes
- Added 11 new test cases (6 for
formatFollowUpIssue, 5 forformatSimpleFollowUpIssue) to verifyhasSubstantiveContentbehavior with various content combinations - Wrapped
hasSubstantiveContentcalculations in both formatters withBoolean()to prevent returning empty strings - Updated workflow files to skip issue creation when
hasSubstantiveContentis false, with proper output handling
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
docs/workflows/SystemEvaluation.md |
Updated documentation to reflect completed parallel testing implementation |
.github/workflows/reusable-agents-verifier.yml |
Added skip logic to prevent issue creation when no substantive content exists; sets skipped output |
.github/workflows/agents-verifier.yml |
Same skip logic as reusable workflow to maintain consistency across verifier implementations |
.github/scripts/verifier_issue_formatter.js |
Added three helper functions for detecting placeholder content; added hasSubstantiveContent property to both formatters with Boolean() wrapper; exported helpers for testing |
.github/scripts/__tests__/verifier-issue-formatter.test.js |
Added comprehensive test suite for hasSubstantiveContent covering placeholders, real content, verifier gaps, and edge cases |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: stranske <23046322+stranske@users.noreply.github.com>
e2dd488 to
50345d8
Compare
Automated Status SummaryHead SHA: 7c273e5
Coverage Overview
Coverage Trend
Top Coverage Hotspots (lowest coverage)
Low Coverage Files (<50.0%)
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
🤖 Keepalive Loop StatusPR #318 | Agent: Codex | Iteration 0/5 Current State
🔍 Failure Classification| Error type | infrastructure | |
…I access - Add 'models: read' permission to reusable-agents-verifier.yml - Add 'models: read' permission to agents-verifier.yml - Fixes 401 authentication errors when using GitHub Models provider - Templates already have this permission configured Resolves GitHub Models authentication issue identified in Travel-Plan-Permission PR #318 test
* feat: add model name to comparison report output Display the model name used by each provider in verify:compare reports. Changes: - Add 'model' field to EvaluationResult to track which model was used - Update _get_llm_clients to return tuples with (client, provider, model) - Add 'Model' column to Provider Summary table - Display model name in expandable Full Provider Details section - Update _fallback_evaluation to accept and store model parameter Example output: | Provider | Model | Verdict | Confidence | Summary | | github-models | gpt-4o | PASS | 85% | ... | | openai | gpt-5.2 | CONCERNS | 72% | ... | This helps users understand which models were used for evaluation, especially when using model1/model2 parameters in compare mode. * fix: update tests to match new 3-tuple format with model name - Add model parameter to test client tuples in test_pr_verifier_compare.py - Update table header assertion to include Model column in test_pr_verifier_comparison_report.py - Addresses failing checks and bot review comments in PR #643 * feat: disable automatic follow-up issue creation by agent verifier The agent verifier will no longer automatically create issues after PR evaluations, regardless of CONCERNS or FAIL verdicts. This addresses user feedback that automatic issue creation was creating unwanted noise. Changes: - Modified _should_create_issue() to always return False - Updated test to verify that issue creation is disabled - Workflow will still have --create-issue flag but it will have no effect * fix: add models permission to verifier workflows for GitHub Models API access - Add 'models: read' permission to reusable-agents-verifier.yml - Add 'models: read' permission to agents-verifier.yml - Fixes 401 authentication errors when using GitHub Models provider - Templates already have this permission configured Resolves GitHub Models authentication issue identified in Travel-Plan-Permission PR #318 test
Automated Status Summary
Scope
Tasks
Acceptance criteria
Head SHA: 50345d8
Latest Runs: ⏳ queued — Gate
Required: gate: ⏳ queued