compact Test Quality Sentinel report template (~480 chars saved)#42633
Merged
pelikhan merged 3 commits intoJul 1, 2026
Conversation
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
Contributor
There was a problem hiding this comment.
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-commentdirectly. - 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. |
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.
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{"add_comment":{"body":"..."}}block was redundant; the prose already describes the callTestFooexample row — per-test table now has headers only; agent fills it at runtime📊 Metrics & Test Classification ({TOTAL} tests analyzed)→📊 Metrics ({TOTAL} tests); flagged-tests summary trimmed similarlye.g.example; verdict drops the redundantCheckprefixclassification, issue, and fix(vs Q's terserissue and fix) for agent guidance clarity