Skip to content

Add test coverage for hasSubstantiveContent property#318

Merged
stranske merged 2 commits intomainfrom
copilot/sub-pr-316-again
Dec 30, 2025
Merged

Add test coverage for hasSubstantiveContent property#318
stranske merged 2 commits intomainfrom
copilot/sub-pr-316-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Dec 30, 2025

Automated Status Summary

Scope

  • Scope section missing from source issue.

Tasks

  • Tasks section missing from source issue.

Acceptance criteria

  • Acceptance criteria section missing from source issue.
  • Head SHA: 9334b84
  • Latest Runs: ❔ in progress — Gate
  • Required: gate: ❔ in progress
  • | Workflow / Job | Result | Logs |
  • |----------------|--------|------|
  • | Agents PR meta manager | ❔ in progress | View run |
  • | CI Autofix Loop | ✅ success | View run |
  • | Copilot code review | ❔ in progress | View run |
  • | Gate | ❔ in progress | View run |
  • | Health 40 Sweep | ✅ success | View run |
  • | Health 44 Gate Branch Protection | ✅ success | View run |
  • | Health 45 Agents Guard | ✅ success | View run |
  • | Health 50 Security Scan | ❔ in progress | View run |
  • | Maint 52 Validate Workflows | ✅ success | View run |
  • | PR 11 - Minimal invariant CI | ✅ success | View run |
  • | Selftest CI | ✅ success | View run |
  • | Validate Sync Manifest | ✅ success | View run |
  • Head SHA: c5f36b5
  • Latest Runs: ❔ in progress — Gate
  • Required: gate: ❔ in progress
  • | Workflow / Job | Result | Logs |
  • |----------------|--------|------|
  • | Agents PR meta manager | ❔ in progress | View run |
  • | CI Autofix Loop | ✅ success | View run |
  • | Copilot code review | ❔ in progress | View run |
  • | Gate | ❔ in progress | View run |
  • | Health 40 Sweep | ✅ success | View run |
  • | Health 44 Gate Branch Protection | ✅ success | View run |
  • | Health 45 Agents Guard | ✅ success | View run |
  • | Health 50 Security Scan | ❔ in progress | View run |
  • | Maint 52 Validate Workflows | ✅ success | View run |
  • | PR 11 - Minimal invariant CI | ✅ success | View run |
  • | Selftest CI | ❔ in progress | View run |
  • | Validate Sync Manifest | ✅ success | View run |

Head SHA: 50345d8
Latest Runs: ⏳ queued — Gate
Required: gate: ⏳ queued

Workflow / Job Result Logs
Agents PR meta manager ❔ in progress View run
CI Autofix Loop ✅ success View run
Gate ⏳ queued View run
Health 40 Sweep ✅ success View run
Health 44 Gate Branch Protection ❔ in progress View run
Health 45 Agents Guard ✅ success View run
Health 50 Security Scan ❔ in progress View run
Maint 52 Validate Workflows ✅ success View run
PR 11 - Minimal invariant CI ✅ success View run
Selftest CI ❔ in progress View run
Validate Sync Manifest ✅ success View run

Base automatically changed from fix/verifier-contentless-issues to main December 30, 2025 15:50
@agents-workflows-bot
Copy link
Copy Markdown
Contributor

⚠️ Action Required: Unable to determine source issue for PR #318. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

Copilot AI changed the title [WIP] Address feedback on preventing contentless follow-up issues Add test coverage for hasSubstantiveContent property Dec 30, 2025
Copilot AI requested a review from stranske December 30, 2025 15:54
@stranske stranske marked this pull request as ready for review December 30, 2025 15:58
Copilot AI review requested due to automatic review settings December 30, 2025 15:58
Copy link
Copy Markdown
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 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 for formatSimpleFollowUpIssue) to verify hasSubstantiveContent behavior with various content combinations
  • Wrapped hasSubstantiveContent calculations in both formatters with Boolean() to prevent returning empty strings
  • Updated workflow files to skip issue creation when hasSubstantiveContent is 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.

Copilot AI and others added 2 commits December 30, 2025 16:19
Co-authored-by: stranske <23046322+stranske@users.noreply.github.com>
@stranske stranske force-pushed the copilot/sub-pr-316-again branch from e2dd488 to 50345d8 Compare December 30, 2025 16:20
@github-actions
Copy link
Copy Markdown
Contributor

Automated Status Summary

Head SHA: 7c273e5
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 0.00%
Baseline 85.00%
Delta -85.00%
Minimum 70.00%
Status ❌ Below minimum

Top Coverage Hotspots (lowest coverage)

File Coverage Missing
src/trend_analysis/_autofix_trigger_sample.py 0.0% 10
src/trend_analysis/_autofix_violation_case2.py 0.0% 15
src/trend_analysis/_autofix_violation_case3.py 0.0% 13
src/trend_analysis/_ci_probe_faults.py 0.0% 18
src/trend_analysis/automation_multifailure.py 0.0% 4
src/trend_analysis/constants.py 0.0% 1
src/trend_analysis/selector.py 0.0% 12
src/trend_analysis/weighting.py 0.0% 11
src/trend_analysis/__init__.py 100.0% 0

Low Coverage Files (<50.0%)

File Coverage Missing
src/trend_analysis/_autofix_trigger_sample.py 0.0% 10
src/trend_analysis/_autofix_violation_case2.py 0.0% 15
src/trend_analysis/_autofix_violation_case3.py 0.0% 13
src/trend_analysis/_ci_probe_faults.py 0.0% 18
src/trend_analysis/automation_multifailure.py 0.0% 4
src/trend_analysis/constants.py 0.0% 1
src/trend_analysis/selector.py 0.0% 12
src/trend_analysis/weighting.py 0.0% 11

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

@stranske stranske merged commit 0c608ed into main Dec 30, 2025
51 checks passed
@stranske stranske deleted the copilot/sub-pr-316-again branch December 30, 2025 16:22
@github-actions
Copy link
Copy Markdown
Contributor

🤖 Keepalive Loop Status

PR #318 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Gate success
Tasks 0/36 complete
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

stranske added a commit that referenced this pull request Jan 7, 2026
…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
stranske added a commit that referenced this pull request Jan 7, 2026
* 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
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.

3 participants