Skip to content

compact Test Quality Sentinel report template (~480 chars saved)#42633

Merged
pelikhan merged 3 commits into
mainfrom
copilot/q-compact-test-quality-sentinel-report-template
Jul 1, 2026
Merged

compact Test Quality Sentinel report template (~480 chars saved)#42633
pelikhan merged 3 commits into
mainfrom
copilot/q-compact-test-quality-sentinel-report-template

Conversation

Copilot AI commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Q's ambient-context optimizer flagged the TQS first-request prompt as carrying ~480 chars of redundant scaffolding per run (~3% of workflow-contributed context). This applies Q's proposed patch with one minor clarity fix.

Changes to test-quality-sentinel.md

  • Remove JSON wrapper example — the {"add_comment":{"body":"..."}} block was redundant; the prose already describes the call
  • Compact metrics table — shortened row labels, merged Go/JS counts into a single "Analyzed" row, removed the separate footer line
  • Remove illustrative TestFoo example row — per-test table now has headers only; agent fills it at runtime
  • Shorten section headings📊 Metrics & Test Classification ({TOTAL} tests analyzed)📊 Metrics ({TOTAL} tests); flagged-tests summary trimmed similarly
  • Compact summary/verdict lines — fixed-format summary replaces the e.g. example; verdict drops the redundant Check prefix
  • Flagged test entry — restored classification, issue, and fix (vs Q's terser issue and fix) for agent guidance clarity

Copilot AI and others added 2 commits July 1, 2026 04:21
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Compact Test Quality Sentinel report template for optimization compact Test Quality Sentinel report template (~480 chars saved) Jul 1, 2026
Copilot AI requested a review from pelikhan July 1, 2026 04:22
@pelikhan pelikhan marked this pull request as ready for review July 1, 2026 04:24
Copilot AI review requested due to automatic review settings July 1, 2026 04:24
@pelikhan pelikhan merged commit a3234c8 into main Jul 1, 2026
32 of 33 checks passed
@pelikhan pelikhan deleted the copilot/q-compact-test-quality-sentinel-report-template branch July 1, 2026 04:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 compacts the Test Quality Sentinel PR-comment report template to reduce redundant prompt scaffolding and shrink per-run context, while keeping the report’s required guidance and placeholders.

Changes:

  • Removed the redundant JSON wrapper example and tightened the “post comment” instruction to reference add-comment directly.
  • Compressed the metrics table (shorter labels, merged analyzed counts, removed example per-test row) and shortened section headings.
  • Simplified the summary and verdict lines and restored “classification, issue, and fix” guidance for flagged items.
Show a summary per file
File Description
.github/workflows/test-quality-sentinel.md Updates the report template to be more compact while preserving key placeholders and guidance.
.github/workflows/test-quality-sentinel.lock.yml Regenerated lock metadata to reflect the updated workflow body hash.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment on lines +276 to +280
{If violations or flagged tests:}
<details>
<summary>⚠️ Flagged Tests ({FLAGGED_COUNT} issue(s))</summary>
<summary>⚠️ Flagged Tests ({FLAGGED_COUNT})</summary>

**`TestName`** (`file:line`) — classification, issue, and suggested fix.
**`TestName`** (`file:line`) — classification, issue, and fix.
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.

[q] Compact Test Quality Sentinel report template (~480 chars saved)

3 participants