fix: restructure cache miss alert template format (#28609)#28611
fix: restructure cache miss alert template format (#28609)#28611
Conversation
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/aa9be2ff-7984-4afa-8fb5-c57244bb3af4 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Move 'Cache Configuration Problem' title into <summary> tag - Move fix content into <details> body - Remove standalone > [!WARNING] block - Update tests to reflect new format Agent-Logs-Url: https://github.com/github/gh-aw/sessions/aa9be2ff-7984-4afa-8fb5-c57244bb3af4 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/aa9be2ff-7984-4afa-8fb5-c57244bb3af4 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
|
|
||
| <details> | ||
| <summary>How to fix</summary> | ||
| <summary>⚠️ Cache Configuration Problem: cache miss detected despite cache-memory being configured.</summary> |
There was a problem hiding this comment.
@copilot remove warning emoji, already in alert title
There was a problem hiding this comment.
Removed in 61be0d1 — summary is now Cache Configuration Problem: cache miss detected despite cache-memory being configured. without the emoji.
…rom summary Agent-Logs-Url: https://github.com/github/gh-aw/sessions/239b52a1-b761-4ca7-8be1-245a9ef3a507 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Restructures the cache-miss warning markdown template so the cache configuration problem title is surfaced as the <details><summary> inside a GitHub [!WARNING] callout (per issue #28609).
Changes:
- Reworked
cache_memory_miss.mdto nest a<details>block inside the[!WARNING]callout and move the problem title into the<summary>. - Updated
handle_agent_failureunit tests to align mocked template content and assertions with the new markdown structure. - Updated several embedded action pins (including removal of a
github/gh-aw-actions/setuppin entry).
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/data/action_pins.json | Updates embedded action version/SHA pins (and removes the github/gh-aw-actions/setup pin). |
| actions/setup/md/cache_memory_miss.md | Restructures warning template to make the cache configuration title the collapsible summary inside the warning callout. |
| actions/setup/js/handle_agent_failure.test.cjs | Updates mocked template strings/assertions to match the new callout + details format. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 3/3 changed files
- Comments generated: 1
| "sha": "19c436149e80e5be4f0adbd9cdeb391acea5fa91" | ||
| "version": "v4.35.2", | ||
| "sha": "7fc6561ed893d15cec696e062df840b21db27eb0" | ||
| }, |
🧪 Test Quality Sentinel ReportTest Quality Score: 93/100✅ Excellent test quality
Test Classification DetailsView Test Classification Table
Analysis SummaryBoth modified tests update expected template content and add a new Strengths:
Minor note: The score is slightly below 100 because these are format-tracking updates rather than new scenario coverage; no new behavioral edge cases are introduced. The existing test suite already covers the broader Language SupportTests analyzed:
Verdict
📖 Understanding Test ClassificationsDesign Tests (High Value) verify what the system does:
Implementation Tests (Low Value) verify how the system does it:
Goal: Shift toward tests that describe the system's behavioral contract — the promises it makes to its users and collaborators. References: §24961102679
|
There was a problem hiding this comment.
✅ Test Quality Sentinel: 93/100. Test quality is excellent — 0% of new/modified tests are implementation tests (threshold: 30%). Both modified tests correctly track the new > [!WARNING] cache miss alert format and assert on observable function output.
Summary
Fixes the cache miss alert template format as described in issue #28609.
Problem: The
cache_memory_miss.mdtemplate rendered a> [!WARNING]callout block with a<details>section whose<summary>was "How to fix". The issue title ("Cache Configuration Problem") was buried inside the callout, not surfaced as the collapsible summary.Fix: Restructure the template so:
<details>block is nested inside the> [!WARNING]alertCache Configuration Problem: ...) is the<summary>of the<details>block (no redundant emoji — the WARNING alert already provides the visual warning)<details>bodyChanges
actions/setup/md/cache_memory_miss.md: Replaced the flat> [!WARNING]+ separate<details><summary>How to fix</summary>pattern with a> [!WARNING]alert wrapping a<details><summary>Cache Configuration Problem: ...</summary>block containing the fix contentactions/setup/js/handle_agent_failure.test.cjs: Updated mock template strings to match new format, updated assertions to check for> [!WARNING]and<summary>, extracted long strings into namedconstvariables for readabilityBefore / After
Before:
After: